Compositor crashes when switching tty

Matteo Valdina matteo.valdina at gmail.com
Wed May 29 13:19:30 UTC 2019


Re-iterate the process.
Run valgrind, read the log, search for bugs.

Until valgrind run smoothly.

Best

On Wed, May 29, 2019, 02:32 adlo <adloconwy at gmail.com> wrote:

> 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/8ee33e3c/attachment.html>


More information about the wayland-devel mailing list