Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382681 - net-libs/libsoup-2.32.4 causes crashes in evolution-data-server
Summary: net-libs/libsoup-2.32.4 causes crashes in evolution-data-server
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on: 383851
Blocks:
  Show dependency tree
 
Reported: 2011-09-12 08:41 UTC by Hans de Graaff
Modified: 2011-11-22 01:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2011-09-12 08:41:27 UTC
The combination of glib-networking 2.28.7 and evolution-data-server-2.32.2-r1 causes a reproduceable crash when trying to access web calendars via ssl.

A backtrace from /usr/libexec/e-calendar-factory tells me:

(e-calendar-factory:12508): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Error receiving data: Resource temporarily unavailable

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe807f40d in ?? () from /usr/lib64/gio/modules/libgiognutls.so
(gdb) bt
#0  0x00007fffe807f40d in ?? () from /usr/lib64/gio/modules/libgiognutls.so
#1  0x00007fffe80801a8 in ?? () from /usr/lib64/gio/modules/libgiognutls.so
#2  0x00007fffe80815b1 in ?? () from /usr/lib64/gio/modules/libgiognutls.so
#3  0x00007fffe8081c62 in ?? () from /usr/lib64/gio/modules/libgiognutls.so
#4  0x00007ffff6f0046c in g_io_stream_close () from /usr/lib64/libgio-2.0.so.0
#5  0x00007ffff6f004a6 in ?? () from /usr/lib64/libgio-2.0.so.0
#6  0x00007ffff6c6b5ca in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
#7  0x00007fffe80807dd in ?? () from /usr/lib64/gio/modules/libgiognutls.so
#8  0x00007ffff65653e6 in ?? () from /usr/lib64/libglib-2.0.so.0

I'd try downgrading glib-networking but those versions are no longer available.

Let me know if you need more info, I can easily reproduce this.
Comment 1 Pacho Ramos gentoo-dev 2011-09-12 08:44:14 UTC
Try with gnome-extra/evolution-data-server-2.32.3-r1 and mail-client/evolution-2.32.3

If still valid try to get a better backtrace -> http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Hans de Graaff gentoo-dev Security 2011-09-13 08:15:23 UTC
(In reply to comment #1)
> Try with gnome-extra/evolution-data-server-2.32.3-r1 and
> mail-client/evolution-2.32.3

This makes no difference, still crashes. I'll see if I can get a better backtrace.
Comment 3 Hans de Graaff gentoo-dev Security 2011-09-13 08:36:29 UTC
#0  0x00007fffe802d5b0 in g_tls_client_connection_gnutls_finish_handshake (conn=0x1e9b0d0, inout_error=0x0)
    at gtlsclientconnection-gnutls.c:352
#1  0x00007fffe802f574 in handshake_internal (gnutls=0x1e9b0d0, blocking=1, cancellable=0x0, error=0x0)
    at gtlsconnection-gnutls.c:886
#2  0x00007fffe802f645 in handshake_in_progress_or_failed (gnutls=0x1e9b0d0, blocking=1, cancellable=0x0, 
    error=0x0) at gtlsconnection-gnutls.c:911
#3  0x00007fffe802fd4f in close_internal (gnutls=0x1e9b0d0, blocking=1, cancellable=0x0, error=0x0)
    at gtlsconnection-gnutls.c:1094
#4  0x00007fffe802fecd in g_tls_connection_gnutls_close (stream=0x1e9b0d0, cancellable=0x0, error=0x0)
    at gtlsconnection-gnutls.c:1114
#5  0x00007ffff6ee146c in g_io_stream_close () from /usr/lib64/libgio-2.0.so.0
#6  0x00007ffff6ee14a6 in ?? () from /usr/lib64/libgio-2.0.so.0
#7  0x00007ffff6c4c5ca in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
#8  0x00007fffe802eb8f in gnutls_source_finalize (source=0x1ea39d0) at gtlsconnection-gnutls.c:634
#9  0x00007ffff65463e6 in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007ffff6546caa in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#11 0x00007ffff654b258 in ?? () from /usr/lib64/libglib-2.0.so.0
#12 0x00007ffff654b765 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#13 0x00000000004055f2 in main (argc=1, argv=0x7fffffffdda8) at e-data-cal-factory.c:944
Comment 4 Pacho Ramos gentoo-dev 2011-09-13 11:21:32 UTC
(In reply to comment #3)
[...]
> #6  0x00007ffff6ee14a6 in ?? () from /usr/lib64/libgio-2.0.so.0
[...]

Looks like you should also rebuild dev-libs/glib-2.28.8 with debugging symbols and, even, also install bug-buddy to let it take the crash, report to upstream and, once the upstream bug is opened, look easily for possible duplicates with similar traces (thanks to gnome bugzilla!)... if you don't know how to do that, simply post the link to upstream report here and I will check it for you ;)

Thanks again
Comment 5 Pacho Ramos gentoo-dev 2011-09-13 11:26:02 UTC
(In reply to comment #0)
[...]
> I'd try downgrading glib-networking but those versions are no longer available.
[...]

Maybe this is caused by libsoup update instead... but if you still suspect about glib-networking, I think you could simply copy existing ebuild for 2.28.6 also to test (I dropped all older versions to try to ensure all people suffering that kde/glib-networking problems were running the latest versions)
Comment 6 Hans de Graaff gentoo-dev Security 2011-09-13 13:27:08 UTC
(In reply to comment #5)

> Maybe this is caused by libsoup update instead... 

This is the correct answer. I've downgraded to libsoup{-gnome}-2.32.2 and now things work again.
Comment 7 Pacho Ramos gentoo-dev 2011-09-14 10:47:27 UTC
Try to get a better backtrace with glib debugging symbols anyway, also try different libsoup-2.34.x versions to test

Thanks
Comment 8 Pacho Ramos gentoo-dev 2011-09-22 15:32:55 UTC
I think this could be related with bug 383851
Comment 9 Hans de Graaff gentoo-dev Security 2011-09-26 19:50:45 UTC
(In reply to comment #8)
> I think this could be related with bug 383851

Yes, sounds plausible given that I'm trying to connect to an SSL-hosted webdav. It seems that Apache doesn't allow configurable ephemeral Diffie-Helman sizes (which seems to be what this is about), so I can't test it by setting this to a larger value.
Comment 10 Pacho Ramos gentoo-dev 2011-11-22 01:10:46 UTC
Please re-test with that updated versions that are available in the tree for some time