FS#2835 - glibc detected *** double free or corruption with XFce4

Attached to Project: Arch Linux
Opened by Zsolt Botykai (in hungarian: Botykai Zsolt) (zsoltika) - Tuesday, 14 June 2005, 18:10 GMT
Last edited by Dale Blount (dale) - Tuesday, 14 June 2005, 18:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aurelien Foret (aurelien.foret)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi I just installed archlinux with my favourite DE=xfce4. I set my $LANG as 'hu_HU'. Now I got this error with xfdesktop (it doesn't even start) and with the panel (after adding some plugin).
*** attempt to put segment in horiz list twice
... (same lines repeated)
*** attempt to put segment in horiz list twice
*** glibc detected *** double free or corruption (fasttop): 0x0818f2e0 ***
IMHO it's the same like this I found here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=135859
I would like to use xfce4 in hungarian (my wife does too), AFAIK xfce4 has hungarian translation files ...
This task depends upon

Closed by  arjan timmerman (blaasvis)
Tuesday, 28 March 2006, 20:50 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Tuesday, 14 June 2005, 23:16 GMT
Took me a while to debug this shit thingy, but after a while I was able to reproduce it with a testcase.

cat_to_displayname_new_full = g_hash_table_new(g_str_hash, g_str_equal,
(GDestroyNotify)g_free, (GDestroyNotify)g_free);

This line in desktop-menuspec.c in xfdesktop source makes sure gchar* "objects" (they're just strings, no objects/structs at all) get free'd when they get removed from the hashtable. Nice and shiny feature, but you should never free a stupid string, glibc will trigger either an invalid free or some corruption/double free error on it.

Change these lines to this:
cat_to_displayname_new = g_hash_table_new(g_str_hash, g_str_equal);

Maybe the same accounts for the creation of the hashtable of displayname_to_icon, but that one doesn't crash over here.

Loading...