URL:
<http://savannah.gnu.org/bugs/?52085>
Summary: Invalid memory address error in valid code.
Equivalent code has no error.
Project: Gforth
Submitted by: cwlmb3
Submitted on: Fri 22 Sep 2017 05:58:41 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Version: 0.7.3
Compiler: gcc 5.4.0
OS: Gnu/Linux
Steps to reproduce:
1. Download the attached source files.
2. Populate a file named "file" with some text. (echo gforth >file)
3. Execute rin.fth (gforth rin.fth)
4. Note the code fails with "rin.fth:9: Invalid memory address".
5. Repeat step 3 with files rin2.fth and rin3.fth, which both succeed, leaving
bytes read on the stack as expected.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 22 Sep 2017 05:58:41 AM UTC Name: rin.fth Size: 160B By: cwlmb3
<http://savannah.gnu.org/bugs/download.php?file_id=41865>
-------------------------------------------------------
Date: Fri 22 Sep 2017 05:58:41 AM UTC Name: rin3.fth Size: 160B By: cwlmb3
<http://savannah.gnu.org/bugs/download.php?file_id=41866>
-------------------------------------------------------
Date: Fri 22 Sep 2017 05:58:41 AM UTC Name: rin2.fth Size: 159B By: cwlmb3
<http://savannah.gnu.org/bugs/download.php?file_id=41867>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52085>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
bug-gforth mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gforth