leif icon indicating copy to clipboard operation
leif copied to clipboard

Segfault on WSL2

Open dko1905 opened this issue 10 months ago • 1 comments

After running the ./setup.sh script in a Debian WSL2 instance, then it opens a window for 2 secs and then crashes:

cp -r ./fonts/ /usr/share/todo/
cp -r ./icons/ /usr/share/todo/
=====================
INSTALLATION FINISHED
=====================
Do you want to start the app (y/n): y
Starting...
./setup.sh: line 79:  1702 Segmentation fault      (core dumped) todo
daniel@DESKTOP-R7L61D4:~/todo$
daniel@DESKTOP-R7L61D4:~/todo$ ls
appicon  branding  config.h  fonts  icons  LICENSE  Makefile  README.md  setup.sh  todo  todo.c  todo.desktop
daniel@DESKTOP-R7L61D4:~/todo$ ./todo
Segmentation fault (core dumped)
daniel@DESKTOP-R7L61D4:~/todo$

It's probably something to do with improper handling of missing OpenGL features/functionality?

Edit: Oh shit, this is the leif repo, the issue is with the cococry/todo example app.

dko1905 avatar Feb 02 '25 00:02 dko1905

Most probably because the strlen(getenv(HOMEDIR)); That is a problem also on AmigaOS4. You can't rely on a getenv(). It can be null and of course strlen will crash

afxgroup avatar Apr 21 '25 14:04 afxgroup