[Boost-bugs] [ boost-Bugs-1576175 ] directory_iterator doesn't work with catch

Bugs item #1576175, was opened at 2006-10-12 13:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1576175&group_id=7586 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: filesystem Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Beman Dawes (beman_dawes) Summary: directory_iterator doesn't work with catch Initial Comment: Fedora Core 4, gcc version 4.0.2 20051125 (Red Hat 4.0.2-8) The next construction doesn't work (but it works if directory_iterator is changed to some other iterator or just counter): path dir_path(dir_name); directory_iterator end_itr; try { for (directory_iterator itr(dir_name); itr!=end_itr; ++itr) { try { ...... } catch (...) { cout<<"First catch"<<endl; throw 20; } } } catch (...) { cout<<"Second catch"<<endl; } Result: First catch and stucked program, "strace" shows: "futex(0x...,FUTEX_WAIT,2,NULL". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1576175&group_id=7586 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net