002. An overlong analysis of ^Z+fg crashing ncurses programs for gpm users

Mon, 25 May 2020 00:12:30 +0200

The post I made for #961097, which went through three packages (

  1. htop: segfaults after ^Z+fg on x32
  2. gpm: SIGTSTP handler segfaults programs
  3. libncurses6: unloads libgpm2 in SIGTSTP handler, process returns to unmapped address on resume

) is roughly the length of a blog post and something I would read as a blog post, so it may be interesting to other viewers as well.

Plus, it took me an entire day to write and the better part of a week to hunt down (by god it's bigger than either of the screenshots), so it definitely qualifies.

You can read it on debbugs, since reproducing plaintext with boxes in HTML is a massive pain (plus there's context there).

You may also be interested in the corresponding twitter thread.


Nit-pick? Correction? Improvement? Annoying? Cute? Anything? Don't hesitate to post or open an issue!


Creative text licensed under CC-BY-SA 4.0, code licensed under The MIT License.
This page is open-source, you can find it at GitHub, and contribute and/or yell at me there.
Like what you see? Consider giving me a follow over at social medias listed here, or maybe even a sending a buck or two patreon my way if my software helped you in some significant way?
Automatically generated with GCC 5‍.‍4‍.‍0's C preprocessor on 15.03.2021 23:02:07 UTC from src/blogn_t/002-ncurses-gpm-segfault.html.pp.
See job on TravisCI.
RSS feed