libweston program segfaults on weston_compositor_load_backend

Pekka Paalanen ppaalanen at
Fri May 4 13:46:04 UTC 2018

On Fri, 4 May 2018 07:55:10 -0500
Matt Hoosier <matt.hoosier at> wrote:

> On Fri, May 4, 2018 at 2:13 AM, Pekka Paalanen <ppaalanen at> wrote:
> > The crucial call to make is weston_log_set_handler() with non-NULL
> > arguments before any other libweston calls.
> >  
> I wonder if this could be made clearer by adding an assert in weston_log()
> if no handler has been installed yet.

Definitely. :-)
A shout to stderr and abort() would be fine. Or even have the handlers
initilized to ones that shout and abort().

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the wayland-devel mailing list