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

Colin Guthrie gmane at colin.guthr.ie
Sat Sep 18 01:51:03 PDT 2010


'Twas brillig, and Rémi Denis-Courmont at 17/09/10 19:42 did gyre and
gimble:
> 
> On Fri, 17 Sep 2010 09:42:07 +0100, Colin Guthrie <gmane at colin.guthr.ie>
> wrote:
>> 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;
> 

Thanks :)

Yeah I need to do the above. I've essentially handled the case now (with
the patch in the other branch of this thread) but being explicit about
it makes sense too :)

Cheers

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list