Re: Segfault while leaving [SVN]
- From: Pawel Salek <pawsa0 gmail com>
- To: balsa-list gnome org
- Subject: Re: Segfault while leaving [SVN]
- Date: Wed, 16 Dec 2009 19:00:15 +0100
Hi,
I could not reproduce the problem but...
It looks like a memory corruption to me. Maybe the configuration is
used by one thread while another is about to free() it? Do you think
you could run balsa with MALLOC_CHECK_ environment variable set to 2?
valgrind output would be even better!
Pawel
On 12/16/2009 06:09:41 PM, Jean-Luc Coulon (f5ibh) wrote:
Hi,
With the SVN version I've (very) frequently a segfault when I leave it
(File -> Exit)
You will find thereafter the bt from gdb. When it seems to stop
correctly there is still a thread running:
[jean-luc tangerine] % ps | grep balsa
16601 ? SLl 0:09 /usr/bin/balsa
[jean-luc tangerine] % strace -fp 16601
Process 16601 attached with 3 threads - interrupt to quit
[pid 18325] futex(0x7fb36d0ac86c, FUTEX_WAIT_PRIVATE, 1, NULL
<unfinished ...>
[pid 16616] restart_syscall(<... resuming interrupted call ...>
<unfinished ...>
[pid 16601] futex(0x7fb365e19e60, FUTEX_WAIT_PRIVATE, 2, NULL
Remark: I've always the SEGFAULT in a gdb session while I've mostly
the
running thread(s) while launching it normally.
The bt:
New Thread 0x7fffde18f910 (LWP 14472)]
[Thread 0x7fffde990910 (LWP 14451) exited]
[Thread 0x7fffde18f910 (LWP 14472) exited]
[Thread 0x7fffdd18d910 (LWP 14454) exited]
[Thread 0x7fffdd98e910 (LWP 14453) exited]
[New Thread 0x7fffdd98e910 (LWP 14477)]
[Thread 0x7fffdd98e910 (LWP 14477) exited]
[New Thread 0x7fffdd98e910 (LWP 14482)]
[Thread 0x7fffdd98e910 (LWP 14482) exited]
[Thread 0x7fffdfdd0910 (LWP 14449) exited]
Program received signal SIGSEGV, Segmentation fault.
0x00007fffee073bb1 in ?? () from /lib/libc.so.6
(gdb) bt
#0 0x00007fffee073bb1 in ?? () from /lib/libc.so.6
#1 0x00007fffee075aa0 in malloc () from /lib/libc.so.6
#2 0x00007fffee397563 in g_malloc () from /lib/libglib-2.0.so.0
#3 0x00007fffee3af03e in g_strdup () from /lib/libglib-2.0.so.0
#4 0x00007fffee38887d in g_key_file_get_groups () from /lib/
libglib-2.0.so.0
#5 0x000000000049bcd2 in lbc_sync (conf=0x729380) at libbalsa-
conf.c:488
#6 0x000000000049bdb3 in libbalsa_conf_sync () at libbalsa-conf.c:530
#7 0x00007fffee38cacd in g_list_foreach () from /lib/libglib-2.0.so.0
#8 0x0000000000468187 in config_address_books_save () at save-
restore.c:1586
#9 config_save () at save-restore.c:1185
#10 0x000000000042b83e in balsa_app_destroy () at balsa-app.c:457
#11 0x000000000045c187 in balsa_cleanup () at main.c:1209
#12 0x000000000045cdb5 in main (argc=<value optimized out>,
argv=<value optimized out>) at main.c:1158
(gdb) quit
Best regards
Jean-Luc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]