Wayland failed to create display

magd0510 magd0510 magd0510 at yahoo.com
Tue Dec 21 06:13:32 PST 2010


Compiled the wayland successfully.  When run client/flower under X, always get below error:
failed to create display: Connection refused
Segment fault

gdb traced the lt-flower into wayland-client.c
362        if (connect(display->fd, (struct sockaddr *) &addr, size) < 0) {

This line failed to connect to the socket, causing wl_display_create returning NULL.

This NULL display pointer exception was not well handled and caused the SEGFAULT later.

What is the reason it failed to connect to the socket in line 362 of wayland-client.c?

Mag




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20101221/77c22af0/attachment.html>


More information about the wayland-devel mailing list