Re: Mem corruption due to race? (Was: [BUG] : crash (perhaps gpg related))



Le 09.12.2003 19:39:24, Albrecht Dreß a écrit :
> Am 08.12.03 15:28 schrieb(en) manu:
>> (balsa:2121): Gtk-CRITICAL **: file ../../gtk/gtktextbuffer.c: line  
>> 543 (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text,  
>> len, NULL)' failed
>> 
>> though I'm not sure it is realted to the crash.
>> I was only able to have this bt which does not look really helpful : 
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x4129e689 in __after_morecore_hook () from /lib/i686/libc.so.6
>> (gdb) bt
>> #0  0x4129e689 in __after_morecore_hook () from /lib/i686/libc.so.6
>> #1  0x40c4f54c in gtk_rc_scanner_new () from /usr/lib/libgtk-x11- 
>> 2.0.so.0
> 
> I also had some crashes, and I also did not send them to bugzilla as  
> they are completely irreproducible. Yesterday I managed to crash  
> balsa by fastly clicking over the new messages in the inbox (mbox  
> file), deleting most of them (I have the "remove immediately" option  
> checked).

Here is another stack trace, though I am not sure it is related to the  
crash, it is definitely something related to bad locking :

#0  0x4037d714 in pthread_getconcurrency () from /lib/i686/libpthread. 
so.0
#1  0x4037d2b8 in pthread_getconcurrency () from /lib/i686/libpthread. 
so.0
#2  0x4037ec5d in sem_timedwait () from /lib/i686/libpthread.so.0
#3  0x4037be07 in pthread_mutex_lock () from /lib/i686/libpthread.so.0
#4  0x080bbe70 in libbalsa_lock_mutt () at libbalsa.c:213
#5  0x080cdf7e in libbalsa_message_body_protection (body=0x83de140)
    at rfc3156.c:253
#6  0x0807c0d0 in balsa_message_set_crypto (message=0x834fcf0)
    at balsa-message.c:3685
#7  0x08076724 in balsa_message_set (bm=0x81f4398, message=0x834fcf0)
    at balsa-message.c:884
#8  0x0808f0a7 in balsa_window_idle_cb (window=0x81b0f78) at main- 
window.c:3154

BTW it seems that you can trigger the crash more easily when running  
balsa under a 10 nice value (nice -n 10 balsa). This would lead me to  
think that the crash are due to races and then mem corruption.
Bye
Manu

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]