octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

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