2007-03-05 18:56:09 |
Ken Velarde |
description |
When launching any XView applications in Ubuntu Feisty get abort with the following output:
cmdtool: ../../src/xcb_io.c:280: _XAllocID: Assertion `!(dpy->flags & (1L << 3))' failed.
Abort (core dumped)
I tracked the problem down to (approx) line 784 in libxview/server/server.c
/* Used by atom mgr */
server->atom_mgr[ATOM] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[NAME] = (XID) XAllocID((Display *)server->xdisplay); /* Fails here */
server->atom_mgr[TYPE] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[DATA] = (XID) XAllocID((Display *)server->xdisplay);
ProblemType: Bug
Date: Fri Mar 2 01:25:22 2007
DistroRelease: Ubuntu 7.04
Uname: Linux kenlap 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux |
When launching any XView applications in Ubuntu Feisty get abort with the following output:
cmdtool: ../../src/xcb_io.c:280: _XAllocID: Assertion `!(dpy->flags & (1L << 3))' failed.
Abort (core dumped)
I tracked the problem down to (approx) line 784 in libxview/server/server.c
/* Used by atom mgr */
server->atom_mgr[ATOM] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[NAME] = (XID) XAllocID((Display *)server->xdisplay); /* Fails here */
server->atom_mgr[TYPE] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[DATA] = (XID) XAllocID((Display *)server->xdisplay);
Possible FIx?
If I replace the above 4 calls to XAllocID() with a single call to XAllocIDs(), things seem to work:
/*
server->atom_mgr[ATOM] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[NAME] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[TYPE] = (XID) XAllocID((Display *)server->xdisplay);
server->atom_mgr[DATA] = (XID) XAllocID((Display *)server->xdisplay);
*/
XAllocIDs ((Display *)server->xdisplay, server->atom_mgr, 4);
ProblemType: Bug
Date: Fri Mar 2 01:25:22 2007
DistroRelease: Ubuntu 7.04
Uname: Linux kenlap 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux |
|