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 502847 - crash in in camel_object_bag_reserve at camel-object.c:2228
crash in in camel_object_bag_reserve at camel-object.c:2228
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.12.x (obsolete)
Other All
: High critical
: ---
Assigned To: Matthew Barnes
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2007-12-10 14:08 UTC by Johannes Rohr
Modified: 2008-01-24 12:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Proposed patch (489 bytes, patch)
2008-01-22 20:38 UTC, Matthew Barnes
committed Details | Review

Description Johannes Rohr 2007-12-10 14:08:01 UTC
What were you doing when the application crashed?
crash on startup.


Distribution: Debian lenny/sid
Gnome Release: 2.20.2 2007-11-29 (Debian)
BugBuddy Version: 2.20.1

System: Linux 2.6.22-3-686 #1 SMP Mon Nov 12 08:32:57 UTC 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10400000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: Tango

Memory status: size: 177758208 vsize: 177758208 resident: 39706624 share: 18083840 rss: 39706624 rss_rlim: 4294967295
CPU usage: start_time: 1197295537 rtime: 227 utime: 194 stime: 33 cutime:2 cstime: 5 timeout: 0 it_real_value: 0 frequency: 100

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

Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb6932af0 (LWP 16687)]
[New Thread 0xafffcb90 (LWP 16776)]
[New Thread 0xaf7fbb90 (LWP 16739)]
[New Thread 0xb1971b90 (LWP 16716)]
[New Thread 0xb23fcb90 (LWP 16714)]
[New Thread 0xb2bfdb90 (LWP 16712)]
[New Thread 0xb33feb90 (LWP 16711)]
[New Thread 0xb3bffb90 (LWP 16710)]
[New Thread 0xb4597b90 (LWP 16709)]
[New Thread 0xb4d98b90 (LWP 16708)]
[New Thread 0xb5599b90 (LWP 16707)]
0xffffe410 in __kernel_vsyscall ()

Thread 10 (Thread 0xb4d98b90 (LWP 16708))

  • #0 __kernel_vsyscall
  • #1 waitpid
    from /lib/i686/cmov/libpthread.so.0
  • #2 IA__g_spawn_sync
    at /tmp/buildd/glib2.0-2.14.4/glib/gspawn.c line 369
  • #3 IA__g_spawn_command_line_sync
    at /tmp/buildd/glib2.0-2.14.4/glib/gspawn.c line 677
  • #4 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #5 <signal handler called>
  • #6 __kernel_vsyscall
  • #7 raise
    from /lib/i686/cmov/libc.so.6
  • #8 abort
    from /lib/i686/cmov/libc.so.6
  • #9 IA__g_logv
  • #10 IA__g_log
  • #11 IA__g_assert_warning
  • #12 camel_object_bag_reserve
    at camel-object.c line 2228
  • #13 camel_store_get_folder
    at camel-store.c line 245
  • #14 diary_decode_folder
    at camel-disco-diary.c line 256
  • #15 camel_disco_diary_replay
    at camel-disco-diary.c line 313
  • #16 disco_connect
    at camel-disco-store.c line 177
  • #17 camel_service_connect
    at camel-service.c line 371
  • #18 camel_imap_store_connected
    at camel-imap-store.c line 2989
  • #19 get_folder_online
    at camel-imap-store.c line 1866
  • #20 disco_get_folder
    at camel-disco-store.c line 235
  • #21 camel_store_get_folder
    at camel-store.c line 262
  • #22 mail_tool_uri_to_folder
    at mail-tools.c line 331
  • #23 refresh_folders_get
    at mail-send-recv.c line 795
  • #24 mail_msg_received
    at mail-mt.c line 582
  • #25 thread_dispatch
    at e-msgport.c line 1005
  • #26 start_thread
    from /lib/i686/cmov/libpthread.so.0
  • #27 clone
    from /lib/i686/cmov/libc.so.6


----------- .xsession-errors (8 sec old) ---------------------
(evolution:16687): calendar-gui-CRITICAL **: e_day_view_add_event: assertion `end > add_event_data->day_view->lower' failed
(evolution:16687): calendar-gui-CRITICAL **: e_week_view_add_event: assertion `end > add_event_data->week_view->day_starts[0]' failed
(evolution:16687): calendar-gui-CRITICAL **: e_day_view_add_event: assertion `end > add_event_data->day_view->lower' failed
(evolution:16687): calendar-gui-CRITICAL **: e_day_view_add_event: assertion `end > add_event_data->day_view->lower' failed
(evolution:16687): calendar-gui-CRITICAL **: e_week_view_add_event: assertion `end > add_event_data->week_view->day_starts[0]' failed
(evolution:16687): calendar-gui-CRITICAL **: e_week_view_add_event: assertion `end > add_event_data->week_view->day_starts[0]' failed
camel-ERROR **: file camel-object.c: line 2228 (camel_object_bag_reserve): assertion failed: (!res->have_owner || !pthread_equal(res->owner, pthread_self()))
aborting...
Xlib: sequence lost (0x10fef > 0xfef) in reply type 0x1!
--------------------------------------------------
Comment 1 Johannes Rohr 2007-12-10 14:10:17 UTC
I have noticed that some debugging symbols are missing, notably from libcairo. Since Debian does not have libcairo-dbg, there is nothing I can do about this.
Comment 2 Matthew Barnes 2008-01-21 18:47:33 UTC
That's alright, I don't think this bug is Cairo-related.
Comment 3 Matthew Barnes 2008-01-22 19:11:02 UTC
In camel_store_get_folder():

    if (store->folders) {
            /* Try cache first. */
            folder = camel_object_bag_reserve(store->folders, folder_name);
            if (folder && (flags & CAMEL_STORE_FOLDER_EXCL)) {
                    camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
                                          _("Cannot create folder `%s': folder exists),
                                          folder_name);

                    camel_object_unref (folder);
                    return NULL;
            }
    }

Don't we need to call camel_object_bag_abort(store->folders, folder_name) before returning?
Comment 4 Matthew Barnes 2008-01-22 20:38:18 UTC
Created attachment 103487 [details] [review]
Proposed patch

I'm not sure if this is directly related to the crash, but it seems like an oversight.
Comment 5 Srinivasa Ragavan 2008-01-24 04:08:40 UTC
I think you are right Matt.
Comment 6 Matthew Barnes 2008-01-24 12:17:21 UTC
Committed to trunk (revision #8416).

Closing this for now.  Reopen if you see this crash again.