public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: setup hanging when running postinstall scripts
@ 2011-09-22 12:10 Ben Nye
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Nye @ 2011-09-22 12:10 UTC (permalink / raw)
  To: cygwin

I am having the same issue as Paul (http://sourceware.org/ml/cygwin/2010-11/msg00170.html), but I have already tried rebaseall and I have nothing on the BLODA list.

System is:
Windows XP 32 bit (with SP3 and all updates)
Cygwin Version: 1.7.9-1

In fact, I stripped my system down until I literally have almost nothing extra running period- but I still get the same issue.  When I try to use setup.exe to manage dmalloc- it gives me exit code 254 for every single postinstall script (after taking forever to complete each one).  It doesn't matter if I am installing it, re-installing it, or uninstalling it- the setup always fails.

The problems in the setup.log.full are noted as such:

For: etc/postistall/000-cygwin-post-install.sh
****************************************************
bash (some number) C:\cygwin\bin\bash.exe *** fatal error - Couldn't allocate heap, Win32 error 487

For 000-cygwin-post-install.sh and all other post-install scripts afterward:
****************************************************
bash (some number) fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11 (path of the script here): fork: retry: Resource temporarily unavailable
bash (some number) C:\cygwin\bin\bash.exe *** fatal error - Couldn't allocate heap, Win32 error 487, base 0x4E0000, top 0x550000, reserve_size 454656, allocsize 458752, page_const 4096

At this point, I literally have no idea why these things should be failing but I am wondering if there is some issue with the setup system itself.  I previously had a copy of Cygwin 1.5 on this machine and it never had any issues.  

When cleaned out that copy and installed 1.7 I recall that it was working okay, but I had a few packages that had some issues with their post-install scripts when I tried to use setup to manage my installation (so ultimately, I just decided to forgo those packages).

However, I do actually need dmalloc.  Hence I am wondering what the heck the problem is.  Here was the list of programs running on the machine on my last attempt to run setup.exe, following a full rebaseall in ash:

smss.exe
csrss.exe
winlogon.exe
services.exe
wmiprvse.exe
alg.exe
lsass.exe
explorer.exe
ctfmon.exe
svchost.exe
- DcomLaunch
svchost.exe
- RpcSs
svchost.exe
- Automatic Updates
- BITS
- Com+ Event Manager
- Computer Browser
- Cyptographic Services
- DHCP Client
- Distributed Link Tracking Client
- Error Reporting Service
- Help and Support
- HID
- Network Connections
- NLA
- Remote Access Manager
- Secondary Login
- Security Center
- Server
- Shell Hardware Manager
- System Event Notification
- Task Scheduler
- Telephony
- Themes
- Windows Audio
- Windows Firewall
- WMI
- Windows Time
- Wireless Zero Configuration
- Workstation
svchost.exe
- DNSCache
svchost.exe
- Remote Registry
- SSDP Discovery Service
- TCP/IP NetBIOS LMHosts
svchost.exe
- Webclient
svchost.exe
- Windows Image Acquisition (WMA)
svchost.exe
- HTTP SSL

So that's everything- all the programs and services running.  Nothing BLODA to my knowledge.  Heck, if anything there WAS BLODA that should mean that cygwin should learn to play nicely with it- all of this stuff is basic WinXP services and programs.  So hence... why?  What else could be causing this issue?

--
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] 3+ messages in thread

* Re: setup hanging when running postinstall scripts
  2010-11-10 23:27 Paul Cantalupo
@ 2010-11-10 23:33 ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Hall (Cygwin) @ 2010-11-10 23:33 UTC (permalink / raw)
  To: cygwin

On 11/10/2010 6:27 PM, Paul Cantalupo wrote:
> 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

<snip>

> What is going on here? Am I doing something wrong?

<http://cygwin.com/ml/cygwin/2010-11/msg00120.html>

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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] 3+ messages in thread

* setup hanging when running postinstall scripts
@ 2010-11-10 23:27 Paul Cantalupo
  2010-11-10 23:33 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Cantalupo @ 2010-11-10 23:27 UTC (permalink / raw)
  To: Cygwin mailing list

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

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

end of thread, other threads:[~2011-09-21 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22 12:10 setup hanging when running postinstall scripts Ben Nye
  -- strict thread matches above, loose matches on Subject: below --
2010-11-10 23:27 Paul Cantalupo
2010-11-10 23:33 ` Larry Hall (Cygwin)

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