pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Sylpheed crashing

On Wed, 21 Dec 2016 21:02:39 +0100 Tobias Nygren <> wrote:
> No issues here. The stack looks trashed though. I'd expect every trace
> for thread 1 to lead back to g_main_loop_run() from glib2.
> Note: Sylpheed nowadays uses a separate worker thread for imap i/o so
> it might be useful to get a backtrace for all running threads.

As coypu suggested, I ran sylpheed under gdb with a breakpoint on the
_fini call. That let me get a backtrace from before the stack gets
trashed (see below, I've xxx'd out a few personal details from the
variables). After the backtrace you can see me step through to
the end of the function, by which point the stack is trashed and any
attempt to continue leads to the segfault.

Interestingly, while the fault is intermittent in general (I sometimes
go several days between crashes), once execution reaches _fini ()
from /usr/lib/i18n/ the stack-trashing and
subsequent crash happen consistently. To my untrained eye it looks like
something is going wrong down in libc, which is worrisome. Further
hints welcome. 

(gdb) bt
#0  0x00007ddca8200c80 in _fini () from /usr/lib/i18n/
#1  0x00007f7ff7c05df8 in _rtld_unload_object.part.8 () from
#2  0x00007f7ff7c06319 in dlclose () from /usr/libexec/ld.elf_so
#3  0x00007ddcacea3fb6 in ?? () from /usr/lib/
#4  0x00007ddcab200a91 in ?? () from /usr/lib/i18n/
#5  0x00007ddcab200ae2 in ?? () from /usr/lib/i18n/
#6  0x00007ddcab200b30 in ?? () from /usr/lib/i18n/
#7  0x00007ddcace708b0 in ?? () from /usr/lib/
#8  0x00007ddcace70f80 in _citrus_iconv_close () from /usr/lib/
#9  0x00007ddcace5c19f in iconv_close () from /usr/lib/
#10 0x00007ddcb88222a9 in conv_iconv_strdup (inbuf=0x72544b5a2d10 "xxxxxxxxxxxx
xxxxxxx\n", src_code=0x7ddcb591d0f0 "ISO-8859-1",
    dest_code=0x7ddcb8876bfb "UTF-8", error=0x0) at codeconv.c:1525
#11 0x00007ddcb8821f37 in conv_convert (conv=0x7ddcb5924280,
inbuf=0x72544b5a2d10 "xxxxxxxxxxxxxxxxxxxx\n") at codeconv.c:1380
#12 0x000000000045c744 in textview_write_line (textview=0x7ddcb8fa08d0,
str=0x72544b5a2d10 "xxxxxxxxxxxxxxxxxxxx\n", conv=0x7ddcb5924280) at
#13 0x000000000045bbba in textview_write_body (textview=0x7ddcb8fa08d0,
mimeinfo=0x7ddcb8bb72a0, fp=0x7ddcad174b78, charset=0x7ddcb591e690 "ISO-8859-1")
    at textview.c:1220
#14 0x000000000045b68c in textview_add_part (textview=0x7ddcb8fa08d0,
mimeinfo=0x7ddcb8bb72a0, fp=0x7ddcad174b78) at textview.c:1091
#15 0x000000000045ba14 in textview_add_parts (textview=0x7ddcb8fa08d0,
mimeinfo=0x7ddcb8bb72a0, fp=0x7ddcad174b78) at textview.c:1176
#16 0x0000000000459825 in textview_show_message (textview=0x7ddcb8fa08d0,
at textview.c:535
#17 0x0000000000461778 in mimeview_show_message (mimeview=0x7ddcb973b060,
at mimeview.c:390
#18 0x00000000004560b7 in messageview_show (messageview=0x7ddcb8f5dd90,
msginfo=0x7ddcb8bb6da0, all_headers=0) at messageview.c:621
#19 0x0000000000449010 in summary_display_msg_full (summaryview=0x7ddcb8f50000,
iter=0x72544b5a70e0, new_window=0, all_headers=0, redisplay=0)
    at summaryview.c:2854
#20 0x0000000000448e4c in summary_display_msg (summaryview=0x7ddcb8f50000,
iter=0x72544b5a70e0) at summaryview.c:2808
#21 0x0000000000453e14 in summary_display_msg_idle_func (data=0x7ddcb8f50000) at
#22 0x00007ddcade56725 in g_idle_dispatch (source=0x7ddcb5921f80,
callback=0x453d8d <summary_display_msg_idle_func>, user_data=0x7ddcb8f50000) at
#23 0x00007ddcade53c86 in g_main_dispatch (context=0x7ddcb97584b0) at
#24 0x00007ddcade54b08 in g_main_context_dispatch (context=0x7ddcb97584b0) at
#25 0x00007ddcade54cec in g_main_context_iterate (context=0x7ddcb97584b0,
block=1, dispatch=1, self=0x7ddcb970ee00) at gmain.c:3913
#26 0x00007ddcade55112 in g_main_loop_run (loop=0x7ddcb8704fa0) at gmain.c:4109
#27 0x00007ddcb6f89093 in IA__gtk_main () at gtkmain.c:1268
#28 0x000000000042dc6f in main (argc=1, argv=0x72544b5a7360) at main.c:389

(gdb) n
Single stepping until exit from function _fini,
which has no line number information.
0x00007ddca8200620 in ?? () from /usr/lib/i18n/
(gdb) bt
#0  0x00007ddca8200620 in ?? () from /usr/lib/i18n/
#1  0x00007ddca8200c89 in _fini () from /usr/lib/i18n/
#2  0x0000000000000000 in ?? ()


Home | Main Index | Thread Index | Old Index