From: Georg Bauhaus <rm.tsoh.plus-bug.bauhaus@maps.futureapps.de>
Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna)
Date: Tue, 04 Aug 2009 11:17:53 +0200
Date: 2009-08-04T11:17:55+02:00 [thread overview]
Message-ID: <4a77fcc3$0$30229$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <47559b1f-cb97-455b-b76d-98a4f8a834ac@f37g2000yqn.googlegroups.com>
Ludovic Brenta wrote:
> Georg Bauhaus wrote on comp.lang.ada:
>> Georg Bauhaus wrote:
>>> The GNAT that comes with Ubuntu 9.04 (GCC 4.3.3)
>>> produces storage errors where GNAT on Debian Lenny
>>> (GCC 4.3.2) and GNAT 2007 on Windows (4.3.1) don't.
>> The latter is 4.1.3, sorry.
>
> From the symptoms you describe and the workaround you found, it seems
> to me not related to the compiler but rather to the way the kernel is
> configured. It looks like Ubuntu's default stack size is much smaller
> than on Debian or Windows. What does "ulimit -s" say on your Ubuntu
> and Debian?
8192 is the default output of ulimit -s on Ubuntu.
I had set ulimit -s $((8192 * 64)) on both Ubuntu 9.04
and Debian 5 and both exhibit the same symptoms. Why?
More guesswork: Is an empty Unbounded_String a heavy
construct? Observing the memory consumption of
regexdna, for reading and matching the ~50 Mo input
it does not consume more than about ~60 Mo, according
to free(1) and top. Then, the stack allocation of the lines
array seems to hit some memory boundary. (625_000 default
initialized Vstrings, which is a subtype of Unbounded_String.)
valgrind (in default mode) did not find anything IIRC.
next prev parent reply other threads:[~2009-08-04 9:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 22:54 GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) Georg Bauhaus
2009-08-03 22:56 ` Georg Bauhaus
2009-08-04 7:50 ` Ludovic Brenta
2009-08-04 9:17 ` Georg Bauhaus [this message]
2009-08-04 9:58 ` Vadim Godunko
2009-08-04 10:44 ` Georg Bauhaus
2009-08-04 12:30 ` Vadim Godunko
2009-08-04 14:15 ` Georg Bauhaus
2009-08-04 22:20 ` Egil
2009-08-04 15:38 ` Robert A Duff
2009-08-04 11:59 ` Brian Drummond
2009-08-04 14:18 ` Georg Bauhaus
2009-08-09 19:13 ` Georg Bauhaus
2009-08-10 13:10 ` jonathan
2009-08-10 20:12 ` jonathan
2009-08-10 20:29 ` Ludovic Brenta
2009-08-10 23:34 ` Georg Bauhaus
2009-08-11 20:02 ` jonathan
2009-08-11 21:19 ` jonathan
2009-08-11 21:38 ` Georg Bauhaus
2009-08-11 0:27 ` Georg Bauhaus
2009-08-11 19:05 ` jonathan
2009-08-12 9:32 ` Ludovic Brenta
2009-08-12 16:37 ` jonathan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox