[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35772] Nested Function Support
From: |
Max Brister |
Subject: |
[Octave-bug-tracker] [bug #35772] Nested Function Support |
Date: |
Sun, 18 Mar 2012 00:53:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11 |
Follow-up Comment #9, bug #35772 (project octave):
Jordi,
This also happens on octave 3.6.1, and 14479:05b59be209ed without nest2.patch.
I do not think this issue has anything to do with the nest2.patch. valgrind
also shows this happening in a different place as Alon's issue. Maybe this
belongs in another bug report? It does look quite bad.
Alon,
It looks like you have two related issues.
1) The crash
I am able to reproduce your crash on revision 05b59be209ed and octave 3.6.1.
As nest2.patch has not been applied to either of these, this seems to be some
underlying interpreter issue. Interestingly, there is no crash (for me at
least) if I place the code in a file before executing.
2) Incorrect behavior when clear all is called
When looking into the bug further it appears that this is an issue with
subfunctions as well. For example,
function bad_clear
clear all;
f;
function f
produces
error: `f' undefined near line 3 column 1
error: called from:
error: /home/max/projects/octave/bad_clear.m at line 3, column 1
when executed in octave 3.6.1 and revision 05b59be209ed. This leads me to
believe that the bug is a related bug having to do with executing clear all
when subfunctions exist. Fixing this problem for subfunctions should also fix
the issue for nested functions.
I am willing to look into both of these issues, but I think they belong in a
separate bug report.
Max
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35772>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Max Brister, 2012/03/09
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Rik, 2012/03/09
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Alon Levy, 2012/03/16
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Max Brister, 2012/03/16
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Alon Levy, 2012/03/16
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Max Brister, 2012/03/16
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Alon Levy, 2012/03/16
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Max Brister, 2012/03/17
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Alon Levy, 2012/03/17
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Jordi GutiƩrrez Hermoso, 2012/03/17
- [Octave-bug-tracker] [bug #35772] Nested Function Support,
Max Brister <=
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Jordi GutiƩrrez Hermoso, 2012/03/17
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Alon Levy, 2012/03/18
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Alon Levy, 2012/03/18
- [Octave-bug-tracker] [bug #35772] Nested Function Support, John W. Eaton, 2012/03/30
- [Octave-bug-tracker] [bug #35772] Nested Function Support, Max Brister, 2012/03/31