[cfri@roxy Desktop]$ cat crash-liboctave.cpp #include #include #include #include #include int main ( int argc, char *argv[] ) { string_vector octave_argv ( 2 ); octave_argv( 0 ) = "embedded"; octave_argv( 1 ) = "-q"; octave_main( 2, octave_argv.c_str_vec(), 1 ); feval( "pkg", ovl( "load", "signal" ), 0 ); clean_up_and_exit ( 0 ); } [cfri@roxy Desktop]$ gdb ./crash-liboctave GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./crash-liboctave...(no debugging symbols found)...done. (gdb) run Starting program: /home/cfri/Desktop/crash-liboctave [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff73fe2a0 in tree_statement_list::accept(tree_walker&) () from /usr/lib/octave/4.2.0/liboctinterp.so.4 (gdb) bt #0 0x00007ffff73fe2a0 in tree_statement_list::accept(tree_walker&) () from /usr/lib/octave/4.2.0/liboctinterp.so.4 #1 0x00007ffff7313296 in octave_user_function::do_multi_index_op(int, octave_value_list const&, std::__cxx11::list > const*) () from /usr/lib/octave/4.2.0/liboctinterp.so.4 #2 0x00007ffff730c704 in octave_user_function::do_multi_index_op(int, octave_value_list const&) () from /usr/lib/octave/4.2.0/liboctinterp.so.4 #3 0x00007ffff7316c05 in octave_value::do_multi_index_op(int, octave_value_list const&) () from /usr/lib/octave/4.2.0/liboctinterp.so.4 #4 0x00007ffff73a0c5b in feval(std::__cxx11::basic_string, std::allocator > const&, octave_value_list const&, int) () from /usr/lib/octave/4.2.0/liboctinterp.so.4 #5 0x0000000000401de3 in main () (gdb) quit A debugging session is active. Inferior 1 [process 5565] will be killed. Quit anyway? (y or n) y [cfri@roxy Desktop]$ nano -wz crash-liboctave.txt [cfri@roxy Desktop]$ octave --version GNU Octave, version 4.2.0 Copyright (C) 2016 John W. Eaton and others. This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Octave was configured for "x86_64-pc-linux-gnu". Additional information about Octave is available at http://www.octave.org. Please contribute if you find this software useful. For more information, visit http://www.octave.org/get-involved.html Read http://www.octave.org/bugs.html to learn how to submit bug reports.