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 665338 - double free in GtkIconView drag 'n drop
double free in GtkIconView drag 'n drop
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkIconView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-12-01 21:27 UTC by Claudio Saavedra
Modified: 2011-12-01 22:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GtkIconView: fix a memory corruption in the drag-n-drop code (1.29 KB, patch)
2011-12-01 21:49 UTC, Claudio Saavedra
committed Details | Review

Description Claudio Saavedra 2011-12-01 21:27:57 UTC
1. gtk3-demo
2. Go to Editing and Drag-n-Drop IconView demo.
3. Drag one of the cells down and boom!


(gdb) back
  • #0 raise
    from /lib64/libc.so.6
  • #1 abort
    from /lib64/libc.so.6
  • #2 __libc_message
    from /lib64/libc.so.6
  • #3 malloc_printerr
    from /lib64/libc.so.6
  • #4 standard_free
    at gmem.c line 98
  • #5 g_free
    at gmem.c line 252
  • #6 gdk_threads_dispatch_free
    at gdk.c line 758
  • #7 g_source_callback_unref
    at gmain.c line 1283
  • #8 g_source_destroy_internal
    at gmain.c line 952
  • #9 g_source_destroy
    at gmain.c line 1009
  • #10 g_source_remove
    at gmain.c line 1849
  • #11 remove_scroll_timeout
    at gtkiconview.c line 6084
  • #12 gtk_icon_view_drag_leave
    at gtkiconview.c line 6492
  • #13 _gtk_marshal_VOID__OBJECT_UINT
    at gtkmarshalers.c line 2544
  • #14 g_type_class_meta_marshal
    at gclosure.c line 885
  • #15 g_closure_invoke
    at gclosure.c line 774
  • #16 signal_emit_unlocked_R
    at gsignal.c line 3340
  • #17 g_signal_emit_valist
    at gsignal.c line 3033
  • #18 g_signal_emit_by_name
    at gsignal.c line 3127
  • #19 gtk_drag_dest_leave
    at gtkdnd.c line 2191
  • #20 _gtk_drag_dest_handle_event
    at gtkdnd.c line 1692
  • #21 gtk_main_do_event
    at gtkmain.c line 1713
  • #22 _gdk_event_emit
    at gdkevents.c line 71
  • #23 gdk_event_source_dispatch
    at gdkeventsource.c line 360
  • #24 g_main_dispatch
    at gmain.c line 2513
  • #25 g_main_context_dispatch
    at gmain.c line 3050
  • #26 g_main_context_iterate
    at gmain.c line 3121
  • #27 g_main_loop_run
    at gmain.c line 3315
  • #28 gtk_main
    at gtkmain.c line 1159
  • #29 main
    at main.c line 1007

Comment 1 Claudio Saavedra 2011-12-01 21:49:22 UTC
Created attachment 202559 [details] [review]
GtkIconView: fix a memory corruption in the drag-n-drop code

You shall free with g_slice_free() what you allocate with
g_slice_new().