[Simgrid-user] Assertion `next<limit' failed.

Martin Quinson martin.quinson at loria.fr
Wed Nov 16 08:33:02 CET 2005


On Tue, Nov 15, 2005 at 10:27:00PM -0500, Leland Hovey wrote:
> 
> 
> On Thu, 10 Nov 2005, Martin Quinson wrote:
> 
> > Actually, it comes from flexml, the technology on top of which the parser is
> > built. Flexml has the bad idea of fetching the whole document in memory
> > before parsing it. And moreover, the memory buffer size must be determinded
> > at compilation time.
> >
> > > >4. Can I reset the upper limit to something higher?
> > >
> > > Sure, just edit src/surf/surfxml.l modify the definition of
> > > FLEXML_BUFFERSTACKSIZE. E.g.
> > >
> > > #define FLEXML_BUFFERSTACKSIZE 1000000000
> > >
> > > Then recompile and everything should be fine.
> >
> > Provided that your version of flex is recent enough (>= 2.5.31); the
> > compilation process should warn you if it's not the case.
> 
> I've compiled with:
> #define FLEXML_BUFFERSTACKSIZE 10000000000000
> 
> and flex is:
> flex version 2.5.4
> 
> Or, could this be another kind of problem (as you were discussing)?

No, that's the issue. But your flex version is too old. You'll need to
upgrade or regenerate src/surf/surfxml.c on a more recent machine and then
copy it on the old one.

Bye, Mt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.gforge.inria.fr/pipermail/simgrid-user/attachments/20051116/cc57f92f/attachment-0002.pgp 


More information about the Simgrid-user mailing list