Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <375695A6.CD580658@1c.ru> Date: Thu, 03 Jun 1999 18:48:06 +0400 From: Vadim Egorov X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: cygwin users Subject: division by zero Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-MDaemon-Deliver-To: cygwin AT sourceware DOT cygnus DOT com X-Return-Path: EgorovV AT 1c DOT ru Hello, Trying to build libstdc++-v3 under cygwin I came across one problem. Build process hangs while trying to determine system abilities to trap numerical errors. This situation can be reproduced by the following code snippet: ------------------ #include #include #include jmp_buf env; void signal_handler(int sig) { longjmp(env, sig); } int main() { for( int i = 0; i < 100 ; i++) { signal(SIGFPE, signal_handler); if (setjmp(env) == 0) { int a = 1; int b = 0; a/=b; } printf("step %d\n", i); } return 1; } ------------------ This program hangs after first iteration. If i replace a/=b; with a/b; it does what it is supposed to. Could anyone shed any light on this problem? cygcheck -v -s output applied. Regards Vadim [stl1]# cygcheck -v -s Cygnus Win95/NT Configuration Diagnostics Current System Time: Thu Jun 03 18:23:16 1999 WinNT Ver 4.0 build 1381 Service Pack 5 Path: /mnt/e/cygwin20/root/usr/egcs/bin /mnt/e/Cygwin20/root/usr/local/bin /mnt/e/Cygwin20/Cygwin-b20/H-i586-cygwin32/bin /mnt/e/Cygwin20/root/usr/X11R6.4/bin /qub /mnt/e/winnt/system32 /mnt/e/ntreskit /mnt/e/mssdk/bin /mnt/c/batch /mnt/e/programs/emacs-20.3.9.1/bin /mnt/e/WINNT/system32 /mnt/e/WINNT /mnt/e/NTRESKIT /mnt/e/WINNT/system32/nls/ENGLISH /mnt/e/WINNT/system32/nls /mnt/e/MSSDK/Bin /mnt/e/MSSDK/Bin/WinNT /mnt/c/tools /mnt/c/batch /mnt/d/utils/mew8 //L/bin //R/bin /mnt/e/WINNT/neozilla/ngt/bin /mnt/e/programs/gnuserv SysDir: E:\WINNT\System32 WinDir: E:\WINNT CYGWIN = `binmode title strip-title glob tty nontea ' GCC_EXEC_PREFIX = `/usr/egcs/lib/gcc-lib/' HOME = `/mnt/f/home' MAKE_MODE = `unix' PWD = `/mnt/f/dev/Misc/stl1' TCL_LIBRARY = `E:\Cygwin20\Cygwin-b20\share\tcl8.0\' BASEMAKE = `E:\MSSDK\Include\bkoffice.mak' BASH_ENV = `~/.bash_exec' BKOFFICE = `E:\MSSDK\' COMPUTERNAME = `EGOROVV' COMSPEC = `E:\WINNT\system32\cmd.exe' CPU = `i386' CVSROOT = `/home/cvsroot' CYGFS = `E:/Cygwin20/Cygwin-b20' CYGREL = `B20' CYGROOT = `E:\Cygwin20\Cygwin-b20' DISPLAY = `localhost:0.0' EMACS = `t' EMACSDATA = `E:\programs\emacs-20.3.9.1\etc' EMACSDOC = `E:\programs\emacs-20.3.9.1\etc' EMACSLOADPATH = `E:\programs\elisp\my;E:\programs\gnuserv;E:\programs\elisp\tiny980701;E:\programs\emacs-20.3.9.1\site-lisp;E:\programs\emacs-20.3.9.1\lisp' EMACSLOCKDIR = `E:\programs\emacs-20.3.9.1\lock' EMACSPATH = `E:\programs\emacs-20.3.9.1\bin' EMACS_DIR = `E:/programs/emacs-20.3.9.1' EM_PARENT_PROCESS_ID = `221' GCC_BASE_DIR = `/usr/egcs' GDBTK_LIBRARY = `E:/Cygwin20/Cygwin-b20/share/gdbtcl' HOMEDRIVE = `F:' HOMEPATH = `\users\default' HOME_DEFAULT = `F:\' HOME_EXISTS = `yes' HOME_SAVE = `F:\HOME' HOSTNAME = `egorovv' HOSTTYPE = `i386' INCLUDE = `X:\odbcsdk\include;L:\INCLUDE;L:\STD;L:\OT50\INCLUDE;R:\INCLUDE;R:\STD;R:\OT50\INCLUDE' INFOPATH = `/info' INPUTRC = `f:/home/.inputrc' LD = `/cygnus/H-i586-cygwin32/bin/ld.exe' LIB = `L:\LIB;R:\LIB' MACHTYPE = `i386-pc-cygwin32' MSINPUT = `E:\WINNT\Msinput' MY_ELISP = `E:\programs\elisp\my;E:\programs\gnuserv' NTRESKIT = `E:\NTRESKIT' NUMBER_OF_PROCESSORS = `1' NWLANGUAGE = `ENGLISH' NWUSERNAME = `EgorovV' OS2LIBPATH = `E:\WINNT\system32\os2\dll;' OS = `Windows_NT' OSTYPE = `cygwin32' PATHEXT = `.COM;.EXE;.BAT;.CMD' PATH_SAVE = `E:\WINNT\system32;E:\WINNT;E:\NTRESKIT;E:\WINNT\system32\nls\ENGLISH;E:\WINNT\system32\nls;E:\MSSDK\Bin;E:\MSSDK\Bin\WinNT;C:\tools;C:\batch;D:\utils\mew8;L:\bin;R:\bin;E:\WINNT\neozilla\ngt\bin' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 3 Stepping 3, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0303' PROMPT = `$P$G' PS1 = `[\W]# ' SGML_CATALOG_FILES = `/home/catalog/html4.soc:/home/catalog/html32.soc:/home/catalog/html.soc' SHELL = `/bin/bash' SHLVL = `1' SYSTEMDRIVE = `E:' SYSTEMROOT = `E:\WINNT' TEMP = `F:\TEMP' TERM = `emacs' TERMCAP = `emacs:co#120:tc=unknown:' TINY_ELISP = `E:\programs\elisp\tiny980701' TMP = `/tmp' TMPDIR = `F:\TEMP' USERDOMAIN = `BRAIN' USERNAME = `egorovv' USERPROFILE = `E:\WINNT\Profiles\egorovv' USERROOT = `E:\Cygwin20\root' WINDIR = `E:\WINNT' _ = `/mnt/e/Cygwin20/Cygwin-b20/H-i586-cygwin32/bin/cygcheck' Use `-r' to scan registry a:\ fd FAT 1Mb 94% CP UN b:\ fd N/A N/A c:\ hd FAT 101Mb 62% CP UN BOOT d:\ hd FAT 1592Mb 58% CP UN FAT e:\ hd NTFS 2447Mb 79% CP CS UN PA FC SYS f:\ hd NTFS 4353Mb 80% CP CS UN PA FC DATA g:\ cd CDFS 0Mb -2147483548% CS Audio CD j:\ net NWFS 4090Mb 76% CP FC VOL1 l:\ hd NTFS 4353Mb 80% CP CS UN PA FC DATA m:\ net NWFS 4348Mb 52% CP FC VOL4 r:\ net NTFS 5600Mb 100% CP CS UN PA FC VOL1 t:\ net NTFS 16331Mb 85% CP CS UN PA FC w:\ net NTFS 4133Mb 69% CP CS UN PA FC VOL2 x:\ net NTFS 5600Mb 100% CP CS UN PA FC VOL1 y:\ net NTFS 5600Mb 100% CP CS UN PA FC VOL1 z:\ net N/A N/A E:\cygwin20\root / native text=binary e:\cygwin20\cygwin-b20 /cygnus native text=binary \\.\a: /dev/fd0 native text=binary \\.\b: /dev/fd1 native text=binary f:\home /home native text=binary f:\home\src /home/src native text!=binary f:\docs\info /info native text!=binary c: /mnt/c native text=binary d: /mnt/d native text=binary e: /mnt/e native text=binary f: /mnt/f native text=binary g: /mnt/g native text=binary w: /mnt/w native text=binary x: /mnt/x native text=binary y: /mnt/y native text=binary e:\programs\perl /qub native text=binary f:\temp /tmp native text=binary Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\bash.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cat.exe Found: e:\ntreskit\cat.exe Warning: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cat.exe hides e:\ntreskit\cat.exe Not Found: cpp (good!) Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\find.exe Found: e:\cygwin20\root\usr\egcs\bin\gcc.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\gcc.exe Warning: e:\cygwin20\root\usr\egcs\bin\gcc.exe hides e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\gcc.exe Found: e:\Cygwin20\root\usr\local\bin\gdb.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\gdb.exe Warning: e:\Cygwin20\root\usr\local\bin\gdb.exe hides e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\gdb.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\ld.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\ls.exe Found: e:\ntreskit\ls.exe Warning: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\ls.exe hides e:\ntreskit\ls.exe Found: e:\Cygwin20\root\usr\local\bin\make.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\make.exe Warning: e:\Cygwin20\root\usr\local\bin\make.exe hides e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\make.exe Found: c:\tools\make.exe Warning: e:\Cygwin20\root\usr\local\bin\make.exe hides c:\tools\make.exe Found: e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\sh.exe 371k 1998/12/01 e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=1998/12/1 11:25 5k 1998/12/01 e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 1998/12/01 e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=1998/12/1 11:25 600k 1998/12/01 e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=1998/12/1 11:28 4898k 1999/04/19 e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1999/4/19 10:27 4898k 1999/04/19 e:\Cygwin20\Cygwin-b20\H-i586-cygwin32\bin\cygwinb19.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1999/4/19 10:27 Use -h to see help about each section -- ********************************************* Vadim Egorov, 1C * Вадим Егоров,1C egorovv AT 1c DOT ru * egorovv AT 1c DOT ru ********************************************* -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com