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]

Re: Cygwin fork problem: abort: can't commit memory for stack


Hi,

As suggested by Marco, I stripped the PATH to?bare?minimum and then it started building.
But slowly ?slowly, one at a time, I started adding more paths to path variable and finally I have restored it?back?to old one but its now building without any problem.
So, I am not sure what happened.

Also, can you please?explain?to me, why stripping path to bare minimum helped?
How was PATH interfering with fork process?

Thanks alot,
techie



________________________________

On 11/30/2012 5:24 PM, Techie Help wrote:
I have set up a new PC and installed cygwin on it.
Its windows 7 pro.
>Whenever I try to build our application on it, I get the following error:
>
>
>0 [main] sh 3472 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487
/bin/sh: fork: retry: Resource temporarily unavailable 0 [main] sh 3220 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487
/bin/sh: fork: retry: Resource temporarily unavailable 0 [main] sh 4896 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487
/bin/sh: fork: retry: Resource temporarily unavailable 0 [main] sh 4884 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487
>It prints this few times and then dies.

ERROR_INVALID_ADDRESS 487 (0x1E7)


Which application / tools are you using for the build ?
During the build are you running the application itself ?
on my system looking with "less /proc/self/maps"

0008C000-00090000 rw-p 0003C000 0000:0000 0
00090000-00279000 ===p 00000000 0000:0000 0 [stack (tid 2468)]
00279000-0027A000 rw-g 001E9000 0000:0000 0 [stack (tid 2468)]
0027A000-00290000 rw-p 001EA000 0000:0000 0 [stack (tid 2468)]
00290000-00294000 r--s 00000000 0000:0000 0
002A0000-002A1000 rw-p 00000000 0000:0000 0
002B0000-002E9000 ===p 00000000 0000:0000 0
002E9000-002EC000 rw-g 00039000 0000:0000 0
002EC000-002F0000 rw-p 0003C000 0000:0000 0
00310000-00384000 rw-p 00000000 0000:0000 0
00384000-00390000 ===p 00074000 0000:0000 0
00390000-003F7000 r--s 00000000 4038:403E 281474976758678 /cygdrive/c/Windows/System32/locale.nls


the stack is in the same area and the size limiting factor
is the presence of a system dll

I have already done a lot of research on this problem.
I have already uninstalled and installed cygwin  more than 5 times.
Done rebaseall everytime I installed it.
Checked for possible BLODA, I had notron antivirus, which I have removed.
>
>I am attaching the output of cygcheck and 'rebase -is'.
I have modified the cygcheck.out to remove login info and project specific paths 

nothing strange.
your rebase output is extremely clean and collision is unlikely.
My system is basically the same but with much more dlls and collisions.




>I really am not sure whats going on and it has become a blocking problem for me.
Please if anyone can help me, I would be grateful. 

just as trial, have you tried to simplify the PATH to a bare minimum ?
Only :
        C:\cygwin\usr\local\bin
        C:\cygwin\bin



>Thanks,
techie 

Regards
Marco


--
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> Documentation:? ? ? ? http://cygwin.com/docs.html
> Unsubscribe info:? ? ? http://cygwin.com/ml/#unsubscribe-simple

--
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]