leif
leif copied to clipboard
Segfault on WSL2
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.
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