Opened 10 years ago

Closed 10 years ago

#12447 closed defect (fixed)

wxGTK patch: Segfault on Drag&Drop

Reported by: botg Owned by:
Priority: normal Milestone:
Component: wxGTK Version:
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

wxDropSource registers with the configure_event signal when performing drag&drop, with "this" as user data. However, it does not unregister the signal handler after finishing the drag&drop operating.

As such, the signal handler remains connected longer than the lifetime of the wxDropSource instance. If the signal handler is invoked then, bad things will happen.

The resulting segfault can be reproduced easily:

  • Install Fedora 13 or Ubuntu 10.10 beta
  • Install the gnome-shell package and start the gnome shell.
  • Start wx' dnd sample and perform a drag&drop operating

Strangely, running the standard Gnome Desktop or KDE does not trigger this bug.

I have attached two files that fix the problem both for trunk as well as the 2.8 branch.

Attachments (2)

dnd_trunk.patch download (423 bytes) - added by botg 10 years ago.
dnd_28.patch download (1.9 KB) - added by botg 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by botg

Changed 10 years ago by botg

comment:2 Changed 10 years ago by RR

  • Resolution set to fixed
  • Status changed from new to closed

(In [65480]) Unregister configure callback, fixes #12447: wxGTK patch: Segfault on Drag&Drop

Note: See TracTickets for help on using tickets.