Jump to content
  • Advertisement
Sign in to follow this  
stodge

Problem with boost::shared_ptrs or iostream on app exit

This topic is 4275 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!