xview applications fail with XAllocID assertion failed

Bug #89166 reported by Ken Velarde
4
Affects Status Importance Assigned to Milestone
xview (Ubuntu)
High
Unassigned

Bug 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);

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

Related branches

Ken Velarde (kvelarde)
description: updated
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

It happens on Hardy too.

Changed in xview:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

xview (3.2p1.4-21.1ubuntu2) hardy; urgency=low

  [ Ken Velarde ]
  * lib/libxview/server/server.c: use XAllocIDs instead of several calls
    to XAllocID, which leads to segfaults (LP: #89166)

  [ Luca Falavigna ]
  * debian/control: build for lpia architecture too

 -- Luca Falavigna <email address hidden> Thu, 06 Dec 2007 09:13:00 +0100

Changed in xview:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers