* "cant commit memory for stack" error with perl
@ 2012-03-30 12:12 Noel Grandin
2012-04-01 18:01 ` Larry Hall (Cygwin)
0 siblings, 1 reply; 11+ messages in thread
From: Noel Grandin @ 2012-03-30 12:12 UTC (permalink / raw)
To: cygwin
Hi
I'm running the latest production Cygwin stuff, and I'm getting an error
like this in some perl code.
Running on Windows7, 64-bit, fully patched and up to date.
Any ideas?
Regards, Noel Grandin
C:/cygwin/bin/perl packconfig.pl -i
C:/LibreOffice/libo/solver/wntmsci12.pro/xml/uiconfig -o
../wntmsci12.pro/bin/uiconfig.zip
packconfig: ../wntmsci12.pro/bin/uiconfig.zip up to date. nothing to do.
0 [main] perl 488 child_info_fork::abort: can't commit memory for
stack 0x88B000(86016), Win32 error 487
0 [main] perl 3604 child_info_fork::abort: can't commit memory
for stack 0x88B000(86016), Win32 error 487
Disclaimer: http://www.peralex.com/disclaimer.html
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-03-30 12:12 "cant commit memory for stack" error with perl Noel Grandin
@ 2012-04-01 18:01 ` Larry Hall (Cygwin)
2012-04-02 7:53 ` Corinna Vinschen
2012-04-02 8:23 ` Noel Grandin
0 siblings, 2 replies; 11+ messages in thread
From: Larry Hall (Cygwin) @ 2012-04-01 18:01 UTC (permalink / raw)
To: cygwin
On 3/30/2012 8:11 AM, Noel Grandin wrote:
> Hi
>
> I'm running the latest production Cygwin stuff, and I'm getting an error
> like this in some perl code.
> Running on Windows7, 64-bit, fully patched and up to date.
>
> Any ideas?
>
> Regards, Noel Grandin
>
> C:/cygwin/bin/perl packconfig.pl -i
> C:/LibreOffice/libo/solver/wntmsci12.pro/xml/uiconfig -o
> ../wntmsci12.pro/bin/uiconfig.zip
> packconfig: ../wntmsci12.pro/bin/uiconfig.zip up to date. nothing to do.
> 0 [main] perl 488 child_info_fork::abort: can't commit memory for stack
> 0x88B000(86016), Win32 error 487
> 0 [main] perl 3604 child_info_fork::abort: can't commit memory for stack
> 0x88B000(86016), Win32 error 487
<http://cygwin.com/faq-nochunks.html#faq.using.fixing-fork-failures>
You may want to just try upgrading though. Grab the newest 'setup.exe'
from cygwin.com first if you go this route. It has the ability to
automatically do the rebasing.
--
Larry
_____________________________________________________________________
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-01 18:01 ` Larry Hall (Cygwin)
@ 2012-04-02 7:53 ` Corinna Vinschen
2012-04-02 8:23 ` Noel Grandin
1 sibling, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2012-04-02 7:53 UTC (permalink / raw)
To: cygwin
On Apr 1 14:00, Larry Hall (Cygwin) wrote:
> On 3/30/2012 8:11 AM, Noel Grandin wrote:
> >Hi
> >
> >I'm running the latest production Cygwin stuff, and I'm getting an error
> >like this in some perl code.
> >Running on Windows7, 64-bit, fully patched and up to date.
> >
> >Any ideas?
> >
> >Regards, Noel Grandin
> >
> >C:/cygwin/bin/perl packconfig.pl -i
> >C:/LibreOffice/libo/solver/wntmsci12.pro/xml/uiconfig -o
> >../wntmsci12.pro/bin/uiconfig.zip
> >packconfig: ../wntmsci12.pro/bin/uiconfig.zip up to date. nothing to do.
> >0 [main] perl 488 child_info_fork::abort: can't commit memory for stack
> >0x88B000(86016), Win32 error 487
> >0 [main] perl 3604 child_info_fork::abort: can't commit memory for stack
> >0x88B000(86016), Win32 error 487
>
> <http://cygwin.com/faq-nochunks.html#faq.using.fixing-fork-failures>
>
> You may want to just try upgrading though. Grab the newest 'setup.exe'
> from cygwin.com first if you go this route. It has the ability to
> automatically do the rebasing.
Larry, while updating setup is always a good advice, I would like to
stress that the automatic rebasing is not done by setup itself, but
rather by the postinstall script included in the _autorebase package.
So the ability to rebase is not coupled to the setup version.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-01 18:01 ` Larry Hall (Cygwin)
2012-04-02 7:53 ` Corinna Vinschen
@ 2012-04-02 8:23 ` Noel Grandin
2012-04-02 8:58 ` Corinna Vinschen
1 sibling, 1 reply; 11+ messages in thread
From: Noel Grandin @ 2012-04-02 8:23 UTC (permalink / raw)
To: cygwin
Hi
Thanks for the advise. But I'm still not winning :-(
I've done a rebaseall and a peflagsall and then a reboot, and I'm still
seeing the failures.
Is there anything else I can try, any other debugging I can do?
Thanks, Noel Grandin
On 2012-04-01 20:00, Larry Hall (Cygwin) wrote:
> On 3/30/2012 8:11 AM, Noel Grandin wrote:
>> Hi
>>
>> I'm running the latest production Cygwin stuff, and I'm getting an error
>> like this in some perl code.
>> Running on Windows7, 64-bit, fully patched and up to date.
>>
>> Any ideas?
>>
>> Regards, Noel Grandin
>>
>> C:/cygwin/bin/perl packconfig.pl -i
>> C:/LibreOffice/libo/solver/wntmsci12.pro/xml/uiconfig -o
>> ../wntmsci12.pro/bin/uiconfig.zip
>> packconfig: ../wntmsci12.pro/bin/uiconfig.zip up to date. nothing to do.
>> 0 [main] perl 488 child_info_fork::abort: can't commit memory for stack
>> 0x88B000(86016), Win32 error 487
>> 0 [main] perl 3604 child_info_fork::abort: can't commit memory for stack
>> 0x88B000(86016), Win32 error 487
>
> <http://cygwin.com/faq-nochunks.html#faq.using.fixing-fork-failures>
>
> You may want to just try upgrading though. Grab the newest 'setup.exe'
> from cygwin.com first if you go this route. It has the ability to
> automatically do the rebasing.
>
>
Disclaimer: http://www.peralex.com/disclaimer.html
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 8:23 ` Noel Grandin
@ 2012-04-02 8:58 ` Corinna Vinschen
2012-04-02 9:49 ` Noel Grandin
0 siblings, 1 reply; 11+ messages in thread
From: Corinna Vinschen @ 2012-04-02 8:58 UTC (permalink / raw)
To: cygwin
Please, don't http://cygwin.com/acronyms/#TOFU
Thank you.
On Apr 2 10:22, Noel Grandin wrote:
> Hi
>
> Thanks for the advise. But I'm still not winning :-(
>
> I've done a rebaseall and a peflagsall and then a reboot, and I'm
> still seeing the failures.
>
> Is there anything else I can try, any other debugging I can do?
You could try with the latest developer snapshot from
http://cygwin.com/snapshots/
> >>0 [main] perl 488 child_info_fork::abort: can't commit memory for stack
> >>0x88B000(86016), Win32 error 487
> >>0 [main] perl 3604 child_info_fork::abort: can't commit memory for stack
> >>0x88B000(86016), Win32 error 487
This is strange. The stack address in question points to a thread
stack. Trying to create a thread stack in a specific location only
occurs if the process tries to fork() from another thread than the main
thread. However, if you're running Cygwin 1.7.10 or later, pthread
stacks are not located so low in the memory, since thread stacks are by
default allocated with MEM_TOP_DOWN.
So this looks like perl or the perl package you're using does not use
pthreads, but rather native Windows CreateThread to create a thread. If
so, it's kind of on its own.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 8:58 ` Corinna Vinschen
@ 2012-04-02 9:49 ` Noel Grandin
2012-04-02 10:20 ` Corinna Vinschen
0 siblings, 1 reply; 11+ messages in thread
From: Noel Grandin @ 2012-04-02 9:49 UTC (permalink / raw)
To: cygwin
On 2012-04-02 10:57, Corinna Vinschen wrote:
> So this looks like perl or the perl package you're using does not use
> pthreads, but rather native Windows CreateThread to create a thread.
> If so, it's kind of on its own.
Weird, because the script is fairly simple, the includes look like:
use Getopt::Long;
use File::Find;
use File::Basename;
use Archive::Zip qw(:ERROR_CODES :CONSTANTS);
Which I would not have suspected of causing problems. And this worked
fine for a few months until I updated Cygwin recently.
I think I'll wait until the next Cygwin release comes out, the install
instructions for the snapshots looks a little hairy.
Thanks for your help.
Disclaimer: http://www.peralex.com/disclaimer.html
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 9:49 ` Noel Grandin
@ 2012-04-02 10:20 ` Corinna Vinschen
2012-04-02 14:30 ` Noel Grandin
0 siblings, 1 reply; 11+ messages in thread
From: Corinna Vinschen @ 2012-04-02 10:20 UTC (permalink / raw)
To: cygwin
On Apr 2 11:49, Noel Grandin wrote:
>
>
> On 2012-04-02 10:57, Corinna Vinschen wrote:
> >So this looks like perl or the perl package you're using does not
> >use pthreads, but rather native Windows CreateThread to create a
> >thread. If so, it's kind of on its own.
>
> Weird, because the script is fairly simple, the includes look like:
> use Getopt::Long;
> use File::Find;
> use File::Basename;
> use Archive::Zip qw(:ERROR_CODES :CONSTANTS);
Sorry, I have not the faintest idea what perl is doing under the hood.
> Which I would not have suspected of causing problems. And this
> worked fine for a few months until I updated Cygwin recently.
>
> I think I'll wait until the next Cygwin release comes out, the
> install instructions for the snapshots looks a little hairy.
Just download cygwin1-20120401.dll.bz2, bunzip it, chmod +x it,
and then replace cygwin1.dll in /bin with that file from Windows
Explorer. That's it.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 10:20 ` Corinna Vinschen
@ 2012-04-02 14:30 ` Noel Grandin
2012-04-02 14:45 ` Corinna Vinschen
0 siblings, 1 reply; 11+ messages in thread
From: Noel Grandin @ 2012-04-02 14:30 UTC (permalink / raw)
To: cygwin
On 2012-04-02 12:19, Corinna Vinschen wrote:
> Just download cygwin1-20120401.dll.bz2, bunzip it, chmod +x it, and
> then replace cygwin1.dll in /bin with that file from Windows Explorer.
> That's it
Thanks for that suggestion.
Tried it. Also tried rebooting.
Also tried disabling DEP and ASLR.
Still no joy.
Sigh...
Disclaimer: http://www.peralex.com/disclaimer.html
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 14:30 ` Noel Grandin
@ 2012-04-02 14:45 ` Corinna Vinschen
2012-04-02 14:55 ` Noel Grandin
2012-04-03 6:58 ` Noel Grandin
0 siblings, 2 replies; 11+ messages in thread
From: Corinna Vinschen @ 2012-04-02 14:45 UTC (permalink / raw)
To: cygwin
On Apr 2 16:30, Noel Grandin wrote:
>
>
> On 2012-04-02 12:19, Corinna Vinschen wrote:
> >Just download cygwin1-20120401.dll.bz2, bunzip it, chmod +x it,
> >and then replace cygwin1.dll in /bin with that file from Windows
> >Explorer. That's it
>
> Thanks for that suggestion.
> Tried it. Also tried rebooting.
> Also tried disabling DEP and ASLR.
> Still no joy.
> Sigh...
If you can strip your perl script to the bare minimum necessary to
reproduce the issue, I can take a look if I can reproduce it.
Oh, and, where is your perl.exe based to? In other words, what does
$ objdump -h /bin/perl.exe | grep '\.text'
print? (objdump is part of the binutils package).
If it's *not*
00401000
but rather something like
55691000
call `rebase -b 0x400000 /bin/perl.exe'
and try again.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 14:45 ` Corinna Vinschen
@ 2012-04-02 14:55 ` Noel Grandin
2012-04-03 6:58 ` Noel Grandin
1 sibling, 0 replies; 11+ messages in thread
From: Noel Grandin @ 2012-04-02 14:55 UTC (permalink / raw)
To: cygwin
On 2012-04-02 16:45, Corinna Vinschen wrote:
> If you can strip your perl script to the bare minimum necessary to
> reproduce the issue, I can take a look if I can reproduce it.
Its part of the LibreOffice build process.
> Oh, and, where is your perl.exe based to?
> In other words, what does $ objdump -h /bin/perl.exe | grep '\.text'
> print? (
I'll try these suggestions tomorrow, I'm in the middle of re-installing
cygwin in it's entirety, just in case something got corrupted.
Regards, Noel.
Disclaimer: http://www.peralex.com/disclaimer.html
--
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] 11+ messages in thread
* Re: "cant commit memory for stack" error with perl
2012-04-02 14:45 ` Corinna Vinschen
2012-04-02 14:55 ` Noel Grandin
@ 2012-04-03 6:58 ` Noel Grandin
1 sibling, 0 replies; 11+ messages in thread
From: Noel Grandin @ 2012-04-03 6:58 UTC (permalink / raw)
To: cygwin
Hi
I don't know why, but re-installing from scratch seems to have sorted it
out.
Thanks for all your help Corinna!
Regards, Noel Grandin
Disclaimer: http://www.peralex.com/disclaimer.html
--
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] 11+ messages in thread
end of thread, other threads:[~2012-04-03 6:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-30 12:12 "cant commit memory for stack" error with perl Noel Grandin
2012-04-01 18:01 ` Larry Hall (Cygwin)
2012-04-02 7:53 ` Corinna Vinschen
2012-04-02 8:23 ` Noel Grandin
2012-04-02 8:58 ` Corinna Vinschen
2012-04-02 9:49 ` Noel Grandin
2012-04-02 10:20 ` Corinna Vinschen
2012-04-02 14:30 ` Noel Grandin
2012-04-02 14:45 ` Corinna Vinschen
2012-04-02 14:55 ` Noel Grandin
2012-04-03 6:58 ` Noel Grandin
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).