X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_GJ X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Wed, 10 Nov 2010 18:27:05 -0500 Message-ID: Subject: setup hanging when running postinstall scripts From: Paul Cantalupo To: Cygwin mailing list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello, Recently I've been doing some upgrades to my Cygwin (DLL version: 1.7.7) installation (Win XP with all updates on a Dell390 with 4GB RAM). When the Cygwin installer gets to running the appropriate postinstall script, it invariably hangs from fatal errors having to do with "couldn't allocate heap". Here is an example output in setup.log.full for upgrading to the latest 'man' package: 2010/11/10 17:56:39 Changing gid back to original Visited: 1151 nodes out of 1961 while creating dependency order. Dependency order of packages: groff base-cygwin base-passwd cygwin libgcc1 libiconv2 libintl2 libintl8 terminfo libncurses9 libreadline7 _update-info-dir bash libbz2_1 libattr1 ... (truncated manually for brevity) 2010/11/10 17:56:44 running: C:\cygwin\bin\bash.exe --norc --noprofile /etc/postinstall/man.sh =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8 [main] bash 5684 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFDD000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7 [main] bash 4248 fork: child -1 - died wai= ting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 4408 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFDA000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 4297970 [main] bash 4248 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 4908 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDD000, 7FFDE000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 9479378 [main] bash 4248 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 2836 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDE000, 7FFDF000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 16688205 [main] bash 4248 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 5520 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFD4000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 28130240 [main] bash 4248 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 /etc/postinstall/man.sh: fork: Resource temporarily unavailable 2010/11/10 17:57:15 abnormal exit: exit code=3D128 2010/11/10 17:57:15 can't run /etc/postinstall/readme.paul.txt: No such file 2010/11/10 17:57:15 running: C:\cygwin\bin\bash.exe --norc --noprofile /etc/postinstall/man.sh =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 3152 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFD5000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7 [main] bash 2600 fork: child -1 - died wai= ting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8 [main] bash 5464 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFDA000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 4413835 [main] bash 2600 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 5732 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDD000, 7FFDE000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 9578410 [main] bash 2600 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8 [main] bash 4260 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFD5000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 16750728 [main] bash 2600 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9 [main] bash 4624 C:\cygwin\bin\bash.exe: *= ** fatal error - couldn't allocate heap, Win32 error 487, base 0x4D0000, top 0x540000, reserve_size 454656, allocsize 458752, page_const 4096 Stack trace: Frame=C2=A0=C2=A0=C2=A0=C2=A0 Function=C2=A0 Args 0022E4C0=C2= =A0 6102749B=C2=A0 (0022E4C0, 00000000, 00000000, 00000000) 0022E7B0=C2=A0 6102749B=C2=A0 (61177B80, 0000= 8000, 00000000, 61179977) 0022F7E0=C2=A0 61004AFB=C2=A0 (611AF64C, 004D0000, 0054= 0000, 0006F000) 0022F810=C2=A0 6106BEB3=C2=A0 (7FFEFFFF, 00000003, 00000002, 7C90= DA0A) 0022F900=C2=A0 610BDF9B=C2=A0 (000007A8, 02000000, 61163664, 61163660) 0022= F930 61006090=C2=A0 (00000000, 00000000, 00000000, 00000000) 0022F9F0=C2=A0 6106= D0E9 (61000000, 00000001, 0022FD30, 6106CE10) 0022FA10=C2=A0 7C90118A (6106CE10, 61000000, 00000001, 0022FD30) 0022FB18=C2=A0 7C91C4FA (0022FD30, 7FFDF000, 7FFDA000, 00000000) 0022FC94=C2=A0 7C9211B4 (0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1C=C2=A0 7C9210AF (0022FD30, 7C900000, 00000000, 00010017) End of stack trace 27929492 [main] bash 2600 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 /etc/postinstall/man.sh: fork: Resource temporarily unavailable 2010/11/10 17:57:46 abnormal exit: exit code=3D128 2010/11/10 17:57:46 Changing gid to Administrators 2010/11/10 17:58:14 note: Installation Complete 2010/11/10 17:58:14 Ending cygwin install What I am finding out is that if I kill Setup (while hanging on the post-install script) and then manually run the post install script, the newly upgraded package seems to run just fine. Then I add ".done" to the end of the post-install script so it doesn't try to run during the next upgrade. What is going on here? Am I doing something wrong? Thanks! Paul Cantalupo Research Specialist/Systems Programmer -- 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