Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dankamongmen opened this issue Apr 10, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dankamongmen
Copy link
Owner

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 dankamongmen added the bug Something isn't working label Apr 10, 2024
@dankamongmen dankamongmen added this to the 3.1.0 milestone Apr 10, 2024
@dankamongmen dankamongmen self-assigned this Apr 10, 2024
@dankamongmen
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant