Hello. This is my bug report.
$ uname -a
SunOS kerberos 5.10 Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise
$ cc -m64 -lcurses a.c
$ ./a.out
(When I press ESC, Segmentation Fault occurs!)
NOTE: Segmentation Fault occurs only when
1. -m64 flag is given to make 64bit binary,
and
2. Parameter of halfdelay is less than 10. (i.e. one second)
Here is my source code
$ cat a.c
#include <curses.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
int main(int argc, char **argv)
{
int key;
initscr();
erase();
cbreak();
start_color();
noecho();
keypad(stdscr, TRUE);
refresh();
while(1)
{
halfdelay(9);
key = getch();
printf("key=%c(%d)\n", key, key);
refresh();
}
endwin();
return 0;
}
---------------------------------------
Any help will be appreciated.
Thank you.