<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">When switching tty, my compositor crashes with error messages such as<div><br><div>free (): invalid size Aborted (core dumped) </div><div>or </div><div>malloc (): invalid chunk size</div><div><br></div><div>when running on the DRM backend.</div><div><div dir="ltr"></div><div><br></div><div>Here is my code:</div><div><br></div><div><a href="https://github.com/adlocode/xfway/blob/master/src/main-wayland.c">https://github.com/adlocode/xfway/blob/master/src/main-wayland.c</a></div><div><br></div><div><a href="https://github.com/adlocode/xfway/blob/master/src/main-wayland.c#L276">https://github.com/adlocode/xfway/blob/master/src/main-wayland.c#L276</a></div><div><br></div><div>Interestingly, this issue first seemed to present itself in the last few commits when I added my desktop shell client, but as I think this still happens when removing this code, somehow I'm not sure that that actually caused it:</div><div><br></div><div><a href="https://github.com/adlocode/xfway/blob/master/src/shell.c#L989">https://github.com/adlocode/xfway/blob/master/src/shell.c#L989</a></div><div><br></div><div>How can I resolve this issue?</div><div><br></div><div>Regards</div><div><br></div><div>adlo</div></div></div></body></html>