Compositor crashes when switching tty

adlo adloconwy at gmail.com
Wed May 29 07:32:00 UTC 2019


> On 29 May 2019, at 03:53, Matteo Valdina <matteo.valdina at gmail.com> wrote:
> 
> 
> As valgrind pointing out at shell.c line 982
> 
> shell = zalloc (sizeof (shell));
> 
> Here you are allocating the pointer size not the structure size. You probably want type Shell.
> 

This reduces the amount of crashing, but does not completely eliminate it. My compositor still coredumps when switching vt multiple times, especially when also opening and closing windows on my compositor.

What else might I need to do?

Is this code enough to open a basic display on the DRM backend?

https://github.com/adlocode/xfway/blob/9a676ddd9eecc7f8e23915d5c79f57c6368d6fc7/src/main-wayland.c#L276

Regards

adlo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20190529/b6fe08d4/attachment.html>


More information about the wayland-devel mailing list