[REBOL] Bug in the parse functionality ???
From: rebol:meurrens at: 21-May-2003 21:39
Hello all,
I found something that looks like a serious bug.
I have of course reported this morning (morning... in Europe) to Carl.
But I'll like to know if somebody already encountered the bug
and/or found a work-around and/or know more precisely where the
problem stays.
The bug can be demonstrated using %clean-string.r
This script it-self is not very important
but my concern is more general:
if there is bug (or a limit ???) in the parse functionality,
it must, at least, be known, and, of course, corrected...
When using the well known and very standard %clean-string.r script
(Carl's demo script to produce pretty indented source code)
on a small file/string, it works fine.
When the file exceeds approx. 8 kb, REBOL enters in an erratic
behaviour. Looks like a memory problem (?)
Even if we may eventually accept a documented limit to some functions,
or even receive error messages, etc,
we cannot live with an erratic behaviour...
The bug was reproduced under all my versions under Win32 and Linux.
I don't know for other OS.
May be some of you can try on their own configs.
I have some difficulties to imagine that I am the first reboller
using %clean-string.r on a script larger than 8 kb.
{ Ok, REBOL is compact :-) ... }
and thus the first to meet the bug ???
Also, if the bug appears within %clean-string.r
it may also appear elsewhere ???
The bug is fully documented at URL
http://rebol.mksa.net/cleanScriptBug/
where the bug is reproduced "on-the-fly."
Everything is on this page
and you can download Carl's original script
(in fact, probably already on your disks...)
and the two (otherwise unsignificant) source files used for demo.
Hope this helps
(and that some of you may give me some lights on this bug...)
Regards,
</marc>
Prof. Ir Marc Meurrens, Brussels (be)
TEL: +32 (0)2 537 2812
FAX: +32 (0)2 537 7645
EMAIL: [marc--meurrens--org]
URL: http://www.meurrens.org/
REB: http://rebol.mksa.net/
PGPKEY: http://www.meurrens.org/pgp/
Please don't mail me attached files, instead, use my 'exchange area' :
EXCHANGE AREA: http://www.meurrens.org/exchange/
(HTTP/FTP upload/download of temporary/persistent files)