Sign in to follow this  

Problem with boost::shared_ptrs or iostream on app exit

This topic is 4056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm making my first real foray into boost::shared_ptr and I'm having some weird problems. Basically I'm getting a SIGSEV segmentation violation but I've no idea how to investigate the stack dump: Program received signal SIGSEGV, Segmentation fault. 0xb7f3cb78 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 (gdb) info stack #0 0xb7f3cb78 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #1 0xb7f3cb30 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 #2 0xb7e8b5cb in std::ios_base::Init::~Init () from /usr/lib/libstdc++.so.6 #3 0x0804c924 in __tcf_0 () at iostream:76 #4 0xb7d145d7 in exit () from /lib/tls/i686/cmov/libc.so.6 #5 0xb7cfdeac in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #6 0x08048d29 in _start () at ../sysdeps/i386/elf/start.S:119 (gdb) This means nothing to me! It looks like the program is trying to exit when something weird happens but I don't see all of the debug output from my app. I'd post some code but I'm not sure which part to post! Any help appreciated! Thanks

Share this post


Link to post
Share on other sites
It looks like my code is completing and the crash happens on exit. I've searched Google and found nothing that seems relevant. I'm sure I'm doing something silly but I can't see what.

Back to the drawing board!

Share this post


Link to post
Share on other sites

This topic is 4056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this