octave-3.0.0+ segmentation fault
John W. Eaton
jwe at bevo.che.wisc.edu
Fri Jan 4 13:59:09 CST 2008
On 31-Dec-2007, Michael Goffioul wrote:
| I just tried to compile and run octave with the object branch merged,
| but it crashes at startup (Windows/MSVC). Error occurs in
| symbol_table::pop_scope (void) when reassigning xcurrent_caller_scope
| (symtab.h, line 660).
|
| The backtrace is below (copied from vcexpress, might be difficult to
| read), but basically, this happends when sourcing PKG_ADD from
| the base oct-directory, during load_path initialization. When unwinding
| the frame, symbol_table::pop_scope() is called. At that moment,
| scope_stack contains 2 elements. The first statement pops the
| first element, but then the 3rd statement tries to access the element
| at index 1, which is invalid.
Please try the following patch. I'm not sure it is the best fix, but
it should avoid the problem. Maybe it would be better to arrange for
scope_stack to always have at least two elements with -1 at the bottom
of the stack.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080104/387dbf7b/attachment.ksh
More information about the Octave-maintainers
mailing list