The audio/audacity port segfaults in 7.0-BETA3. If the $HOME/.audacity file is
missing, this happens immediately at startup. It turns out that the wxWidgets
port (x11-toolkits/wxgtk26) is incompatible with a recent upgrade of the GTK+
port (x11-toolkits/gtk20) from 2.10.14 to 2.12.1, since GtkBorder objects can
no longer be released with g_free(). Attempting to do so anyway will instead
release a large block of internal data structures needed for memory allocation
in GLib, leading to extensive memory corruption and premature death.
Note that many programs using the wxgtk26 port are likely to be affected by this
bug in more or less subtle ways. The required patches are already included in
wx-2.8.x and are not needed for wx-2.4.x, so this is specific to wxgtk26.
Fix: The attached shell archive contains two single-line patches suitable for the
x11-toolkits/wxgtk26/files directory. With a lack of bad luck, that's it!
Patch attached with submission follows:
How-To-Repeat: Memory corruption problems can be tricky to reproduce, but I would try removing
any pre-existing $HOME/.audacity file before starting audacity. The bug may also
depend on the actual GTK theme in use, so you might need some variation there.
Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Committed. Thank you for high quality problem report!
fjoe 2007-11-24 19:58:44 UTC
FreeBSD ports repository
Fix coredump: use gtk_border_free() insead of g_free()
for freeing border objects. The change exists in wxgtk 2.8 and later.
Submitted by: Henrik Gulbrandsen
Approved by: portmgr (linimon)
Revision Changes Path
1.12 +1 -1 ports/x11-toolkits/wxgtk26-unicode/Makefile
1.38 +1 -1 ports/x11-toolkits/wxgtk26/Makefile
1.1 +11 -0 ports/x11-toolkits/wxgtk26/files/patch-src-gtk-button.cpp (new)
1.1 +11 -0 ports/x11-toolkits/wxgtk26/files/patch-src-gtk-window.cpp (new)
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"