After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 317956 - Crash when starting evolution without or with expired kerberos 5 ticket
Crash when starting evolution without or with expired kerberos 5 ticket
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.4.x (obsolete)
Other other
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-10-04 19:39 UTC by Björn Torkelsson
Modified: 2005-10-10 19:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Somewhat better BT of the crash (9.03 KB, text/plain)
2005-10-05 21:48 UTC, Björn Torkelsson
  Details
Fixes a crash if sasl_resp is NULL (1.43 KB, patch)
2005-10-08 18:37 UTC, Björn Torkelsson
committed Details | Review

Description Björn Torkelsson 2005-10-04 19:39:20 UTC
Distribution: Ubuntu 5.10 (breezy)
Package: Evolution-Data-Server
Severity: critical
Version: GNOME2.12.1 1.4.x
Gnome-Distributor: Ubuntu
Synopsis: Crash when starting evolution without or with expired kerberos 5 ticket
Bugzilla-Product: Evolution-Data-Server
Bugzilla-Component: Mailer
Bugzilla-Version: 1.4.x
BugBuddy-GnomeVersion: 2.0 (2.12.0)
Description:
I'm reading mail with imap and using gssapi for authentication. 

After upgrading to the latest version in Ubuntu Breezy today evolution
crashed every time I try to start it without a kerberos 5 ticket or with
an expired one. 

Unfortunately the BT is probably pretty useless. I will se what I can do
to further debug it, unless it is an already known bug.

Ubuntu version of evolution and evolution-data-server are:

evolution                   	2.4.1-0ubuntu4
evolution-data-server     1.4.1-0ubuntu1
evolution-plugins            2.4.1-0ubuntu4

e-d-s is built against MIT Kerberos 1.3.6 if that does matter.

/torkel


Debugging Information:

Backtrace was generated from '/usr/bin/evolution'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its
symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1228694720 (LWP 2818)]
[New Thread -1288393808 (LWP 2843)]
[New Thread -1279870032 (LWP 2833)]
[New Thread -1271075920 (LWP 2831)]
[New Thread -1262683216 (LWP 2829)]
[New Thread -1254253648 (LWP 2828)]
[New Thread -1245860944 (LWP 2827)]
[New Thread -1237468240 (LWP 2826)]
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()

Thread 5 (Thread -1262683216 (LWP 2829))

  • #0 __kernel_vsyscall
  • #1 __lll_mutex_lock_wait
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 _L_mutex_lock_33
    from /lib/tls/i686/cmov/libpthread.so.0
  • #3 ??
  • #4 ??
  • #5 ??
    from /lib/tls/i686/cmov/libpthread.so.0
  • #6 ??
  • #7 ??
  • #8 ??
    from /lib/tls/i686/cmov/libc.so.6
  • #9 ??
  • #10 ??
  • #11 ??
  • #12 pthread_mutex_lock
    from /lib/tls/i686/cmov/libc.so.6
  • #13 pthread_mutex_lock
    from /lib/tls/i686/cmov/libc.so.6
  • #14 es_menu_hook_get_type
  • #15 <signal handler called>
  • #16 camel_imap_store_get_type
    from /usr/lib/evolution-data-server-1.2/camel-providers/libcamelimap.so
  • #17 camel_imap_store_readline
    from /usr/lib/evolution-data-server-1.2/camel-providers/libcamelimap.so
  • #18 camel_disco_store_status
    from /usr/lib/libcamel-provider-1.2.so.6
  • #19 camel_service_connect
    from /usr/lib/libcamel-provider-1.2.so.6
  • #20 camel_imap_store_connected
    from /usr/lib/evolution-data-server-1.2/camel-providers/libcamelimap.so
  • #21 camel_imap_folder_selected
    from /usr/lib/evolution-data-server-1.2/camel-providers/libcamelimap.so
  • #22 camel_disco_folder_cache_message
    from /usr/lib/libcamel-provider-1.2.so.6
  • #23 camel_folder_refresh_info
    from /usr/lib/libcamel-provider-1.2.so.6
  • #24 mail_check_service
    from /usr/lib/evolution/2.4/components/libevolution-mail.so
  • #25 mail_cancel_all
    from /usr/lib/evolution/2.4/components/libevolution-mail.so
  • #26 e_thread_busy
    from /usr/lib/libedataserver-1.2.so.4
  • #27 start_thread
    from /lib/tls/i686/cmov/libpthread.so.0
  • #28 clone
    from /lib/tls/i686/cmov/libc.so.6




------- Bug moved to this database by unknown@gnome.bugs 2005-10-04 19:39 UTC -------

Comment 1 Björn Torkelsson 2005-10-05 18:40:35 UTC
When running with CAMEL_DEBUG=all I get the following before evolution crashes.

adding hook target 'source'

(evolution:4857): camel-WARNING **: camel_exception_get_id called with NULL
parameter.
received: * OK egg.hpc2n.umu.se Cyrus IMAP4 v2.0.16 server ready
sending : A00000 CAPABILITY
received: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE STARTTLS AUTH=PLAIN AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5
received: A00000 OK Completed
sending : A00001 AUTHENTICATE GSSAPI
received: +
received: A00001 BAD Invalid base64 string
sending : A00002 LOGOUT
received: * BYE LOGOUT received

(evolution:4857): Gdk-CRITICAL **: gdk_gc_set_foreground: assertion `GDK_IS_GC
(gc)' failed
received: * OK egg.hpc2n.umu.se Cyrus IMAP4 v2.0.16 server ready
sending : A00000 CAPABILITY
received: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE STARTTLS AUTH=PLAIN AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5
received: A00000 OK Completed
sending : A00001 AUTHENTICATE GSSAPI
received: +

(evolution:4857): camel-WARNING **: camel_exception_get_id called with NULL
parameter.
Comment 2 Björn Torkelsson 2005-10-05 21:48:12 UTC
Created attachment 53078 [details]
Somewhat better BT of the crash
Comment 3 Björn Torkelsson 2005-10-08 18:37:37 UTC
Created attachment 53234 [details] [review]
Fixes a crash if sasl_resp is NULL

sasl_resp need to be checked if it is NULL and then bail out otherwise it will
crash when running strlen on sasl_resp.

Has strlen always segfaulted on a NULL string?
Comment 4 parthasarathi susarla 2005-10-10 06:16:24 UTC
Thanks for the patch. Committed to HEAD.
Comment 5 Jeffrey Stedfast 2005-10-10 18:07:07 UTC
the patch has a type-o in it, just FYI.

Also, you should probably set an exception if sasl_resp is NULL
Comment 6 Björn Torkelsson 2005-10-10 18:50:11 UTC
Ooops. That's what might happen when you test the patch with a tar-ball but does
the diff against CVS and forget don't verify it. Thanks for pointing it out
Jeff.  Luckily enough the patch seems to have been applied with the typo fixed.
Thanks Partha!

What's wrong with using the fallback exception, "Bad authentication response
from server."? What would be a better execption?
Comment 7 Jeffrey Stedfast 2005-10-10 19:16:36 UTC
I guess the fallback exception is fine, I wasn't sure if one got set or not tho