Bug 540435

Summary: [abrt] double free in evolution-2.28.0, vee_rebuild_folder, g_hash_table_resize
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: evolutionAssignee: Matthew Barnes <mbarnes>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mbarnes, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:b36d314e847dda5095f25f1b988c4ccb178f1c00
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-23 14:12:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Mark McLoughlin 2009-11-23 11:44:23 UTC
abrt detected a crash.

Comment
-----
Just got this while starting up evo

Folders are all local mboxen

See the glibc double-free/corruption message during hash table resize in camel-vee-folder.c

Attached file: backtrace
cmdline: evolution --component=mail
component: evolution
executable: /usr/bin/evolution
kernel: 2.6.31.5-127.fc12.i686.PAE
package: evolution-2.28.0-2.fc12
rating: 4
reason: Process was terminated by signal 6

Comment 1 Mark McLoughlin 2009-11-23 11:44:26 UTC
Created attachment 373086 [details]
File: backtrace

Comment 2 Mark McLoughlin 2009-11-23 11:46:53 UTC
Interesting bit from the stack trace:

#3  0x01707e5d in __libc_message (do_abort=<value optimized out>, 
    fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
        ap = 
    0xb526ad58 "*** glibc detected *** evolution: double free or corruption (!prev): 0x09110b28 ***\n"
...
#4  0x0170e261 in malloc_printerr (action=<value optimized out>, 
#5  0x00fc4557 in IA__g_free (mem=<value optimized out>) at gmem.c:190
#6  0x00fad495 in g_hash_table_resize (hash_table=<value optimized out>)
#7  g_hash_table_maybe_resize (hash_table=<value optimized out>)
#8  g_hash_table_insert_internal (hash_table=<value optimized out>)
#9  0x0098622e in vee_rebuild_folder (vf=<value optimized out>, 
    source=<value optimized out>, ex=<value optimized out>)
    at camel-vee-folder.c:1117

Comment 3 Milan Crha 2009-11-23 14:08:53 UTC
Thanks for a bug report. I see there are too many <value optimized out> variables, thus it's hard to know whether the exact error is a parallel call to g_hash_table_resize on the same vfolder, as Thread 1 and Thread 6 are doing pretty the same thing there, or not.

Comment 4 Milan Crha 2009-11-23 14:12:23 UTC
I couldn't find the same bug report upstream, thus I entered a new one there [1].

[1] https://bugzilla.gnome.org/show_bug.cgi?id=602729