You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Takashi Sato <ta...@tks.st> on 2013/08/03 06:19:34 UTC

Re: doc build returns StackOverflowError

Committed http://svn.apache.org/r1508805

2013/7/25 Takashi Sato <ta...@tks.st>:
> Hi,
>
> I tried building docs and got StackOverflowError.
>
> My build machine is Scientific Linux 6.4 x86(32bit) with distro bundled
> OpenJDK 1.7. Trunk and 2.4 failed, 2.2 OK. I added "-Xss1m" to build.sh and
> tried again and succeded.
>
> We need to increase ant stack size?

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by Eric Covener <co...@gmail.com>.
> Which is better:
>  - Set stack size to 1MB or 2MB on build.sh. 512KB is too small.

my +1 for bump to 2MB.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by Takashi Sato <ta...@tks.st>.
> Seems you should set this in your own local config, not in one patch for
> everyone.

If "your own local config" means my machines global Java config file,
I don't agree.
1) Stack size each Java programs needs are different, so IMHO setting
stack size globally is not good idea.
2) I don't know how to set machine global Java stack size. Maybe there's no way.

If it means I should provide the stack size to build.sh with some way, it can't.

build.sh line 23:
#   - ignore external ANT_OPTS

Only way to set stack size is to edit build.sh.

Which is better:
 - Set stack size to 1MB or 2MB on build.sh. 512KB is too small.
 - Make build.sh respect external ANT_OPTS.
or any other way?

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by Rich Bowen <rb...@rcbowen.com>.
Seems you should set this in your own local config, not in one patch for
everyone.

--
Rich Bowen - RBowen@rcbowen.com


On Aug 15, 2013 12:56 PM, "Takashi Sato" <ta...@tks.st> wrote:

> >> I don't really know whether the solution was (intended to be) for
> >> everyone, or just addresses a specific problem that you, Takashi, are
> >> seeing?
> >
> > I guess, you have a different system (32 vs 64, *x vs windows) and a
> > different default stack size.
>
> I was tested first 1MB, then 512KB and both OK.
> My commited change meant to increase stack size, but maybe decrease
> your stack size...
>
> We need to set our stack size to 1MB or 2MB?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
>
>

Re: doc build returns StackOverflowError

Posted by Takashi Sato <ta...@tks.st>.
>> I don't really know whether the solution was (intended to be) for
>> everyone, or just addresses a specific problem that you, Takashi, are
>> seeing?
>
> I guess, you have a different system (32 vs 64, *x vs windows) and a
> different default stack size.

I was tested first 1MB, then 512KB and both OK.
My commited change meant to increase stack size, but maybe decrease
your stack size...

We need to set our stack size to 1MB or 2MB?

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by André Malo <nd...@perlig.de>.
* Rich Bowen wrote:

> When I revert your patch, I no longer see the error. can we get some
> more eyes on this to see what's going on? I'm far from an Ant expert, so
> I don't really know whether the solution was (intended to be) for
> everyone, or just addresses a specific problem that you, Takashi, are
> seeing?

I guess, you have a different system (32 vs 64, *x vs windows) and a 
different default stack size.

The files I just restored (directives and quickreference) access all module 
files at once. I presume, that the number of module files is directly 
propertional to the stack size here (most likely due to the way XSLT 
works). As the number of modules grow, so does the need of memory.

So, Eric's advice might just help - double the value (or more).

nd
-- 
>kann mir jemand sagen, was genau @-Domains sind?
Ein Mythos. Ein Werbetrick. Verarsche. Nenn es wie du willst...

                 -- Alexandra Buss und Björn Höhrmann in dciwam

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by Eric Covener <co...@gmail.com>.
>> What's going on?
>>
>> BUILD FAILED
>> java.lang.StackOverflowError
>>
> When I revert your patch, I no longer see the error. can we get some more
> eyes on this to see what's going on? I'm far from an Ant expert, so I don't
> really know whether the solution was (intended to be) for everyone, or just
> addresses a specific problem that you, Takashi, are seeing?

What if you double the value?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by Rich Bowen <rb...@rcbowen.com>.
On 08/09/2013 02:29 PM, Rich Bowen wrote:
> On 08/03/2013 12:19 AM, Takashi Sato wrote:
>> Committed http://svn.apache.org/r1508805
>>
>> 2013/7/25 Takashi Sato <ta...@tks.st>:
>>> Hi,
>>>
>>> I tried building docs and got StackOverflowError.
>>>
>>> My build machine is Scientific Linux 6.4 x86(32bit) with distro bundled
>>> OpenJDK 1.7. Trunk and 2.4 failed, 2.2 OK. I added "-Xss1m" to 
>>> build.sh and
>>> tried again and succeded.
>>>
>>> We need to increase ant stack size?
>>
>
> I am getting that error now, having never seen it before.
>
> What's going on?
>
> BUILD FAILED
> java.lang.StackOverflowError
>
When I revert your patch, I no longer see the error. can we get some 
more eyes on this to see what's going on? I'm far from an Ant expert, so 
I don't really know whether the solution was (intended to be) for 
everyone, or just addresses a specific problem that you, Takashi, are 
seeing?


-- 
Rich Bowen
rbowen@rcbowen.com
Shosholoza


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: doc build returns StackOverflowError

Posted by Rich Bowen <rb...@rcbowen.com>.
On 08/03/2013 12:19 AM, Takashi Sato wrote:
> Committed http://svn.apache.org/r1508805
>
> 2013/7/25 Takashi Sato <ta...@tks.st>:
>> Hi,
>>
>> I tried building docs and got StackOverflowError.
>>
>> My build machine is Scientific Linux 6.4 x86(32bit) with distro bundled
>> OpenJDK 1.7. Trunk and 2.4 failed, 2.2 OK. I added "-Xss1m" to build.sh and
>> tried again and succeded.
>>
>> We need to increase ant stack size?
>

I am getting that error now, having never seen it before.

What's going on?

BUILD FAILED
java.lang.StackOverflowError

-- 
Rich Bowen
rbowen@rcbowen.com
Shosholoza


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org