Description of problem: $ cat foo.c && gcc foo.c -lcurses && ./a.out #include <curses.h> int main() { flash(); return 0; } Segmentation fault (core dumped) Version-Release number of selected component (if applicable): ncurses-libs-5.7-9.20100703.fc14.x86_64 How reproducible: Always
I can make it not dump core, but it won't flash since curses is not initialized (man initscr, newterm).
I get the crash, with ncurses-5.9 the backtrace is: 70 if (flash_screen) { (gdb) bt #0 0x00007ffff7bc13d1 in flash () at ../../ncurses/base/lib_flash.c:70
yes - but my point was that while I can modify ncurses to avoid the core dump, the program will never function as the reporter intended. (I've made fixes of this sort before).
The doc says that on failure, the function does nothing and returns ERR.
This seems to be fixed in upstream patch 5.9-20110528. Thanks.
no problem.