dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.56k stars 112 forks source link

notcurses-demo run under valgrind with early exit requires ctrl+c #2775

Open dankamongmen opened 5 months ago

dankamongmen commented 5 months ago

I was running notcurses-demo under valgrind via:

valgrind --tool=memcheck ./notcurses-demo -p ../data/

I first hid the FPS graph with 'P', then pressed 'Q' to quit. I got my table printed out, but the program then hung. Pressing ctrl+c, we get:

==695354== Process terminating with default action of signal 2 (SIGINT)
==695354==    at 0x49871C6: __futex_abstimed_wait_common64 (futex-internal.c:57)
==695354==    by 0x49871C6: __futex_abstimed_wait_common (futex-internal.c:87)
==695354==    by 0x498BF62: __pthread_clockjoin_ex (pthread_join_common.c:102)
==695354==    by 0x487D6EC: cancel_and_join (internal.h:1840)
==695354==    by 0x487D6EC: stop_inputlayer (in.c:2631)
==695354==    by 0x48AB66D: free_terminfo_cache (termdesc.c:164)
==695354==    by 0x488BA46: notcurses_stop (notcurses.c:1477)
==695354==    by 0x110D00: main (demo.c:600)

this seems pretty reproducible.

dankamongmen commented 5 months ago

the 'P' is not necessary. start and press 'q', and you'll see it. kitty 0.32.2, not that i think that has anything to do with it.