Hey guys,
I have been unable to reproduce the crash with "-O0 -g", but I crash a lot in O1, O2 and O3.
For the last crash I observed, gdb signals a buffer overflow with this callstack in thread 21
Code: Select all
#0 0x00007ffff09d5f95 in raise () from /lib64/libc.so.6
#1 0x00007ffff09d7418 in abort () from /lib64/libc.so.6
#2 0x00007ffff0a14d3b in __libc_message () from /lib64/libc.so.6
#3 0x00007ffff0a9db47 in __fortify_fail () from /lib64/libc.so.6
#4 0x00007ffff0a9bb30 in __chk_fail () from /lib64/libc.so.6
#5 0x00007ffff0a9daf7 in __fdelt_warn () from /lib64/libc.so.6
#6 0x00007ffff65801cc in UnixProcessImpl::Read (this=0xd0c620, buff=...) at CodeLite/unixprocess_impl.cpp:293
#7 0x00007ffff6553dd2 in ProcessReaderThread::Entry (this=0x18769f0) at CodeLite/processreaderthread.cpp:57
#8 0x00007ffff3aeb5e8 in ?? () from /usr/lib/codelite/libwx_baseu-2.9.so.4
#9 0x00007ffff0d4ef4a in start_thread () from /lib64/libpthread.so.0
#10 0x00007ffff0a8833d in clone () from /lib64/libc.so.6
and this call stack in thread 19:
Code: Select all
#0 0x00007ffff0a81b63 in select () from /lib64/libc.so.6
#1 0x00007ffff6580225 in UnixProcessImpl::Read (this=0x1824dd0, buff=...) at CodeLite/unixprocess_impl.cpp:300
#2 0x00007ffff6553dd2 in ProcessReaderThread::Entry (this=0xc5f080) at CodeLite/processreaderthread.cpp:57
#3 0x00007ffff3aeb5e8 in ?? () from /usr/lib/codelite/libwx_baseu-2.9.so.4
#4 0x00007ffff0d4ef4a in start_thread () from /lib64/libpthread.so.0
#5 0x00007ffff0a8833d in clone () from /lib64/libc.so.6
I understand that this is not helping a lot, as the buffer in question could have been allocated in so many different locations.
The good news is that, running codelite in valgrind shows a lot of errors that are related to wxGTK, so I will investigate on that side for the moment.
(errors given by valgrind:
http://bpaste.net/show/54671/ )