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 497295 - Memory corruption : at evolution start up
Memory corruption : at evolution start up
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.22.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 497378 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-11-16 06:08 UTC by Akhil Laddha
Modified: 2013-09-13 00:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Vagrind traces of evolution process (279.74 KB, text/plain)
2007-11-16 06:25 UTC, Akhil Laddha
Details

Description Akhil Laddha 2007-11-16 06:08:49 UTC
Today morning i updated source and got memory corruption as soon as click on any item.

CalDAV Eplugin starting up ...
Loading Spamassasin as the default junk plugin
** (evolution:8413): DEBUG: mailto URL command: evolution %s
** (evolution:8413): DEBUG: mailto URL program: evolution
*** glibc detected *** evolution: corrupted double-linked list: 0xb0207710 ***
======= Backtrace: =========
/lib/libc.so.6[0xb66bc4b6]
/lib/libc.so.6[0xb66bde4a]
/lib/libc.so.6(cfree+0x89)[0xb66be179]
/home/akhil/opt/gnome2/lib/libglib-2.0.so.0(g_free+0x35)[0xb67c6d81]
/home/akhil/opt/gnome2/lib/evolution/2.22/components/libevolution-mail.so(mail_vfolder_add_uri+0x21b)[0xb606b92b]
/home/akhil/opt/gnome2/lib/evolution/2.22/components/libevolution-mail.so[0xb605c1c0]
/home/akhil/opt/gnome2/lib/evolution/2.22/components/libevolution-mail.so[0xb605d703]
/home/akhil/opt/gnome2/lib/evolution/2.22/components/libevolution-mail.so[0xb605f5b2]
/home/akhil/opt/gnome2/lib/libglib-2.0.so.0[0xb67c2a3d]
/home/akhil/opt/gnome2/lib/libglib-2.0.so.0[0xb67beb42]
/home/akhil/opt/gnome2/lib/libglib-2.0.so.0(g_main_context_dispatch+0x89)[0xb67c0028]
/home/akhil/opt/gnome2/lib/libglib-2.0.so.0[0xb67c057c]
/home/akhil/opt/gnome2/lib/libglib-2.0.so.0(g_main_loop_run+0x3a5)[0xb67c0d53]
/home/akhil/opt/gnome2/lib/libbonobo-2.so.0(bonobo_main+0x77)[0xb73c1acf]
evolution[0x805d6f5]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb666bfe0]
evolution[0x80500f1]
======= Memory map: ========
08048000-08063000 r-xp 00000000 08:05 33750      /home/akhil/opt/gnome2/bin/evolution
08063000-08064000 r--p 0001b000 08:05 33750      /home/akhil/opt/gnome2/bin/evolution
08064000-08066000 rw-p 0001c000 08:05 33750      /home/akhil/opt/gnome2/bin/evolution
08066000-08ac9000 rw-p 08066000 00:00 0          [heap]
ad27d000-ad27e000 ---p ad27d000 00:00 0 
ad27e000-ada7e000 rwxp ad27e000 00:00 0 
ada7e000-adb7f000 rw-p add6a000 00:00 0 
adc00000-adc5b000 rw-p adc00000 00:00 0 
adc5b000-add00000 ---p adc5b000 00:00 0 
add8b000-add8c000 r-xp 00000000 08:05 3423645    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/libmail-account-disable.so
add8c000-add8d000 r--p 00001000 08:05 3423645    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/libmail-account-disable.so
add8d000-add8e000 rw-p 00002000 08:05 3423645    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/libmail-account-disable.so
add8e000-add8f000 r-xp 00000000 08:05 3423539    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-new-mail-notify.so
add8f000-add90000 r--p 00000000 08:05 3423539    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-new-mail-notify.so
add90000-add91000 rw-p 00001000 08:05 3423539    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-new-mail-notify.so
add91000-add93000 r-xp 00000000 08:05 3423544    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-mail-notification.so
add93000-add94000 r--p 00001000 08:05 3423544    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-mail-notification.so
add94000-add95000 rw-p 00002000 08:05 3423544    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-mail-notification.so
add95000-adda9000 r-xp 00000000 08:05 3571975    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-groupwise-features.so
adda9000-addaa000 r--p 00013000 08:05 3571975    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-groupwise-features.so
addaa000-addab000 rw-p 00014000 08:05 3571975    /home/akhil/opt/gnome2/lib/evolution/2.22/plugins/liborg-gnome-groupwise-features.so
addab000-ade0b000 rw-s 00000000 00:09 1376269    /SYSV00000000 (deleted)
ade0b000-ade0c000 ---p ade0b000 00:00 0 
ade0c000-ae60c000 rwxp ade0c000 00:00 0 
ae60c000-ae60d000 ---p ae60c000 00:00 0 
ae60d000-aee0d000 rwxp ae60d000 00:00 0 
aee0d000-aee3a000 r--p 00000000 08:05 6471       /var/cache/libx11/compose/l4_024_313cb605_00280cc0
aee3a000-aee40000 r-xp 00000000 08:06 88919      /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
aee40000-aee42000 rw-p 00005000 08:06 88919      /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
aee42000-aef46000 rw-p aee42000 00:00 0 
aef46000-aefcb000 r--p 00000000 08:06 43643      /usr/share/fonts/truetype/DejaVuSans-Bold.ttf
aefcb000-aefcc000 ---p aefcb000 00:00 0 
aefcc000-af7cc000 rwxp aefcc000 00:00 0 
af7cc000-af8d0000 rw-p af7cc000 00:00 0
Comment 1 Akhil Laddha 2007-11-16 06:25:38 UTC
Created attachment 99191 [details]
Vagrind traces of evolution process

I cannot use evolution at all( evolution with exchange back )
Comment 2 André Klapper 2007-11-16 10:31:41 UTC
do you run *the latest* svn version? this probably has been fixed yesterday evening (your time)...
in general, it would be nice if you would tell in your bug reports what build you have and how recent it is to track stuff down.
Comment 3 Akhil Laddha 2007-11-16 13:03:48 UTC
Andre , today means Nov 16 i updated my build from svn trunk.

Gdb traces

Starting program: /home/akhil/opt/gnome2/bin/evolution 
[Thread debugging using libthread_db enabled]
[New Thread 0xb65866c0 (LWP 3876)]
CalDAV Eplugin starting up ...
Loading Spamassasin as the default junk plugin
** (evolution:3876): DEBUG: mailto URL command: evolution %s
** (evolution:3876): DEBUG: mailto URL program: evolution
[New Thread 0xb1359b90 (LWP 3932)]
[New Thread 0xb0b58b90 (LWP 3933)]
[Thread 0xb0b58b90 (LWP 3933) exited]
[New Thread 0xb0b58b90 (LWP 3934)]
[New Thread 0xb00ffb90 (LWP 3935)]
[New Thread 0xaf76eb90 (LWP 3938)]
[New Thread 0xaedafb90 (LWP 3940)]
[New Thread 0xae5aeb90 (LWP 3972)]
*** glibc detected *** /home/akhil/opt/gnome2/bin/evolution: malloc(): memory corruption: 0x0896b420 ***

Program received signal SIGINT, Interrupt.
[Switching to Thread 0xb65866c0 (LWP 3876)]
0xffffe410 in __kernel_vsyscall ()
(gdb) thread apply all bt


Comment 4 Reid Thompson 2007-11-16 16:45:28 UTC
Also from svn head this morning:

Program received signal SIGINT, Interrupt.

Thread NaN (LWP 13125)

  • #0 __kernel_vsyscall
  • #1 __lll_mutex_lock_wait
    from /lib/libc.so.6
  • #2 _L_lock_4996
    from /lib/libc.so.6
  • #3 *__GI___libc_free
    at malloc.c line 3620
  • #4 _dl_map_object_deps
    at dl-deps.c line 495
  • #5 dl_open_worker
    at dl-open.c line 330
  • #6 _dl_catch_error
    at dl-error.c line 178
  • #7 _dl_open
    at dl-open.c line 596
  • #8 do_dlopen
    at dl-libc.c line 86
  • #9 _dl_catch_error
    at dl-error.c line 178
  • #10 dlerror_run
    at dl-libc.c line 47
  • #11 *__GI___libc_dlopen_mode
    at dl-libc.c line 160
  • #12 init
    at ../sysdeps/i386/backtrace.c line 43
  • #13 pthread_once
    from /lib/libpthread.so.0
  • #14 *__GI___backtrace
    at ../sysdeps/i386/backtrace.c line 116
  • #15 __libc_message
    at ../sysdeps/unix/sysv/linux/libc_fatal.c line 150
  • #16 malloc_printerr
    at malloc.c line 5887
  • #17 malloc_consolidate
    at malloc.c line 4838
  • #18 _int_malloc
    at malloc.c line 4162
  • #19 *__GI___libc_malloc
    at malloc.c line 3549
  • #20 xmlDictCreate__internal_alias
    at dict.c line 336
  • #21 xmlInitParserCtxt__internal_alias
    at parserInternals.c line 1517
  • #22 xmlNewParserCtxt__internal_alias
    at parserInternals.c line 1768
  • #23 xmlCreateURLParserCtxt__internal_alias
    at parser.c line 12253
  • #24 xmlCreateFileParserCtxt__internal_alias
    at parser.c line 12291
  • #25 xmlSAXParseFileWithData__internal_alias
    at parser.c line 12323
  • #26 xmlSAXParseFile__internal_alias
    at parser.c line 12385
  • #27 xmlParseFile__internal_alias
    at parser.c line 12416
  • #28 load_current_view
    at gal-view-instance.c line 254
  • #29 gal_view_instance_load
    at gal-view-instance.c line 438
  • #30 emfv_setup_view_instance
    at em-folder-view.c line 679
  • #31 emfv_set_folder
    at em-folder-view.c line 760
  • #32 emfb_set_folder
    at em-folder-browser.c line 1855
  • #33 emfv_got_folder
    at em-folder-view.c line 775
  • #34 get_folder_got
    at mail-ops.c line 1230
  • #35 mail_msgport_replied
    at mail-mt.c line 473
  • #36 g_io_unix_dispatch
    at giounix.c line 162
  • #37 IA__g_main_context_dispatch
    at gmain.c line 2061
  • #38 g_main_context_iterate
    at gmain.c line 2694
  • #39 IA__g_main_loop_run
    at gmain.c line 2898
  • #40 bonobo_main
    at bonobo-main.c line 311
  • #41 main
    at main.c line 602

Comment 5 Milan Crha 2007-11-16 18:32:30 UTC
Hi Reid, it's only main thread, there is a chance that it SEGs in other thread, try update your eds (there has been done some changes since morning), recompile it, recompile Evolution against newer eds, same as Evolution-Exchange and be sure you killed previous version (evolution --force-shutdown (just in case, you know)) and if it fails again, then run "thread apply all bt" in gdb, and you can omit threads which "do nothing", like Thread 2, 5, 6, 7 in comment #3, when pasting here your stack trace (it's optional to omit threads from the list).
Comment 6 Matthew Barnes 2007-11-17 01:43:22 UTC
Found one last spot in Evolution-Exchange where a CamelFolderInfo was being created with g_new0() rather than camel_folder_info_new().  See revision 1503.

Things are pretty stable for me now, so closing.  Reopen if you see it again.
Comment 7 Matthew Barnes 2007-11-17 01:50:52 UTC
*** Bug 497378 has been marked as a duplicate of this bug. ***
Comment 8 Paul Smith 2007-11-17 15:11:34 UTC
I've rebuilt from SVN last night and this problem seems to be fixed.  Thanks!
Comment 9 Akhil Laddha 2007-11-19 05:06:58 UTC
Matthew,
         Worked fine for me also ...thanks :)