[Bug 480034] New: wmctrl has a bug on 64 bit
https://bugzilla.novell.com/show_bug.cgi?id=480034 Summary: wmctrl has a bug on 64 bit Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Usability AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: arun@gmx.de QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-1.4 Firefox/3.0.6 doing the following in bash returns an error mymachine> wmctrl -d GLib-ERROR **: gmem.c:156: failed to allocate 1117103813820464 bytes aborting... Aborted The bug has been reported elsewhere already and a patch seems to be available: see http://www.nepherte.be/patching-a-bug-in-wmctrl/ The patch seems to be a one-liner: --- main.c.orig 2005-01-29 04:31:33.000000000 +0100 +++ main.c 2009-01-31 16:52:09.000000000 +0100 @@ -1441,6 +1441,8 @@ /* null terminate the result to make string handling easier */ tmp_size = (ret_format / 8) * ret_nitems; + /* Correct 64 Architecture implementation of 32 bit data */ + if(ret_format==32) tmp_size *= sizeof(long)/4; ret = g_malloc(tmp_size + 1); memcpy(ret, ret_prop, tmp_size); ret[tmp_size] = '\0'; Reproducible: Always Steps to Reproduce: 1. in bash: wmctrl -d 2. results in an error Actual Results: program crashes with a Glib-Error Expected Results: list of all desktops -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=480034
Arun Persaud
https://bugzilla.novell.com/show_bug.cgi?id=480034
User arun@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=480034#c1
--- Comment #1 from Arun Persaud
https://bugzilla.novell.com/show_bug.cgi?id=480034
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=480034
User crrodriguez@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=480034#c2
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=480034
User crrodriguez@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=480034#c3
Cristian Rodríguez
participants (1)
-
bugzilla_noreply@novell.com