- Subject: [Jed-users-l] bug in re_looking_at() ?
- From: Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Jul 2013 16:37:10 +0200
I have a slang function, which inserts " " at the beginning of each line:
bob;
while (not(eobp)) {
ifnot (re_looking_at("[ \*] ")) insert(" ");
bol;
down_1;
}
When the buffer has more than 2500 lines, I get a "Stack Overflow Error"
and in the traceback buffer I see:
/sw/ubuntu-10.04/jed-0.99-19/jed/lib/site.sl:1414:re_looking_at:Stack
Overflow Error
Local variables for re_looking_at:
String_Type re = "[ *] "
/sw/ubuntu-10.04/jed-0.99-19/jed/lib/select.sl:44:<top-level>:Stack Overflow Error
Traceback: evalfile
***string***:1:<top-level>:Stack Overflow Error
Traceback: called from eval: evalfile("select");
re_looking_at() seems to leave a value on the stack.
When I modify my code to:
bob;
while (not(eobp)) {
ifnot (re_looking_at("[ \*] ")) insert(" ");
pop;
bol;
down_1;
}
everything works.
I assume this is a bug of re_looking_at() ?
--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart Tel: ++49-711-68565868
Allmandring 30a Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
REF: <20130702143710.GA13416@xxxxxxxxxxxxxxxxxxxx>
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]