From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c19064b1a16e21cb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: Stack overflow using Xml/Ada Date: Wed, 21 Jul 2004 10:02:49 +0200 Message-ID: <2m6m7rFj0sjjU1@uni-berlin.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de cfia5cIJ0f+R1G/Zv3oJYg9P4UAKafMx7EHJH2wb6ypYEuOYw= User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:2305 Date: 2004-07-21T10:02:49+02:00 List-Id: 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