Re: Segfault on build with --disable threads (was: gtk3 imap connection issue)



I wrote:
1. Balsa asks for one of my IMAP accounts' (Lavabit) password (which it normally remembers).
 2. When I enter it, balsa keeps asking again and again.
 3. When I hit Cancel, the crash happens.
[…]

for some reason, I cannot reproduce the above behaviour at the moment, so let's leave that bug alone for now. (For the record, it was in an unthreaded build. Maybe gnome-keyring had something do to with it.)

I was wrong, gnome-keyring is innocent. I just did a new unthreaded build "--with-gnome=no", only to discover that the behaviour described above had reappeared. This is a gdb session containing the output of "balsa -D", where I entered my password twice before hitting cancel (and thus triggering the segfault):


 $  gdb --args balsa -D
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/balsa...done.
(gdb) run
Starting program: /usr/bin/balsa -D
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0xb359eb40 (LWP 12490)]
IMAP S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] imap4/pop3 ready.
IMAP S: * OK lavabit.com IMAP4rev1 lavad server ready.
IMAP C: 1 CAPABILITY
IMAP S: * CAPABILITY IMAP4rev1 STARTTLS LITERAL+
1 OK Completed.
IMAP C: 2 LOGIN "carlos_franke" (password hidden)
IMAP S: 2 NO [ALERT] This user account is configured to require that all IMAP sessions be connected over SSL. IMAP S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.
IMAP S: * OK lavabit.com IMAP4rev1 lavad server ready.
IMAP C: 3 CAPABILITY
IMAP S: * CAPABILITY IMAP4rev1 STARTTLS LITERAL+
3 OK Completed.
IMAP C: 4 LOGIN "carlos_franke" (password hidden)
IMAP S: 4 NO [ALERT] This user account is configured to require that all IMAP sessions be connected over SSL.
IMAP S: * OK lavabit.com IMAP4rev1 lavad server ready.
IMAP C: 5 CAPABILITY
IMAP S: * CAPABILITY IMAP4rev1 STARTTLS LITERAL+
5 OK Completed.
IMAP C: 6 LOGIN "carlos_franke" (password hidden)
IMAP S: 6 NO [ALERT] This user account is configured to require that all IMAP sessions be connected over SSL.
IMAP S: * OK lavabit.com IMAP4rev1 lavad server ready.
IMAP C: 7 CAPABILITY
IMAP S: * CAPABILITY IMAP4rev1 STARTTLS LITERAL+
7 OK Completed.

(balsa:12486): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GObject'

(balsa:12486): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer

(balsa:12486): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(balsa:12486): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GtkWidget'

(balsa:12486): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (widget)' failed

(balsa:12486): GLib-GObject-CRITICAL **: g_object_add_weak_pointer: assertion `G_IS_OBJECT (object)' failed

Program received signal SIGSEGV, Segmentation fault.
bw_notebook_switch_page_cb (notebook=0x83741c0, notebookpage=0x83c02e8, page_num=0, data=0x82ec000)
    at main-window.c:4962
4962	    time(&index->mailbox_node->last_use);


And this is a backtrace of the very same run:


(gdb) bt
#0 bw_notebook_switch_page_cb (notebook=0x83741c0, notebookpage=0x83c02e8, page_num=0, data=0x82ec000)
    at main-window.c:4962
#1  0xb65b0051 in ?? () from /usr/lib/libgtk-3.so.0
#2  0xb5cb7606 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#3  0xb5cc90f5 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0xb5cd12d6 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#5  0xb5cd1453 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#6  0xb65d0b19 in ?? () from /usr/lib/libgtk-3.so.0
#7  0xb65d9786 in ?? () from /usr/lib/libgtk-3.so.0
#8 0xb65d6449 in gtk_notebook_insert_page_menu () from /usr/lib/libgtk-3.so.0 #9 0xb65d6a30 in gtk_notebook_append_page () from /usr/lib/libgtk-3.so.0 #10 0x080973e4 in balsa_window_real_open_mbnode (window=0x82ec000, mbnode=0x8448150, set_current=0)
    at main-window.c:2366
#11 0x0806c515 in bmbl_open_mailbox (mailbox=mailbox@entry=0x83ff4a0, set_current=set_current@entry=0)
    at balsa-mblist.c:1150
#12 0x0806d73b in balsa_mblist_open_mailbox_hidden (mailbox=mailbox@entry=0x83ff4a0) at balsa-mblist.c:1169 #13 0x080649f5 in open_mailbox_by_url (url=0x81f72f8 "imap://carlos_franke imap lavabit com/INBOX", hidden=1)
    at balsa-app.c:516
#14 0x08064b56 in open_mailboxes_idle_cb (urls=0x84ad1c0) at balsa-app.c:562
#15 0xb5be8230 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0xb5bea753 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0xb5beaaf0 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0xb5beaf4b in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#19 0xb65a837d in gtk_main () from /usr/lib/libgtk-3.so.0
#20 0x08098822 in real_main (argv=0x8172308, argc=<optimized out>) at main.c:762 #21 command_line_cb (application=0x8167008, command_line=0x8166390) at main.c:900
#22 0xb376557e in ffi_call_SYSV () from /usr/lib/libffi.so.6
#23 0xb37652df in ffi_call () from /usr/lib/libffi.so.6
#24 0xb5cb7f3c in g_cclosure_marshal_generic () from /usr/lib/libgobject-2.0.so.0
#25 0xb5cb7606 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#26 0xb5cc90f5 in ?? () from /usr/lib/libgobject-2.0.so.0
#27 0xb5cd1011 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#28 0xb5cd1453 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#29 0xb5d8fddd in g_application_run () from /usr/lib/libgio-2.0.so.0
#30 0x0805fdb7 in main (argc=2, argv=0xbffff954) at main.c:920


Best,
Carlos

Attachment: pgpqZx0ZtpMmI.pgp
Description: PGP signature



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