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

2014-03-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60612 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

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

2014-03-21 Thread tasptz at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60612 tasptz at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2014-03-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60612 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|NEW

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

2014-03-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60612 --- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org --- When I step through std::rethrow_exception() in gdb it goes from line 215 to line 223, so skips over the call to get_terminate(), so dep-terminateHandler is null and so is

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

2014-03-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60612 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org --- *Sigh* -- ignore that. After line 223 it jumps back to 216 then continues back to 223 again with the right values in *dep. I thought I was debugging an unoptimised libstdc++.so but