bugGforth - Bugs: bug #63084, regexp-test.fs fails

 
 

bug #63084: regexp-test.fs fails

Submitter:  Stephan Rudlof <hartrock>
Submitted:  Tue 20 Sep 2022 05:17:38 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  paysan
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 21 Sep 2022 09:10:29 PM UTC, comment #2: 

Thanks for fixing so fast!
This gives best motivation for further bug reports.

Could be a good idea to incorporate regexp-test.fs into BUILD-FROM-SCRATCH build chain.

Stephan Rudlof <hartrock>
Wed 21 Sep 2022 12:46:04 PM UTC, comment #1: 

Thanks for reporting.  The number of items on the control flow stack changed, and the code was assuming a fixed number (3).  Fixed in git head.

Bernd Paysan <paysan>
Group administrator
Tue 20 Sep 2022 05:17:38 PM UTC, original submission:  


sr@rs:~/Gforth$ gforth regexp.fs

/usr/local/share/gforth/0.7.9_20220916/regexp.fs:61:42: warning: redefined or!
/usr/local/share/gforth/0.7.9_20220916/kernel/comp.fs:410:3: warning: original locationGforth 0.7.9_20220916
Authors: Anton Ertl, Bernd Paysan, Jens Wilke et al., for more type `authors'
Copyright © 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `help' for basic help
require regexp-test.fs --- Telephone number match ---
(123) 456-7890 succeeded should succeed
(123) 456-7890 succeeded should succeed
(123)-456 7890 failed  should fail
(123) 456 789 failed  should fail
(123) 456-7890 succeeded should succeed
123 456-78909 failed  should fail

in file included from *the terminal*:1:9:
/usr/local/share/gforth/0.7.9_20220916/regexp-test.fs:47:8: error: expected control flow stack item
    (( >>>//<<< {{ [0-9(] -c? || \^ }}
Backtrace:
/usr/local/share/gforth/0.7.9_20220916/kernel/basics.fs:281:17:  0 $7F6246DCC800 throw
/usr/local/share/gforth/0.7.9_20220916/kernel/cond.fs:81:46:  1 $7F6246DE4A48 c(abort")
/usr/local/share/gforth/0.7.9_20220916/kernel/cond.fs:95:9:  2 $7F6246DE4C20 cs-item?
/usr/local/share/gforth/0.7.9_20220916/kernel/cond.fs:133:7:  3 $7F6246DE5060 CS-ROLL
/usr/local/share/gforth/0.7.9_20220916/regexp.fs:223:20:  4 $7F6246E55B90 name-compsem
/usr/local/share/gforth/0.7.9_20220916/regexp.fs:235:8:  5 $7F6246E55F90 name-compsem
  ok

sr@rs:~/Gforth$


Stephan Rudlof <hartrock>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by paysan (Posted a comment)
  • -email is unavailable- added by hartrock (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-21 paysan Open/ClosedOpen Closed
    2022-09-21 paysan StatusNone Fixed
        Assigned toNone paysan

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code