[stlport-bugs] [ stlport-Bugs-1908626 ] stl port 5.2.0 & exceptions & crash
Brought to you by:
complement
From: SourceForge.net <no...@so...> - 2008-03-06 09:55:42
|
Bugs item #1908626, was opened at 2008-03-06 12:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=766244&aid=1908626&group_id=146814 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General code Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ilya dogadaev (idogadaev) Assigned to: Nobody/Anonymous (nobody) Summary: stl port 5.2.0 & exceptions & crash Initial Comment: copy-paste from dev. forum follows: Hello guys, I recently upgraded from STLPort 5.0.2 to 5.2.0. The result is that my program crashed in boost 1.33 on exception handling. Digging further, I found out that __Named_exception class is a culprit. __Named_exception class was changed to contain dynamically allocated char * member. So copy constructor and assignment operators generated by the compiler are not going to do their job right any more. I think that __Named_exception has to implement copy ctor and assignment operators to support for exceptions when they are passed to catch() by value: Consider the following code from e.g. boost_1_33_1\boost\date_time: struct bad_month : public std::out_of_range { bad_month() : std::out_of_range( std::string("Month number is out of range 1..12")){} }; try { throw bad_month(); } catch(out_of_range ex) { //ups! correct copy ctor must be called here! } just in case, my compiler is MS VC 8.1. But I don't think it matters. Regards, -- ilya. RE: stl port 5.2.0 & exceptions & crash (New) By: Francois Dumont (dums) - 2008-03-06 12:45 You are perfectly right, thanks for reporting this issue before 5.2 gets released. It would be great if you could create a bug entry in our bug tracking system. Bests ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=766244&aid=1908626&group_id=146814 |