bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

curses bug on Solaris 64bit


From: siosdlf
Subject: curses bug on Solaris 64bit
Date: Wed, 17 Jul 2013 13:31:27 +0800 (CST)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]