[Users] [Bug 2957] Double-free in account preferences

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Jul 10 07:04:23 CEST 2013


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2957

--- Comment #4 from kardan at riseup.net ---
thanks for the hint. If I add too much information, this is because I do not
know, if this important information. Like this valgrind trace after applying
the patch.

1. create new account
2. cancel
3. new

prefswindow.c:711:0,000000
prefswindow.c:177:prefs window closed
prefs_account.c:3699:called inc_unlock (lock count 1)
prefs_account.c:3675:Opening account preferences window...
prefs_account.c:3677:called inc_lock (lock count 2)
==26498== Invalid free() / delete / delete[] / realloc()
==26498==    at 0x402A24C: free (vg_replace_malloc.c:446)
==26498==    by 0x4C1A56A: standard_free (gmem.c:98)
==26498==    by 0x4C1A6DF: g_free (gmem.c:252)
==26498==    by 0x8162C71: prefs_set_default (in /usr/bin/claws-mail)
==26498==    by 0x814621D: prefs_account_new (in /usr/bin/claws-mail)
==26498==    by 0x8146D2C: prefs_account_open (in /usr/bin/claws-mail)
==26498==    by 0x808D289: account_add (in /usr/bin/claws-mail)
==26498==    by 0x4B8AA36: g_cclosure_marshal_VOID__VOIDv (gmarshal.c:115)
==26498==    by 0x4B88F00: _g_closure_invoke_va (gclosure.c:840)
==26498==    by 0x4BA26FD: g_signal_emit_valist (gsignal.c:3234)
==26498==    by 0x4BA32B2: g_signal_emit (gsignal.c:3384)
==26498==    by 0x410FD49: gtk_button_clicked (gtkbutton.c:1128)
==26498==  Address 0x741cbd0 is 0 bytes inside a block of size 1 free'd
==26498==    at 0x402A24C: free (vg_replace_malloc.c:446)
==26498==    by 0x4C1A56A: standard_free (gmem.c:98)
==26498==    by 0x4C1A6DF: g_free (gmem.c:252)
==26498==    by 0x8163468: prefs_free (in /usr/bin/claws-mail)
==26498==    by 0x8146A32: prefs_account_free (in /usr/bin/claws-mail)
==26498==    by 0x8146D6D: prefs_account_open (in /usr/bin/claws-mail)
==26498==    by 0x808D289: account_add (in /usr/bin/claws-mail)
==26498==    by 0x4B8A9CE: g_cclosure_marshal_VOID__VOID (gmarshal.c:85)
==26498==    by 0x4B88C55: g_closure_invoke (gclosure.c:777)
==26498==    by 0x410FD49: gtk_button_clicked (gtkbutton.c:1128)
==26498==  Address 0x741cbd0 is 0 bytes inside a block of size 1 free'd
==26498==    at 0x402A24C: free (vg_replace_malloc.c:446)
==26498==    by 0x4C1A56A: standard_free (gmem.c:98)
==26498==    by 0x4C1A6DF: g_free (gmem.c:252)
==26498==    by 0x8163468: prefs_free (in /usr/bin/claws-mail)
==26498==    by 0x8146A32: prefs_account_free (in /usr/bin/claws-mail)
==26498==    by 0x8146D6D: prefs_account_open (in /usr/bin/claws-mail)
==26498==    by 0x808D289: account_add (in /usr/bin/claws-mail)
==26498==    by 0x4B8A9CE: g_cclosure_marshal_VOID__VOID (gmarshal.c:85)
==26498==    by 0x4B88C55: g_closure_invoke (gclosure.c:777)
==26498==    by 0x4B9AED6: signal_emit_unlocked_R (gsignal.c:3584)
==26498==    by 0x4BA30DA: g_signal_emit_valist (gsignal.c:3328)
==26498==    by 0x4BA32B2: g_signal_emit (gsignal.c:3384)

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list