[sldev] crash due to freeing invalid pointers on linux client
during quit?
Max Okumoto
okumoto at ucsd.edu
Fri Jul 20 08:26:54 PDT 2007
Hi is anyone compiling the linux client from source and seeing crashes
when you
quit the client 1.18.0.6? It's happening everytime for me so there is a
good chance
I will be able to track it down soon.
It looks like a double free, or an invalid pointer in the llimage
library with a
std::string object.
Max
(gdb) info reg
eax 0x29273e4 43152356
ecx 0xbfa29baf -1079862353
edx 0xbfa2a727 -1079859417
ebx 0x293fff4 43253748
esp 0xbfa29b94 0xbfa29b94
ebp 0xbfa29bc4 0xbfa29bc4
esi 0x2 2
edi 0xb6b81f0 191594992
eip 0x286e79a 0x286e79a <free_check+426>
eflags 0x202 [ IF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) where
#0 0x02862be6 in __libc_message () from /lib/libc.so.6
#1 0x0286e79a in free_check () from /lib/libc.so.6
#2 0x0286df55 in free () from /lib/libc.so.6
#3 0x0278c691 in operator delete () from /usr/lib/libstdc++.so.6
#4 0x0276924d in std::string::_Rep::_M_destroy () from
/usr/lib/libstdc++.so.6
#5 0x0068f090 in __tcf_1 ()
at
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h:233
#6 0x0282fb09 in __cxa_finalize () from /lib/libc.so.6
#7 0x00688ca4 in __do_global_dtors_aux ()
from /opt/SecondLife_i686_1_18_0_6/lib/libllimage.so
#8 0x006cc6dc in _fini () from
/opt/SecondLife_i686_1_18_0_6/lib/libllimage.so
#9 0x007ba5de in _dl_fini () from /lib/ld-linux.so.2
#10 0x0282f859 in exit () from /lib/libc.so.6
#11 0x02819df4 in __libc_start_main () from /lib/libc.so.6
#12 0x08069b31 in _start ()
(gdb) cont
*** glibc detected ***
/opt/SecondLife_i686_1_18_0_6/bin/do-not-directly-run-secondlife-bin:
free(): invalid pointer: 0x0b6b81f0 ***
======= Backtrace: =========
/lib/libc.so.6[0x286e79a]
/lib/libc.so.6(cfree+0x35)[0x286df55]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x278c691]
/usr/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d)[0x276924d]
/opt/SecondLife_i686_1_18_0_6/lib/libllimage.so[0x68f090]
/lib/libc.so.6(__cxa_finalize+0xa9)[0x282fb09]
/opt/SecondLife_i686_1_18_0_6/lib/libllimage.so[0x688ca4]
/opt/SecondLife_i686_1_18_0_6/lib/libllimage.so[0x6cc6dc]
/lib/ld-linux.so.2[0x7ba5de]
/lib/libc.so.6(exit+0xe9)[0x282f859]
/lib/libc.so.6(__libc_start_main+0xe4)[0x2819df4]
/opt/SecondLife_i686_1_18_0_6/bin/do-not-directly-run-secondlife-bin[0x8069b31]
======= Memory map: ========
More information about the SLDev
mailing list