gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] missing file included, error message corrupted


From: Bernd Paysan
Subject: Re: [gforth] missing file included, error message corrupted
Date: Mon, 19 Aug 2013 15:04:59 +0200
User-agent: KMail/4.10.5 (Linux/3.7.10-1.16-desktop; KDE/4.10.5; x86_64; ; )

Am Montag, 19. August 2013, 11:09:10 schrieb Anton Ertl:
> If Bernd cannot reproduce this, this does not mean that the bug is
> fixed.  I don't remember fixing it.  Do you, Bernd?

I can reproduce this with 0.7.2, but not with the current git head.  And I 
remember that I fixed it.  The problem is that we deallocate the input buffer 
before we print the exception report, and this fails with some glibc changes.  
So use a new Debian to reproduce it.

The commit label is

commit 2314c2f27861610ec669f6858451d3a22e5d1e5e
Author: pazsan <pazsan>
Date:   Fri Nov 11 18:29:09 2011 +0000

    save-mem for error stack

The change is

--- a/kernel/int.fs
+++ b/kernel/int.fs
@@ -898,7 +898,8 @@ max-errors /error * cells allot
 
 : input-error-data ( -- c-addr1 u1 c-addr2 u2 line# [addr u] )
     \ error data for the current input, to be used by >error or .error-frame
-    source input-lexeme 2@ sourceline#
+    source over >r save-mem over r> -
+    input-lexeme 2@ >r + r> sourceline#
     [ has? file [IF] ] sourcefilename [ [THEN] ] ;
 
 : dec. ( n -- ) \ gforth

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]