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]

setup hanging when running postinstall scripts


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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFDD000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 7C9210AF
(0022FD30, 7C900000, 00000000, 00010017) End of stack trace
ÂÂÂÂÂ 7 [main] bash 4248 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0x100, errno 11
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFDA000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDD000, 7FFDE000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDE000, 7FFDF000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFD4000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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=128
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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFD5000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 7C9210AF
(0022FD30, 7C900000, 00000000, 00010017) End of stack trace
ÂÂÂÂÂ 7 [main] bash 2600 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0x100, errno 11
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFDA000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDD000, 7FFDE000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFD5000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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
ÂÂÂÂÂ 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 Function Args 0022E4C0 6102749B (0022E4C0,
00000000, 00000000, 00000000) 0022E7B0Â 6102749BÂ (61177B80, 00008000,
00000000, 61179977) 0022F7E0Â 61004AFBÂ (611AF64C, 004D0000, 00540000,
0006F000) 0022F810Â 6106BEB3Â (7FFEFFFF, 00000003, 00000002, 7C90DA0A)
0022F900Â 610BDF9BÂ (000007A8, 02000000, 61163664, 61163660) 0022F930
61006090Â (00000000, 00000000, 00000000, 00000000) 0022F9F0Â 6106D0E9
(61000000, 00000001, 0022FD30, 6106CE10) 0022FA10Â 7C90118A
(6106CE10, 61000000, 00000001, 0022FD30) 0022FB18Â 7C91C4FA
(0022FD30, 7FFDF000, 7FFDA000, 00000000) 0022FC94Â 7C9211B4
(0022FD30, 7C900000, 0022FCE0, 7C90E900) 0022FD1CÂ 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=128
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


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