Problem with boost::shared_ptrs or iostream on app exit

Started by
1 comment, last by stodge 17 years, 5 months ago
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
---------------------http://www.stodge.net
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!
---------------------http://www.stodge.net
Gah never mind. I was passing a null pointer at one point.

Move along! :)
---------------------http://www.stodge.net

This topic is closed to new replies.

Advertisement