[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50014] Octave segmentation violation when dup
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist |
Date: |
Tue, 10 Jan 2017 19:23:58 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #5, bug #50014 (project octave):
I'm attaching a fix for this problem, including a change that fixes the error
reporting to use the correct line from the file rather than the current input
line where the lexer is currently reading. I can split those two things into
separate patches, but I don't see a good way to fix the bug without changing a
public interface. Although the patch adds some methods to the symbol table
classes, those could be eliminated. The real problem is that
base_parser::finish_function may already return 0, but that doesn't
necessarily indicate an error. So I added a status flag as an argument. It's
still not as neat and clean as I would like, but it appears to work.
(file #39429)
_______________________________________________________
Additional Item Attachment:
File name: diffs.txt Size:6 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50014>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50014] Octave segmentation voilation when calling duplicate function, anonymous, 2017/01/10
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/10
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/10
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/10
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/10
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist,
John W. Eaton <=
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/11
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, John W. Eaton, 2017/01/12
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/13
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, John W. Eaton, 2017/01/13
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/13
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, John W. Eaton, 2017/01/14
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, John W. Eaton, 2017/01/16
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Rik, 2017/01/16
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, John W. Eaton, 2017/01/16
- [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist, Philip Nienhuis, 2017/01/18