[Xcb] segfault in XCBConnSetupSuccessRepRootsIter
Jeremy A. Kolb
jkolb at brandeis.edu
Sun Nov 7 16:55:56 PST 2004
Ah... haha. yeah I guess I deleted that by accident. I don't really
understand X so well or XCB so I'm just trying to wade through it all.
Thanks.
Jeremy
On Sun, 7 Nov 2004, Jamey Sharp wrote:
> On Sun, Nov 07, 2004 at 05:24:13PM -0500, Jeremy A. Kolb wrote:
> > int main(int argc, char *argv[])
> > 8 {
> > 9 XCBConnection *c;
> > 10 XCBSCREEN *root;
> > 11 XCBDRAWABLE draw;
> > 12 XCBDRAWABLE p;
> > 13 XCBGCONTEXT black;
> > 14 XCBPOINT point = {100, 100};
> > 15 XCBGenericEvent *e;
> > 16 CARD32 mask = 0;
> > 17 CARD32 values[6];
> > 18
> > 19 root = XCBConnSetupSuccessRepRootsIter(c->setup).data;
>
> This one's not too hard. :-) That line dereferences `c`, which is not
> initialized yet. You have to have connected to the X server before you
> can do that.
>
More information about the xcb
mailing list