From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686) Description of problem: A call to a function to get time/date from a curses screen where there is first a call to scr_dump() will cause the program to core dump. If the curses screen does a getch() before the call to the time function the program will not crash. However, there are many occasions where one will need to set up a time/date string without making a call to getch() first. There is some kind of conflict between the curses screen dump feature and the time functions. This is a problem for RH to solve. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Set up a screen with curses control. 2. Do a screen dump (scr_dump(const char filename). (Do not do a getch() before the screen dump. 3. Call a (void) function to set up a string containing the time and date. 4. The program will crash. 5. Have a call to restore(filename) after the call to the time function. Actual Results: Crash! Expected Results: Program should return from time fucntion and restore screen as before dump. Additional info: Example program is avialable if you will send me your email address.
Created attachment 64165 [details] C program to compile with g++ -lncurses
This is fixed in ncurses 5.3 (Redhat does not deliver ncurses 5.3).
marking as a duplicate of the "5.3 solves all problems" bug *** This bug has been marked as a duplicate of 77585 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.