Re: Cygwin fork failure
Larry Hall (Cygwin) wrote: [EMAIL PROTECTED] wrote: On Saturday 19 November 2005 01:07 am, Larry Hall (Cygwin) wrote: David Svoboda wrote: I have built a C++ server program called 'analyzer'. But when I try to run it, it fails upon trying to execute a 'fork' command. Why? snip If running 'rebaseall' doesn't help (see the README) and 'analyzer' doesn't use any DLLs that were built as part of that package (in which case you need to tell 'rebaseall' about them), then try: http://sources.redhat.com/ml/cygwin/2005-09/msg00945.html Thanks for the response. The 'analyzer' program is statically linked; it involves no DLLs. Rebaseall did nothing. And increasing the size of the heaps did nothing (I tried 2x, 4x, 8x and 16x). My machine is totally wedged now...even safe mode doesn't work. I can only say that this fork problem happens on several other Windows machines at our university, but it does not seem to happen to machines not at the university. Furthermore this fork problem now affects previous versions of my 'analyzer' software...last week's version worked then, but does not now. It's as if Satan put a curse on all the PCs only at this university. Any other suggestions? Trying a snapshot it a good subsequent step. If you're going to be building things against Cygwin, you'll want to pull the cygwin-inst. Otherwise, cygwin1-*.dll is enough and is probably plenty for starters. http://cygwin.com/snapshots/ Well, the latest snapshot available is 2005-Nov-17. Planting its cygwin1.dll into cygwin/bin generates the following result: analyzer --KANTOO_LANGUAGE=halo --ANALYZER_PORT=4052 -server-multiple -fork Analyzer 2.0; DMK 0.2 (HALO); DOMO 0.2 (KCE) 6 [main] analyzer 2164 fhandler_disk_file::fixup_mmap_after_fork: requested 0x1873 != 0x0 mem alloc base 0x1873, state 0x1000, size 4096, Win32 error 487 d:\svoboda\kantoo\bin\analyzer (2164): *** recreate_mmaps_after_fork_failed ]0;~ [EMAIL PROTECTED] ~ $ which is a slight improvement over the previous result: [EMAIL PROTECTED] ~ $ analyzer --KANTOO_LANGUAGE=halo --ANALYZER_PORT=4052 -server-multiple -fork Analyzer 2.0; DMK 0.2 (HALO); DOMO 0.2 (KCE) 6 [main] analyzer 224 fhandler_disk_file::fixup_mmap_after_fork: requested 0x1873 != 0x0 mem alloc base 0x1873, state 0x1000, size 4096, Win32 error 487 d:\svoboda\kantoo\bin\analyzer (224): *** recreate_mmaps_after_fork_failed 11 [main] analyzer 1136 fork_parent: child 224 died waiting for dll loading Failed to fork properly! ]0;~ [EMAIL PROTECTED] ~ $ but still crashes my analyzer. My best guess is that this bug was introduced by a new version of cygwin, as it did not occur until I did a cygwin-update. It seems that the oldest cygwin I can get is 1.5.17.1, (1.5.18.1 being the current version) Is there any way to get older c ygwins? ~Dave ~Dave -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin fork failure
On 11/23/2005, David Svoboda wrote: My best guess is that this bug was introduced by a new version of cygwin, as it did not occur until I did a cygwin-update. But didn't you claim that switching back to an older version of Cygwin didn't help? It seems that the oldest cygwin I can get is 1.5.17.1, (1.5.18.1 being the current version) Is there any way to get older c ygwins? ~Dave There's the Cygwin Time Machine. Look it up in the email archives if you're interested. And note that use of the Cygwin Time Machine isn't supported by this list. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin fork failure
[EMAIL PROTECTED] wrote: On Saturday 19 November 2005 01:07 am, Larry Hall (Cygwin) wrote: David Svoboda wrote: I have built a C++ server program called 'analyzer'. But when I try to run it, it fails upon trying to execute a 'fork' command. Why? snip If running 'rebaseall' doesn't help (see the README) and 'analyzer' doesn't use any DLLs that were built as part of that package (in which case you need to tell 'rebaseall' about them), then try: http://sources.redhat.com/ml/cygwin/2005-09/msg00945.html Thanks for the response. The 'analyzer' program is statically linked; it involves no DLLs. Rebaseall did nothing. And increasing the size of the heaps did nothing (I tried 2x, 4x, 8x and 16x). My machine is totally wedged now...even safe mode doesn't work. I can only say that this fork problem happens on several other Windows machines at our university, but it does not seem to happen to machines not at the university. Furthermore this fork problem now affects previous versions of my 'analyzer' software...last week's version worked then, but does not now. It's as if Satan put a curse on all the PCs only at this university. Any other suggestions? Trying a snapshot it a good subsequent step. If you're going to be building things against Cygwin, you'll want to pull the cygwin-inst. Otherwise, cygwin1-*.dll is enough and is probably plenty for starters. http://cygwin.com/snapshots/ -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin fork failure
On Saturday 19 November 2005 01:07 am, Larry Hall (Cygwin) wrote: David Svoboda wrote: I have built a C++ server program called 'analyzer'. But when I try to run it, it fails upon trying to execute a 'fork' command. Why? $ analyzer --KANTOO_LANGUAGE=toy -server-multiple -fork Analyzer 2.0 *** 5 [main] analyzer 1712 fhandler_disk_file::fixup_mmap_after_fork: requested 0x1873 != 0x0 mem alloc base 0x1873, state 0x1000, size 4096, Win32 error 487 *** d:\svoboda\kantoo\bin\analyzer (1712): *** recreate_mmaps_after_fork_failed *** 9 [main] analyzer 2200 fork_parent: child 1712 died waiting for dll loading *** Failed to fork properly! ]0;~ [EMAIL PROTECTED] ~ $ The *** lines indicate the errors. Version info: The analyzer was built with G++ 3.3.3, on WinXPSP2. Here is the output of cygcheck. So why does the fork call fail? If running 'rebaseall' doesn't help (see the README) and 'analyzer' doesn't use any DLLs that were built as part of that package (in which case you need to tell 'rebaseall' about them), then try: http://sources.redhat.com/ml/cygwin/2005-09/msg00945.html Thanks for the response. The 'analyzer' program is statically linked; it involves no DLLs. Rebaseall did nothing. And increasing the size of the heaps did nothing (I tried 2x, 4x, 8x and 16x). My machine is totally wedged now...even safe mode doesn't work. I can only say that this fork problem happens on several other Windows machines at our university, but it does not seem to happen to machines not at the university. Furthermore this fork problem now affects previous versions of my 'analyzer' software...last week's version worked then, but does not now. It's as if Satan put a curse on all the PCs only at this university. Any other suggestions? ~Dave -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Cygwin fork failure
I have built a C++ server program called 'analyzer'. But when I try to run it, it fails upon trying to execute a 'fork' command. Why? $ analyzer --KANTOO_LANGUAGE=toy -server-multiple -fork Analyzer 2.0 *** 5 [main] analyzer 1712 fhandler_disk_file::fixup_mmap_after_fork: requested 0x1873 != 0x0 mem alloc base 0x1873, state 0x1000, size 4096, Win32 error 487 *** d:\svoboda\kantoo\bin\analyzer (1712): *** recreate_mmaps_after_fork_failed *** 9 [main] analyzer 2200 fork_parent: child 1712 died waiting for dll loading *** Failed to fork properly! ]0;~ [EMAIL PROTECTED] ~ $ The *** lines indicate the errors. Version info: The analyzer was built with G++ 3.3.3, on WinXPSP2. Here is the output of cygcheck. So why does the fork call fail? ~Dave Cygwin Configuration Diagnostics Current System Time: Fri Nov 18 11:23:33 2005 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: d:\svoboda\kantoo\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin C:\cygwin\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\Program Files\ATI Technologies\ATI Control Panel c:\Program Files\OpenAFS\Common c:\Program Files\OpenAFS\Client\Program c:\Program Files\MIT\Kerberos\bin c:\Program Files\Java\j2re1.4.2_10\bin Output from C:\cygwin\bin\id.exe (nontsec) UID: 15467(svoboda) GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) Output from C:\cygwin\bin\id.exe (ntsec) UID: 15467(svoboda) GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) SysDir: C:\WINNT\system32 WinDir: C:\WINNT USER = `svoboda' PWD = `/cygdrive/c/Documents and Settings/svoboda/Desktop' HOME = `/cygdrive/c' MAKE_MODE = `unix' HOMEPATH = `\Documents and Settings\svoboda' KANTOO_LANGUAGE = `halo' MANPATH = `/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' APPDATA = `C:\Documents and Settings\svoboda\Application Data' HOSTNAME = `quebec' SVOBODA = `/cygdrive/d/svoboda' TERM = `emacs' SHELL = `bash' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 4 Stepping 3, GenuineIntel' WINDIR = `C:\WINNT' TMPDIR = `/cygdrive/c/DOCUME~1/svoboda/LOCALS~1/Temp' EMACSDATA = `C:/Program Files/emacs-21.3/etc' OLDPWD = `/cygdrive/c/Documents and Settings' EMACSPATH = `C:/Program Files/emacs-21.3/bin' CCC = `g++' USERDOMAIN = `SCS' OS = `Windows_NT' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' KANTOO = `/cygdrive/d/svoboda/kantoo' EMACSLOCKDIR = `C:/Program Files/emacs-21.3/lock' EMACS = `t' TEMP = `/cygdrive/c/DOCUME~1/svoboda/LOCALS~1/Temp' COMMONPROGRAMFILES = `C:\Program Files\Common Files' SANDBOX = `/cygdrive/d/svoboda/kantoo' EM_PARENT_PROCESS_ID = `4048' TERMCAP = `emacs:co#80:tc=unknown:' USERNAME = `svoboda' PROCESSOR_LEVEL = `15' FP_NO_HOST_CHECK = `NO' SYSTEMDRIVE = `C:' USERPROFILE = `C:\Documents and Settings\svoboda' LANG = `ENU' CLIENTNAME = `Console' PS1 = `\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER = `\\GEMSTONE' EMACS_DIR = `C:/Program Files/emacs-21.3' PROCESSOR_ARCHITECTURE = `x86' EMACSLOADPATH = `C:/Program Files/emacs-21.3/site-lisp;C:/Program Files/emacs-21.3/../site-lisp;C:/Program Files/emacs-21.3/lisp;C:/Program Files/emacs-21.3/leim' SHLVL = `1' USERDNSDOMAIN = `SCS.AD.CS.CMU.EDU' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = `C:' COMSPEC = `C:\WINNT\system32\cmd.exe' TMP = `/cygdrive/c/DOCUME~1/svoboda/LOCALS~1/Temp' SYSTEMROOT = `C:\WINNT' PRINTER = `Microsoft Office Document Image Writer' CVS_RSH = `/bin/ssh' PROCESSOR_REVISION = `0403' PKG_CONFIG_PATH = `/usr/X11R6/lib/pkgconfig' DESKTOP = `/cygdrive/d/svoboda/Desktop' INFOPATH = `/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = `C:\Program Files' NUMBER_OF_PROCESSORS = `2' SESSIONNAME = `Console' EMACSDOC = `C:/Program Files/emacs-21.3/etc' COMPUTERNAME = `QUEBEC' SONICCENTRAL = `C:\Program Files\Common Files\Sonic Shared\Sonic Central\' _ = `/usr/bin/cygcheck' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Re: Cygwin fork failure
David Svoboda wrote: I have built a C++ server program called 'analyzer'. But when I try to run it, it fails upon trying to execute a 'fork' command. Why? $ analyzer --KANTOO_LANGUAGE=toy -server-multiple -fork Analyzer 2.0 *** 5 [main] analyzer 1712 fhandler_disk_file::fixup_mmap_after_fork: requested 0x1873 != 0x0 mem alloc base 0x1873, state 0x1000, size 4096, Win32 error 487 *** d:\svoboda\kantoo\bin\analyzer (1712): *** recreate_mmaps_after_fork_failed *** 9 [main] analyzer 2200 fork_parent: child 1712 died waiting for dll loading *** Failed to fork properly! ]0;~ [EMAIL PROTECTED] ~ $ The *** lines indicate the errors. Version info: The analyzer was built with G++ 3.3.3, on WinXPSP2. Here is the output of cygcheck. So why does the fork call fail? If running 'rebaseall' doesn't help (see the README) and 'analyzer' doesn't use any DLLs that were built as part of that package (in which case you need to tell 'rebaseall' about them), then try: http://sources.redhat.com/ml/cygwin/2005-09/msg00945.html -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/