[Bug libstdc++/60612] Throwing exception, catching and rethrowing (std::exception_ptr) in destructor leads to segfault

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 27 18:08:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60612

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Mar 27 18:07:25 2014
New Revision: 208871

URL: http://gcc.gnu.org/viewcvs?rev=208871&root=gcc&view=rev
Log:
    PR libstdc++/60612
    * libsupc++/eh_ptr.cc: Assert __cxa_dependent_exception layout is
    compatible with __cxa_exception.
    * libsupc++/unwind-cxx.h (__cxa_dependent_exception): Add padding.
    Fix typos in comments.
    * testsuite/18_support/exception_ptr/60612-terminate.cc: New.
    * testsuite/18_support/exception_ptr/60612-unexpected.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/18_support/exception_ptr/60612-terminate.cc
    trunk/libstdc++-v3/testsuite/18_support/exception_ptr/60612-unexpected.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/libsupc++/eh_ptr.cc
    trunk/libstdc++-v3/libsupc++/unwind-cxx.h



More information about the Gcc-bugs mailing list