Bug 2232 - freeze when using quick search
Summary: freeze when using quick search
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Filtering (show other bugs)
Version: 3.7.7
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-07-21 10:40 UTC by kardan
Modified: 2010-07-27 18:02 UTC (History)
0 users

See Also:


Attachments
maybe fix invalid free of mem (579 bytes, patch)
2010-07-24 07:46 UTC, Salvatore De Paolis
no flags Details | Diff

Description kardan 2010-07-21 10:40:28 UTC
Overview

  I used the quick search (From/To/Subject) with the search term '[rails'

Result

  Claws Mail froze in the middle of the word.

Additional Information

console output:

$ *** glibc detected *** claws-mail: free(): invalid pointer: 0x09544210 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x8b17591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x8b18de8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x8b1becd]
/lib/libglib-2.0.so.0(g_free+0x36)[0x592fc6]
claws-mail(add_history+0x4f)[0x823d93f]
claws-mail[0x82ade91]
claws-mail[0x82af559]
/usr/lib/libgtk-x11-2.0.so.0(+0x13d424)[0x9ea424]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x264252]
/usr/lib/libgobject-2.0.so.0(+0x1f99d)[0x27899d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x5d3)[0x279c33]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x27a256]
/usr/lib/libgtk-x11-2.0.so.0(+0x26a636)[0xb17636]
/usr/lib/libgtk-x11-2.0.so.0(gtk_window_propagate_key_event+0x10f)[0xb2959f]
/usr/lib/libgtk-x11-2.0.so.0(+0x27f8bc)[0xb2c8bc]
/usr/lib/libgtk-x11-2.0.so.0(+0x13d424)[0x9ea424]
/usr/lib/libgobject-2.0.so.0(+0x98b9)[0x2628b9]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x264252]
/usr/lib/libgobject-2.0.so.0(+0x1f5e6)[0x2785e6]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x5d3)[0x279c33]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26)[0x27a256]
/usr/lib/libgtk-x11-2.0.so.0(+0x26a636)[0xb17636]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x1a3)[0x9e2b33]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x307)[0x9e3e07]
/usr/lib/libgdk-x11-2.0.so.0(+0x5639a)[0xd6039a]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5)[0x58a5e5]
/lib/libglib-2.0.so.0(+0x3f2d8)[0x58e2d8]
/lib/libglib-2.0.so.0(g_main_loop_run+0x187)[0x58e817]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0x9e43c9]
claws-mail(main+0x1abe)[0x813f5be]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x8ac2bd6]
claws-mail[0x8082cd1]
======= Memory map: ========
00110000-00129000 r-xp 00000000 08:01 273117     /usr/lib/libatk-1.0.so.0.3009.1
00129000-0012a000 ---p 00019000 08:01 273117     /usr/lib/libatk-1.0.so.0.3009.1
0012a000-0012b000 r--p 00019000 08:01 273117     /usr/lib/libatk-1.0.so.0.3009.1
0012b000-0012c000 rw-p 0001a000 08:01 273117     /usr/lib/libatk-1.0.so.0.3009.1
0012c000-001a3000 r-xp 00000000 08:01 294928     /usr/lib/libcairo.so.2.10800.10
001a3000-001a5000 r--p 00076000 08:01 294928     /usr/lib/libcairo.so.2.10800.10
001a5000-001a6000 rw-p 00078000 08:01 294928     /usr/lib/libcairo.so.2.10800.10
001a6000-001ad000 r-xp 00000000 08:01 149931     /lib/tls/i686/cmov/librt-2.11.1.so
001ad000-001ae000 r--p 00006000 08:01 149931     /lib/tls/i686/cmov/librt-2.11.1.so
001ae000-001af000 rw-p 00007000 08:01 149931     /lib/tls/i686/cmov/librt-2.11.1.so
001af000-001c2000 r-xp 00000000 08:01 145684     /lib/tls/i686/cmov/libnsl-2.11.1.so
001c2000-001c3000 r--p 00012000 08:01 145684     /lib/tls/i686/cmov/libnsl-2.11.1.so
001c3000-001c4000 rw-p 00013000 08:01 145684     /lib/tls/i686/cmov/libnsl-2.11.1.so
001c4000-001c6000 rw-p 00000000 00:00 0
001c6000-001d1000 r-xp 00000000 08:01 267132     /usr/lib/liblber-2.4.so.2.5.4
001d1000-001d2000 r--p 0000a000 08:01 267132     /usr/lib/liblber-2.4.so.2.5.4
001d2000-001d3000 rw-p 0000b000 08:01 267132     /usr/lib/liblber-2.4.so.2.5.4
001d5000-001e4000 r-xp 00000000 08:01 269883     /usr/lib/libtasn1.so.3.1.7
001e4000-001e5000 r--p 0000e000 08:01 269883     /usr/lib/libtasn1.so.3.1.7
001e5000-001e6000 rw-p 0000f000 08:01 269883     /usr/lib/libtasn1.so.3.1.7
001e6000-00226000 r-xp 00000000 08:01 266533     /usr/lib/libpango-1.0.so.0.2800.0
00226000-00227000 ---p 00040000 08:01 266533     /usr/lib/libpango-1.0.so.0.2800.0
00227000-00228000 r--p 00040000 08:01 266533     /usr/lib/libpango-1.0.so.0.2800.0
00228000-00229000 rw-p 00041000 08:01 266533     /usr/lib/libpango-1.0.so.0.2800.0
00229000-00257000 r-xp 00000000 08:01 294624     /usr/lib/libfontconfig.so.1.4.4
00257000-00258000 r--p 0002d000 08:01 294624     /usr/lib/libfontconfig.so.1.4.4
00258000-00259000 rw-p 0002e000 08:01 294624     /usr/lib/libfontconfig.so.1.4.4
00259000-00296000 r-xp 00000000 08:01 307073     /usr/lib/libgobject-2.0.so.0.2400.1
00296000-00297000 r--p 0003c000 08:01 307073     /usr/lib/libgobject-2.0.so.0.2400.1
00297000-00298000 rw-p 0003d000 08:01 307073     /usr/lib/libgobject-2.0.so.0.2400.1
00298000-002ab000 r-xp 00000000 08:01 131926     /lib/libz.so.1.2.3.3
002ab000-002ac000 r--p 00012000 08:01 131926     /lib/libz.so.1.2.3.3
002ac000-002ad000 rw-p 00013000 08:01 131926     /lib/libz.so.1.2.3.3
002ad000-002ae000 r-xp 00000000 08:01 396706     /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
002ae000-002af000 r--p 00000000 08:01 396706     /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
002af000-002b0000 rw-p 00001000 08:01 396706     /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
002b0000-00321000 r-xp 00000000 08:01 289793     /usr/lib/libfreetype.so.6.3.22
00321000-00325000 r--p 00070000 08:01 289793     /usr/lib/libfreetype.so.6.3.22
00325000-00326000 rw-p 00074000 08:01 289793     /usr/lib/libfreetype.so.6.3.22
00326000-00329000 r-xp 00000000 08:01 310346     /usr/lib/libcompface.so.1.0.0
00329000-0032a000 r--p 00002000 08:01 310346     /usr/lib/libcompface.so.1.0.0
0032a000-0032c000 rw-p 00003000 08:01 310346     /usr/lib/libcompface.so.1.0.0
0032c000-00332000 rw-p 00000000 00:00 0
00332000-00347000 r-xp 00000000 08:01 149929     /lib/tls/i686/cmov/libpthread-2.11.1.so
00347000-00348000 r--p 00014000 08:01 149929     /lib/tls/i686/cmov/libpthread-2.11.1.so
00348000-00349000 rw-p 00015000 08:01 149929     /lib/tls/i686/cmov/libpthread-2.11.1.so
00349000-0034b000 rw-p 00000000 00:00 0
0034b000-00352000 r-xp 00000000 08:01 297436     /usr/lib/libSM.so.6.0.1
00352000-00353000 r--p 00006000 08:01 297436     /usr/lib/libSM.so.6.0.1
00353000-00354000 rw-p 00007000 08:01 297436     /usr/lib/libSM.so.6.0.1
00354000-00356000 r-xp 00000000 08:01 269719     /usr/lib/liblockfile.so.1.0
00356000-00357000 r--p 00001000 08:01 269719     /usr/lib/liblockfile.so.1.0
00357000-00358000 rw-p 00002000 08:01 269719     /usr/lib/liblockfile.so.1.0
00358000-00360000 r-xp 00000000 08:01 294926     /usr/lib/libXrender.so.1.3.0
00360000-00361000 r--p 00007000 08:01 294926     /usr/lib/libXrender.so.1.3.0
00361000-00362000 rw-p 00008000 08:01 294926     /usr/lib/libXrender.so.1.3.0
00362000-0038f000 r-xp 00000000 08:01 299341     /usr/lib/libgpgme.so.11.7.0
0038f000-00390000 r--p 0002c000 08:01 299341     /usr/lib/libgpgme.so.11.7.0
00390000-00391000 rw-p 0002d000 08:01 299341     /usr/lib/libgpgme.so.11.7.0
00391000-00392000 rw-p 00000000 00:00 0
00392000-003d6000 r-xp 00000000 08:01 267133     /usr/lib/libldap_r-2.4.so.2.5.4
003d6000-003d7000 r--p 00043000 08:01 267133     /usr/lib/libldap_r-2.4.so.2.5.4
003d7000-003d8000 rw-p 00044000 08:01 267133     /usr/lib/libldap_r-2.4.so.2.5.4
003d8000-003d9000 rw-p 00000000 00:00 0
003d9000-003f4000 r-xp 00000000 08:01 149897     /lib/ld-2.11.1.so
003f4000-003f5000 r--p 0001a000 08:01 149897     /lib/ld-2.11.1.so
003f5000-003f6000 rw-p 0001b000 08:01 149897     /lib/ld-2.11.1.so
003f6000-0040b000 r-xp 00000000 08:01 297434     /usr/lib/libICE.so.6.3.0
0040b000-0040c000 r--p 00014000 08:01 297434     /usr/lib/libICE.so.6.3.0
0040c000-0040d000 rw-p 00015000 08:01 297434     /usr/lib/libICE.so.6.3.0
0040d000-0040f000 rw-p 00000000 00:00 0


attaching via gdb brought the backtrace:

#0  0x00487422 in __kernel_vsyscall ()
#1  0x08b86d33 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x08b1d423 in _L_lock_56 () from /lib/tls/i686/cmov/libc.so.6
#3  0x08b16e13 in ptmalloc_lock_all () at arena.c:288
#4  0x08b43d77 in __libc_fork () at ../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:95
#5  0x003415c4 in __fork () at ../nptl/sysdeps/unix/sysv/linux/pt-fork.c:26
#6  0x080dc2bb in crash_handler (sig=6) at crash.c:520
#7  <signal handler called>
#8  0x00487422 in __kernel_vsyscall ()
#9  0x08ad6651 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#10 0x08ad9a82 in *__GI_abort () at abort.c:92
#11 0x08b0d49d in __libc_message (do_abort=2, fmt=0x8be1f98 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#12 0x08b17591 in malloc_printerr (action=<value optimized out>, str=0x6 <Address 0x6 out of bounds>, ptr=0x9544210) at malloc.c:6264
#13 0x08b18de8 in _int_free (av=<value optimized out>, p=<value optimized out>) at malloc.c:4792
#14 0x08b1becd in *__GI___libc_free (mem=0x9544210) at malloc.c:3738
#15 0x00592fc6 in IA__g_free (mem=0x9544210) at /build/buildd/glib2.0-2.24.1/glib/gmem.c:191
#16 0x0823d93f in add_history (list=0x97a20a0, str=0x9a8d6f0 "[rail") at utils.c:1012
#17 0x082ade91 in searchbar_run (quicksearch=0x96590e8, run_only_if_fast=<value optimized out>) at quicksearch.c:231
#18 0x082af559 in searchbar_pressed (widget=0x9662118, event=0x9bceb40, quicksearch=0x96590e8) at quicksearch.c:316
#19 0x009ea424 in _gtk_marshal_BOOLEAN__BOXED (closure=0x9661788, return_value=0xbfef90f4, n_param_values=2, param_values=0x9885600, 
    invocation_hint=0xbfef90e0, marshal_data=0x82af4f0) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
#20 0x00264252 in IA__g_closure_invoke (closure=0x9661788, return_value=0xbfef90f4, n_param_values=2, param_values=0x9885600, invocation_hint=0xbfef90e0)
    at /build/buildd/glib2.0-2.24.1/gobject/gclosure.c:767
#21 0x0027899d in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x9662118, emission_return=0xbfef923c, 
    instance_and_params=0x9885600) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3248
#22 0x00279c33 in IA__g_signal_emit_valist (instance=0x9662118, signal_id=42, detail=0, var_args=0xbfef92a0 "&#786;\357\277\340\305R\t&#530;\357\277\332s\261")
    at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:2991
#23 0x0027a256 in IA__g_signal_emit (instance=0x9662118, signal_id=42, detail=0) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3038
#24 0x00b17636 in gtk_widget_event_internal (widget=<value optimized out>, event=0x9bceb40) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:4951
#25 0x00b2959f in IA__gtk_window_propagate_key_event (window=0x9559848, event=0x9bceb40) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwindow.c:5184
#26 0x00b2c8bc in gtk_window_key_press_event (widget=0x9559848, event=0x9bceb40) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwindow.c:5214
#27 0x009ea424 in _gtk_marshal_BOOLEAN__BOXED (closure=0x952fe08, return_value=0xbfef94f4, n_param_values=2, param_values=0x99365b8, 
    invocation_hint=0xbfef94e0, marshal_data=0xb2c870) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
#28 0x002628b9 in g_type_class_meta_marshal (closure=0x952fe08, return_value=0xbfef94f4, n_param_values=2, param_values=0x99365b8, 
    invocation_hint=0xbfef94e0, marshal_data=0xcc) at /build/buildd/glib2.0-2.24.1/gobject/gclosure.c:878
#29 0x00264252 in IA__g_closure_invoke (closure=0x952fe08, return_value=0xbfef94f4, n_param_values=2, param_values=0x99365b8, invocation_hint=0xbfef94e0)
    at /build/buildd/glib2.0-2.24.1/gobject/gclosure.c:767
#30 0x002785e6 in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x9559848, emission_return=0xbfef963c, 
    instance_and_params=0x99365b8) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3286
#31 0x00279c33 in IA__g_signal_emit_valist (instance=0x9559848, signal_id=42, detail=0, var_args=0xbfef96a0 "&#790;\357\277\340\305R\t&#534;\357\277\332s\261")
    at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:2991
#32 0x0027a256 in IA__g_signal_emit (instance=0x9559848, signal_id=42, detail=0) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3038
#33 0x00b17636 in gtk_widget_event_internal (widget=<value optimized out>, event=0x9bceb40) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:4951
#34 0x009e2b33 in IA__gtk_propagate_event (widget=0x9559848, event=0x9bceb40) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:2421
#35 0x009e3e07 in IA__gtk_main_do_event (event=0x9bceb40) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1647
#36 0x00d6039a in gdk_event_dispatch (source=0x951eda8, callback=0, user_data=0x0) at /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkevents-x11.c:2372
#37 0x0058a5e5 in g_main_dispatch (context=0x951edf0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#38 IA__g_main_context_dispatch (context=0x951edf0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#39 0x0058e2d8 in g_main_context_iterate (context=0x951edf0, block=<value optimized out>, dispatch=1, self=0x94f8b48)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#40 0x0058e817 in IA__g_main_loop_run (loop=0x94ba3d8) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2799
#41 0x009e43c9 in IA__gtk_main () at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
#42 0x0813f5be in main (argc=1, argv=0xbfef9a84) at main.c:1661
Comment 1 Salvatore De Paolis 2010-07-21 11:03:44 UTC
the stack frame goes into the Extended search instead of the From/To/Subject/Tag.
Did you someone switch to Extended search?
Also is this reproducible? I can't here.
If you can reproduce please, give the steps here.
Comment 2 Salvatore De Paolis 2010-07-21 11:10:38 UTC
Err.. actually the CVS code is changed in such part. So it's right. Can you test the CVS code? I guess the bug may be already fixed.
Comment 3 kardan 2010-07-24 01:29:16 UTC
hi, after two days the cvs18-build froze as well. There was no output on the console, while the backtrace looked similar:

#0  0x004ff422 in __kernel_vsyscall ()
#1  0x05835d33 in __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:95
#2  0x057cc697 in _L_lock_9637 () from /lib/tls/i686/cmov/libc.so.6
#3  0x057caec6 in *__GI___libc_free (mem=0x9d1aaa0) at malloc.c:3736
#4  0x005bafc6 in IA__g_free (mem=0x9d1aaa0) at /build/buildd/glib2.0-2.24.1/glib/gmem.c:191
#5  0x0824bf7f in add_history (list=0xa231bc0, str=0xa46cf30 "cul") at utils.c:1012
#6  0x082ad2c6 in searchbar_run (quicksearch=0x9e4b370, run_only_if_fast=<value optimized out>) at quicksearch.c:237
#7  0x082aebf9 in searchbar_pressed (widget=0x9e53938, event=0x9e76d10, quicksearch=0x9e4b370) at quicksearch.c:328
#8  0x00f87424 in _gtk_marshal_BOOLEAN__BOXED (closure=0x9e5a780, return_value=0xbf98d194, n_param_values=2, param_values=0xa457d90, 
    invocation_hint=0xbf98d180, marshal_data=0x82aeb90) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
#9  0x00b43252 in IA__g_closure_invoke (closure=0x9e5a780, return_value=0xbf98d194, n_param_values=2, param_values=0xa457d90, 
    invocation_hint=0xbf98d180) at /build/buildd/glib2.0-2.24.1/gobject/gclosure.c:767
#10 0x00b5799d in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x9e53938, emission_return=0xbf98d2dc, 
    instance_and_params=0xa457d90) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3248
#11 0x00b58c33 in IA__g_signal_emit_valist (instance=0x9e53938, signal_id=50, detail=0, 
    var_args=0xbf98d340 "l&#1240;\277X\213\321\th&#1240;\277\332C\v\001\364\257!\001\070\071\345\t\210&#1240;\277\070\071\345\t89\345\tX\213\321\t\210&#1240;\277")
    at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:2991
#12 0x00b59256 in IA__g_signal_emit (instance=0x9e53938, signal_id=50, detail=0) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3038
#13 0x010b4636 in gtk_widget_event_internal (widget=<value optimized out>, event=0x9e76d10) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:4951
#14 0x010c659f in IA__gtk_window_propagate_key_event (window=0x9d3f820, event=0x9e76d10) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwindow.c:5184
#15 0x010c98bc in gtk_window_key_press_event (widget=0x9d3f820, event=0x9e76d10) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwindow.c:5214
#16 0x00f87424 in _gtk_marshal_BOOLEAN__BOXED (closure=0x9d2bf08, return_value=0xbf98d594, n_param_values=2, param_values=0x9d387b8, 
    invocation_hint=0xbf98d580, marshal_data=0x10c9870) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
#17 0x00b418b9 in g_type_class_meta_marshal (closure=0x9d2bf08, return_value=0xbf98d594, n_param_values=2, param_values=0x9d387b8, 
    invocation_hint=0xbf98d580, marshal_data=0xcc) at /build/buildd/glib2.0-2.24.1/gobject/gclosure.c:878
#18 0x00b43252 in IA__g_closure_invoke (closure=0x9d2bf08, return_value=0xbf98d594, n_param_values=2, param_values=0x9d387b8, 
    invocation_hint=0xbf98d580) at /build/buildd/glib2.0-2.24.1/gobject/gclosure.c:767
#19 0x00b575e6 in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x9d3f820, emission_return=0xbf98d6dc, 
    instance_and_params=0x9d387b8) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3286
#20 0x00b58c33 in IA__g_signal_emit_valist (instance=0x9d3f820, signal_id=50, detail=0, 
    var_args=0xbf98d740 "l&#1496;\277X\213\321\th&#1496;\277\332C\v\001\364\257!\001 \370\323\t\210&#1496;\277 \370\323\t \370\323\tX\213\321\t\210&#1496;\277")
    at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:2991
#21 0x00b59256 in IA__g_signal_emit (instance=0x9d3f820, signal_id=50, detail=0) at /build/buildd/glib2.0-2.24.1/gobject/gsignal.c:3038
#22 0x010b4636 in gtk_widget_event_internal (widget=<value optimized out>, event=0x9e76d10) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:4951
#23 0x00f7fb33 in IA__gtk_propagate_event (widget=0x9d3f820, event=0x9e76d10) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:2421
#24 0x00f80e07 in IA__gtk_main_do_event (event=0x9e76d10) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1647
#25 0x0044339a in gdk_event_dispatch (source=0x9d173d8, callback=0, user_data=0x0) at /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkevents-x11.c:2372
#26 0x005b25e5 in g_main_dispatch (context=0x9d17420) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#27 IA__g_main_context_dispatch (context=0x9d17420) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#28 0x005b62d8 in g_main_context_iterate (context=0x9d17420, block=<value optimized out>, dispatch=1, self=0x9cb2e38)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#29 0x005b6817 in IA__g_main_loop_run (loop=0x9cab238) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2799
#30 0x00f813c9 in IA__gtk_main () at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
#31 0x0813e50d in main (argc=1, argv=0xbf98db24) at main.c:1661
Comment 4 Salvatore De Paolis 2010-07-24 07:46:22 UTC
Created attachment 874 [details]
maybe fix invalid free of mem

Can you try the attached patch against CVS source?
Comment 5 Colin Leroy 2010-07-24 18:50:50 UTC
g_list_free() of the last g_list_remove()d item is a bad idea !
Comment 6 Michael Rasmussen 2010-07-24 19:25:59 UTC
Shouldn't the above be reversed?

Is:
if (last->data)
    g_free(last->data);
list = g_list_remove(list, last->data);

Should:
if (last->data) {
    list = g_list_remove(list, last->data);
    g_free(last->data);
}
Comment 7 Colin Leroy 2010-07-25 09:33:24 UTC
Indeed, it should. Commited :)
Comment 8 users 2010-07-25 12:58:16 UTC
Changes related to this bug have been committed.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.colino.net/claws-mail/

2010-07-25 [colin]	3.7.6cvs20

	* src/common/utils.c
		Reverse free/use with more logical and safe
		use/free. Thanks to Michael Rasmussen !

2010-07-24 [colin]	3.7.6cvs19

	* src/gtk/quicksearch.c
		Finish 3.7.5cvs42 patch. Probably fixes bug 2232,
		'freeze when using quick search'

2010-07-11 [iwkse]	3.7.6cvs18

	* src/gtk/quicksearch.c
		Add SMALL_LAYOUT to quicksearch_relayout

2010-07-10 [iwkse]	3.7.6cvs17

	* src/mainwindow.h
			Remove forgotten variable from
			the last bugfix #2224

2010-07-10 [colin]	3.7.6cvs16

	* src/mainwindow.c
	* src/gtk/quicksearch.c
		Clean fix for bug #2224: don't mess with GTK settings when
		handling the layout ourselves is enough

2010-07-09 [iwkse]	3.7.6cvs15

	* src/mainwindow.h
	* src/mainwindow.c
			Better fix for Bug #2224

2010-07-09 [iwkse]	3.7.6cvs14

	* src/mainwindow.c
			Bug #2224
			Always use stock icons on buttons

2010-07-08 [colin]	3.7.6cvs13

	* src/gtk/filesel.c
		Fix bug 2223, 'Compilation fails with GTK+
		2.21.3'. Thanks to Jan Psota !

		Do not add into quicksearch history
		matching rules with bad syntax
		Fix bug 2208. Encode encrypted password to qouted
		printable to avoid making invalid XML. Encoding
		will be activated the first time the password is
		changed.
Comment 9 kardan 2010-07-27 18:02:50 UTC
thanks, seems to be stable now.
I assume this bug to be resolved.

Note You need to log in before you can comment on or make changes to this bug.