[pulseaudio-discuss] Pulse segfault when xcb related funcitnos are called.

Rémi Denis-Courmont remi at remlab.net
Fri Sep 17 11:42:25 PDT 2010

On Fri, 17 Sep 2010 09:42:07 +0100, Colin Guthrie <gmane at colin.guthr.ie>
> I wonder if perhaps it's a problem that there are no screens :s

I doubt it is legal for an X server to have zero screens. The DISPLAY
syntax includes the screen number at the end...

Do you check that the X11 connection was established successfully? IIRC,
xcb_connect() returns a valid pointer even when it fails:

Correct code:
    xcb_connection_t *conn = xcb_connect (display, NULL);
    if (xcb_connection_has_error (conn))
        goto fail;

Incorrect code:
    xcb_connection_t *conn = xcb_connect (display, NULL);
    if (conn == NULL)
        goto fail;

Rémi Denis-Courmont

More information about the pulseaudio-discuss mailing list