2025-06-14 04:52 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003030Spring engineGeneralpublic2012-03-27 01:21
Reporterabma 
Assigned Tozerver 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version87.0.1+git 
Target VersionFixed in Version89.0 
Summary0003030: spring doesn't print a stacktrace on std::bad_alloc()
Descriptionit just does a "clean" exit:

[f=0001191] Path cache hits 0 0%
[f=0001191] Path cache hits 0 0%
[f=0001191] Statistics for local connection:
Received: 3329 bytes
Sent: 13636 bytes
Error: Spring: Fatal Error std::bad_alloc
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0003029resolvedKloot crash when unit exits factory (std::bad_alloc) 
+Relationships

-Notes

~0008489

zerver (reporter)

I think it would be solved if we can globally redefine "new(...)" as "new(..., std::nothrow)"

Does gcc support some kind of "force include"? I mean to force every single file to include file x. In MSVC it can be done with /FI. Otherwise we have the mmgr which is included in many files already, far from all though.

~0008513

zerver (reporter)

There is a convenient set_new_handler it seems...

https://github.com/spring/spring/commit/43b01dc222331332ffc3666fd5998530b5cd316d
+Notes

-Issue History
Date Modified Username Field Change
2012-03-19 11:42 abma New Issue
2012-03-19 11:42 abma Description Updated
2012-03-19 19:11 abma Relationship added related to 0003029
2012-03-21 14:02 zerver Note Added: 0008489
2012-03-21 14:08 zerver Status new => assigned
2012-03-21 14:08 zerver Assigned To => zerver
2012-03-27 01:21 zerver Note Added: 0008513
2012-03-27 01:21 zerver Status assigned => resolved
2012-03-27 01:21 zerver Fixed in Version => 89.0
2012-03-27 01:21 zerver Resolution open => fixed
+Issue History