[Wayland-bugs] [Bug 95337] XWayland crashes during startup if output data is received
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed May 11 07:34:46 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=95337
Jonas Ådahl <jadahl at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jadahl at gmail.com
--- Comment #2 from Jonas Ådahl <jadahl at gmail.com> ---
(In reply to Olivier Fourdan from comment #1)
> Created attachment 123617 [details] [review]
> Possible fix
>
> (In reply to Mike Blumenkrantz from comment #0)
> > [...]
> > ConnectionInfo is NULL, as InitInput is called before the connection data is
> > initialized, meaning that anything trying to access it before this point
> > will trigger a crash.
>
> Huh...
>
> I am not sure, why we'd need to call the wl_display_roundtrip() in
> InitInput()?
>
> This and initializing xwl_screen->expecting_event to 0 will be done again
> later again in xwl_screen_init() where it seems more appropriate, and events
> can safely be queued up meanwhile.
I think that if we don't roundtrip here, we might end up in a situation where
various places expects to be able to know things about wl_seat's etc, that'd
now start to crash if we loose the race against the wl_seat global being
discovered.
AFAICS InitInput() is done after InitOutput() which is where xwl_screen_init
and the first roundtrips are done.
>
> Does this patch help? I haven't detected any ill effect in my light initial
> testing.
I wonder if it'd be better to move the initialization roundtrip to after
CreateConnectionBlock(), while adapting everything that is in response to the
global object discovery to be able to wait until that stage. I don't know what
would break, but at least I think we need to either make sure Xwayland can deal
with working without any seat, or ensure we have discovered and created all the
seat objects before finishing initialization.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160511/f60048fe/attachment.html>
More information about the wayland-bugs
mailing list