public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* SIGFPE in CVS HEAD
@ 2011-03-30  8:20 Yaakov (Cygwin/X)
  2011-03-30  8:28 ` Christopher Faylor
  0 siblings, 1 reply; 2+ messages in thread
From: Yaakov (Cygwin/X) @ 2011-03-30  8:20 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SIGFPE in CVS HEAD
  2011-03-30  8:20 SIGFPE in CVS HEAD Yaakov (Cygwin/X)
@ 2011-03-30  8:28 ` Christopher Faylor
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Faylor @ 2011-03-30  8:28 UTC (permalink / raw)
  To: cygwin

On Tue, Mar 29, 2011 at 11:05:58PM -0500, Yaakov (Cygwin/X) wrote:
>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)

I'll bet it's related to the changes to times.cc.

cgf

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-30  5:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30  8:20 SIGFPE in CVS HEAD Yaakov (Cygwin/X)
2011-03-30  8:28 ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).