Article 5M0R8 [current]Some C++ programs that link to ncurses segfaulting

[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:
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.
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.latest?d=yIl2AUoC8zA latest?i=f-lzOd0ftrE:4KcwmAqmqKg:F7zBnMy latest?i=f-lzOd0ftrE:4KcwmAqmqKg:V_sGLiP latest?d=qj6IDK7rITs latest?i=f-lzOd0ftrE:4KcwmAqmqKg:gIN9vFwf-lzOd0ftrE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments