Mercurial > hg > octave-jordi
diff libinterp/corefcn/variables.cc @ 18877:d3276190e551
Revert a0fd65914811 which does not truly fix bug #36067.
* variables.cc: Remove try/catch block around safe_symbol_lookup.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 29 Jun 2014 11:23:06 -0700 |
parents | a0fd65914811 |
children | afab3a2f57e7 |
line wrap: on
line diff
--- a/libinterp/corefcn/variables.cc +++ b/libinterp/corefcn/variables.cc @@ -418,12 +418,11 @@ if (search_any || search_builtin) { - // Require a try block because symbol_lookup will attempt unsafe load - // of .oct/.mex file. - try - { val = safe_symbol_lookup (name); } - catch (octave_execution_exception) - { } + // FIXME: safe_symbol_lookup will attempt unsafe load of .oct/.mex file. + // This can cause a segfault. To catch this would require temporarily + // diverting the SIGSEGV exception handler and then restoring it. + // See bug #36067. + val = safe_symbol_lookup (name); if (val.is_defined () && val.is_builtin_function ()) return 5;