[current]Some C++ programs that link to ncurses segfaulting
by Andy Alt from LinuxQuestions.org on (#5M0R8)
A recent bug was reported to the MultiMail project, where the program segfaults immediately after being run. ncurses is initialized, but the main(first) screen never gets drawn, and "segmentation fault" is output to the console.
This happens on -current, but not on 14.2.
Some extra debug info has been added to the ticket.
I'm a C, not C++ developer, but here's what the maintainer of the project has to say so far (after some testing on -current)
Quote:
As I noted in the ticket, I've been able to compile and run that program (without segfaults) on Debian 10, OpenSuse Tumbleweed, and Manjaro.


This happens on -current, but not on 14.2.
Some extra debug info has been added to the ticket.
I'm a C, not C++ developer, but here's what the maintainer of the project has to say so far (after some testing on -current)
Quote:
It's looking like this happens with almost any C++ program linked with the system [n]curses, although there's some subtlety I haven't pinned down yet. I tested with some of the simple demo programs from PDCurses, recompiling them as C++ -- rain failed immediately, the same as mm; firework actually drew exactly one whole sequence before segfaulting (and this is repeatable). When built as C, the same programs work fine. |