Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178525 - x11-misc/wmctrl - wmctrl -l and wmctrl -d not working on AMD64 with Glib-error crash
Summary: x11-misc/wmctrl - wmctrl -l and wmctrl -d not working on AMD64 with Glib-erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-14 16:10 UTC by David Risher
Modified: 2007-08-28 18:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add proper 64-bit Xlib support to wmctrl (wmctrl-1.07-amd64.patch,1.10 KB, patch)
2007-06-08 22:11 UTC, Jim Ramsay (lack) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Risher 2007-05-14 16:10:41 UTC
wmctrl builds OK on amd64, but has problems reporting on desktops (workspaces)

With $ wctrl -d
It crashes as follows:

GLib-ERROR **: gmem.c:154: failed to allocate 369435906932816 bytes
aborting...
Aborted

With $ wctrl -l
The list of windows is truncated and the workspaces are not reported correctly

This is apparently due to the 64-bit implementation of X Windows, and has been reported and fixed by Chris Donoghue on the Debian bug lists.

See:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=362068

To fix, I used the Debian patch 1.07 -> 1.07_6 located at:
http://ftp.debian.org/debian/pool/main/w/wmctrl/wmctrl_1.07-6.diff.gz

This required some editing of text at the top (I commented it out), then it built correctly and worked correctly on my amd64 system

Reproducible: Always

Steps to Reproduce:
As above
Actual Results:  
As above

Expected Results:  
As above

Sorry if I didn't do this quite right.  It's my first bug report, and I'm not a developer.  I just thought that this might be useful.
Comment 1 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-06-08 22:11:02 UTC
I can confirm this too.  I did a bit of searching online and found that Debian has fixed this bug in their repository with the patch I am attaching.

This patch seems to work for me.
Comment 2 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-06-08 22:11:58 UTC
Created attachment 121525 [details, diff]
Patch to add proper 64-bit Xlib support to wmctrl
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2007-08-28 16:45:26 UTC
desktop-wm: please see the patch in comment #2
Comment 4 Santiago M. Mola (RETIRED) gentoo-dev 2007-08-28 18:21:03 UTC
That was fixed sometime ago by lack. Reopen if you find any problem with it. Thanks.