GNOME Bugzilla – Bug 658771
SIGSEGV in gtlsconnection-gnutls
Last modified: 2012-01-26 14:39:42 UTC
Program received signal SIGSEGV, Segmentation fault. 0x00007fffec47c709 in handshake_internal (gnutls=0x0, blocking=0, cancellable=0x0, error=0x7fffffffd610) at gtlsconnection-gnutls.c:857 857 if (!gnutls->priv->handshaking) (gdb) bt
+ Trace 228416
A few critical warnings happen before that: GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GAsyncResult' Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff5b20751 in g_logv (log_domain=0x7ffff5c58fb0 "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=0x7ffff5c5a708 "invalid uninstantiatable type `%s' in cast to `%s'", args1=0x7fffffffd4d8) at gmessages.c:570 570 G_BREAKPOINT (); (gdb) bt
+ Trace 228417
is there some site that triggers this reliably?
(In reply to comment #2) > is there some site that triggers this reliably? Not that I can find, no. This is the first (and only so far) time I get this crash, but it was also the first time in a while that I was running ephy under gdb with --g-fatal-warnings.
I'm going to close this since no one has seen it since... maybe memory corruption somewhere else that's since been fixed?
Hrm, I'm seeing this again in ephy master a lot since the recent changes in libsoup about GSocket. Besides the original trace I also get: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff431a001 in check_socket (socket=0x0, error=0x0) at gsocket.c:274 274 if (!socket->priv->inited) (gdb) bt
+ Trace 229334
(In reply to comment #5) > Hrm, I'm seeing this again in ephy master a lot since the recent changes in > libsoup about GSocket. Besides the original trace I also get: The check_socket() crash is bug 667245. You're still getting the g_tls_connection_gnutls_handshake_ready() crash too?
I just experienced it (submitting a form on a non-public website, I think it's using "pound" as a webserver).
+ Trace 229405
(In reply to comment #6) > (In reply to comment #5) > > Hrm, I'm seeing this again in ephy master a lot since the recent changes in > > libsoup about GSocket. Besides the original trace I also get: > > The check_socket() crash is bug 667245. You're still getting the > g_tls_connection_gnutls_handshake_ready() crash too? Confirming: Gentoo ~x86, dev-libs/glib-2.31.10 and net-libs/gnutls-2.10.5)
I can reproduce this issue quite easily on github.com by using the search functionality. 1. go to github.com 2. Log in 3. Make sure you are on your "Dashboard page" 4. Use search functionality 5. inspect the core dump :)
doesn't crash for me :-} i'll whip up some debugging patches for people to try...
(In reply to comment #10) > doesn't crash for me :-} > > i'll whip up some debugging patches for people to try... Ping on those debug patches, or anything else we can do to help to track this down. It crashes so much it makes it a bit hard to actually hack on epiphany.
Created attachment 206182 [details] [review] gnutls: fix an async handshake crash g_tls_connection_gnutls_handshake_async() would cause a crash if the handshake either succeeded or failed immediately (rather than getting an EAGAIN after making partial progress). ==== OK, found a bug in the code. I still can't reproduce the bug, but hopefully this will fix it?
Excellent, running with it now, I'll tell you if I crash again.
Xan says this seems to be fixing the crash for him. Yay. Attachment 206182 [details] pushed as 51938b5 - gnutls: fix an async handshake crash