This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SIGFPE in CVS HEAD


Corinna,

One of your changes post-1.7.9 is causing a SIGFPE in the DLL:

$ cat test.c
#include <unistd.h>
int main(void) { sleep(1); return 0; }

$ gcc -o test test.c

$ ./test
Floating point exception

$ gdb ./test
GNU gdb (GDB) 7.2
[snip]
(gdb) run
Starting program: /usr/src/src/winsup/cygwin/test
[New Thread 5684.0xefc]
warning: section .gnu_debuglink not found in
/cygdrive/c/cygwin17/bin/cygwin1.dbg
[New Thread 5684.0xff4]

Program received signal SIGFPE, Arithmetic exception.
0x610cd147 in nanosleep (rqtp=0x28cc58, rmtp=0x28cc50)
    at ../../../../winsup/cygwin/signal.cc:114
114                       + resolution - 1) / resolution) * resolution;
(gdb) bt
#0  0x610cd147 in nanosleep (rqtp=0x28cc58, rmtp=0x28cc50)
    at ../../../../winsup/cygwin/signal.cc:114
#1  0x610cd3f5 in sleep (seconds=1) at ../../../../winsup/cygwin/signal.cc:159
#2  0x610ca565 in _sigfe () from /cygdrive/c/cygwin17/bin/cygwin1.dll
#3  0x00000000 in ?? ()
(gdb)


Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]