OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000640OMNeT++simulation kernelpublic2013-03-21 10:342013-03-21 10:34
Assigned To 
PlatformOSOS Version
Product Version4.2.2 
Target VersionFixed in Version 
Summary0000640: Destructor of cOwnedObject may invoke undefined behaviour if object is owned
DescriptionIf a cOwnedObject is deleted and has an owner and this owner is not the default list, the method ownedObjectDeleted() on cObject throws a cRuntimeError exception. Throwing exceptions from destructors may invoke undefined behaviour - on the platform I'm working it results in abort() called without having a chance to see the message from the exception.

The cOwnedObject destructor should catch the exception, print the message and either return (in which case the error of deleting an owned object translates into a warning) or exit the simulation. In no case it should allow to propagate the exception outside the destructor.
Additional InformationSee section 15.2 of C++11, clause 3, especially the note. I don't have a reference to C++03 at hand but something equaivalent is there too.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-03-21 10:34 Harti New Issue

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker