[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29491] recursive source() causes segfault
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #29491] recursive source() causes segfault |
Date: |
Mon, 12 Apr 2010 12:51:27 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8) |
Follow-up Comment #4, bug #29491 (project octave):
Yes, you could just count recursive invocations of the source function
itself. The reason I proposed the other solution is because it would be more
consistent with what currently happens with script files that are recursive.
For a script file that calls itself, the recursion limit is
Vmax_recursion_limit. For a pair of mutually recursive scripts, it is twice
that number. If you just count calls to source, you will get
Vmax_recursion_limit calls to source itself, which will mean half as many
allowed calls for a pair of mutually recursive scripts that call each other
via source as would happen if they call each other directly using the script
file execution feature of Octave. I agree that this is not likely to be a
widely used feature, but the solution I'm proposing isn't all that complex, so
why not make the two cases behave the same?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29491>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, anonymous, 2010/04/09
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, Judd Storrs, 2010/04/09
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, John W. Eaton, 2010/04/09
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, Jaroslav Hajek, 2010/04/12
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault,
John W. Eaton <=
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, Jaroslav Hajek, 2010/04/12
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, Judd Storrs, 2010/04/12
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, Jaroslav Hajek, 2010/04/12
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, Judd Storrs, 2010/04/12
- [Octave-bug-tracker] [bug #29491] recursive source() causes segfault, John W. Eaton, 2010/04/27