comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <notelacreas@porfavor.no>
Subject: Re: Stack overflow using Xml/Ada
Date: Wed, 21 Jul 2004 10:02:49 +0200
Date: 2004-07-21T10:02:49+02:00	[thread overview]
Message-ID: <2m6m7rFj0sjjU1@uni-berlin.de> (raw)
In-Reply-To: <pan.2004.07.21.07.37.17.532215@act-europe.fr>

Emmanuel Briot wrote:
> On Tue, 20 Jul 2004 23:25:26 +0200, Jano wrote:
> 
>>I'm using the excellent Xml/Ada library to parse a file (incidentally, 
>>created too with Xml/Ada). The problem is when I try to parse it back 
>>into memory, since I get a stack overflow when calling the
> 
> 
> 
> This is a known issue with the current public release of XML/Ada,
> fixed in customer releases. Using Direct_IO indeed has the limitation
> you pointed out. The new version uses Ada.Sequential_IO instead.
> 
> You haven't specified on which platform you are, but if you are on
> an allocate-on-use system, like linux, you want to unlimited the
> stack size anyway, this gives you an immediate workaround
>      unlimit stacksize

I'm using it for a linux/win32 project.

I have in fact unlimited stack in both platforms, but for some reason my 
Pragma Stack_Size aren't honored in linux above 2MB. I tracked it down 
to some issue related with ld, but abandoned without finding a solution. 
I've tried the --Xlinker --stack switches but no success. It hasn't been 
a pressing issue for the moment, so I've leaved it for a later time.

I don't think it will be too difficult to change it myself while waiting 
for the next release? Or if the involved changes are isolated in the 
single file discussed, you already have my email from this morning 
exchange about utf8 (hint hint ;))

Kind regards,

Alex.

> 
> In passing, I am planning a new public release some time in
> september/october, which will including validation capabilities.
> 
> Emmanuel



  reply	other threads:[~2004-07-21  8:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20 21:25 Stack overflow using Xml/Ada Jano
2004-07-21  7:37 ` Emmanuel Briot
2004-07-21  8:02   ` Jano [this message]
2004-07-21  9:44   ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox