https://bugs.kde.org/show_bug.cgi?id=424834

--- Comment #4 from Stephan Diestelhorst <stephan.diestelho...@gmail.com> ---
Seems like someone is calling get_next_argument with signature= 0 here:
https://gitlab.freedesktop.org/wayland/wayland/blob/master/src/connection.c#L442

And it is either jumping in with a NULL string signature into
wl_argument_from_va_list here:
https://gitlab.freedesktop.org/wayland/wayland/blob/master/src/connection.c#L499
or a not properly terminated signature.

Seems like opcode 3 that is used ehre (
https://gitlab.freedesktop.org/wayland/wayland/-/blob/master/src/wayland-server.c#L242
) is not properly initialised:

(gdb) up
#2  0x00007fc68a741fc5 in wl_resource_post_event (resource=0x564c4bf4b5a0,
opcode=3) at ../src/wayland-server.c:249
249     ../src/wayland-server.c: No such file or directory.

(gdb) print object->interface->events[3]
$10 = {name = 0x0, signature = 0x0, types = 0x0}


The other opcodes look sensible:
(gdb) print object->interface->events[0]
$11 = {name = 0x7fc68d8fb83a "show_desktop_changed", signature = 0x7fc68d8fb519
"u", types = 0x7fc68d928a20}
(gdb) print object->interface->events[1]
$12 = {name = 0x7fc68d8fb6a2 "window", signature = 0x7fc68d8fb519 "u", types =
0x7fc68d928a20}
(gdb) print object->interface->events[2]
$13 = {name = 0x7fc68d8fb84f "stacking_order_changed", signature =
0x7fc68d8fb866 "11a", types = 0x7fc68d928a20}
(gdb) print object->interface->events[3]
$14 = {name = 0x0, signature = 0x0, types = 0x0}
(gdb) print object->interface->events[4]
$15 = {name = 0x7fc68d8fb86a "show_desktop", signature = 0x7fc68d8fb519 "u",
types = 0x7fc68d928a20}
(gdb) print object->interface->events[5]
$16 = {name = 0x7fc68d8fb877 "get_window", signature = 0x7fc68d8fb78d "nu",
types = 0x7fc68d928a40}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to