(gdb) run Starting program: /usr/local/bin/octave [Thread debugging using libthread_db enabled] GNU Octave, version 3.3.52+ Copyright (C) 2010 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. For details, type `warranty'. Octave was configured for "x86_64-unknown-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/help-wanted.html Read http://www.octave.org/bugs.html to learn how to submit bug reports. For information about changes from previous versions, type `news'. octave:1> plot(1:200) octave:2> print("testpdf.pdf") Detaching after fork from child process 25166. octave:3> GL2PS error: Bad file pointer Program received signal SIGSEGV, Segmentation fault. _IO_new_fclose (fp=0x0) at iofclose.c:57 57 if (fp->_IO_file_flags & _IO_IS_FILEBUF) (gdb) bt #0 _IO_new_fclose (fp=0x0) at iofclose.c:57 #1 0x00007ffff74004bf in glps_renderer::draw (this=0xfff4d0, go=...) at gl2ps-renderer.cc:83 #2 0x00007ffff73fe97b in opengl_renderer::draw(graphics_handle const&) () from /usr/local/lib/octave-3.3.52+/liboctinterp-3.3.52+.so #3 0x00007fffe9975b9f in OpenGL_fltk::draw (this=0xe3e910) at DLD-FUNCTIONS/fltk_backend.cc:142 #4 0x00007ffff46f443f in Fl_Gl_Window::flush (this=0xe3e910) at Fl_Gl_Window.cxx:347 #5 0x00000036ef631912 in flush () at ../FL/x.H:126 #6 Fl::flush () at Fl.cxx:481 #7 0x00000036ef631ba4 in Fl::wait (time_to_wait=) at Fl.cxx:369 #8 0x00000036ef631c3d in Fl::check () at Fl.cxx:412 #9 0x00007fffe9972595 in __fltk_redraw__ () at DLD-FUNCTIONS/fltk_backend.cc:1167 #10 0x00007fffe99729a0 in F__fltk_redraw__ () at DLD-FUNCTIONS/fltk_backend.cc:1266 #11 0x00007ffff7695311 in octave_builtin::do_multi_index_op (this=0x6da3d8, nargout=0, args=..., lvalue_list=) at ov-builtin.cc:129 #12 0x00007ffff7695a7c in octave_builtin::do_multi_index_op (this=, nargout=, args=) at ov-builtin.cc:99 #13 0x00007ffff775b221 in octave_value::do_multi_index_op (this=, nargout=, idx=) at ov.cc:1267 #14 0x00007ffff7564f4a in feval (name="__fltk_redraw__", args=..., nargout=0) at oct-parse.yy:4126 #15 0x00007ffff74e52d4 in input_event_hook () at input.cc:1262 #16 0x00007ffff6d1d27b in command_editor::event_handler () at cmd-edit.cc:889 #17 0x00000036f8e29e5a in rl_read_key () at ../input.c:432 #18 0x00000036f8e158cf in readline_internal_char () at ../readline.c:517 #19 0x00000036f8e15e15 in readline_internal_charloop (prompt=) at ../readline.c:579 #20 readline_internal (prompt=) at ../readline.c:593 #21 readline (prompt=) at ../readline.c:342 #22 0x00007ffff6d1d084 in gnu_readline::do_readline (this=, prompt=, address@hidden) at cmd-edit.cc:253 #23 0x00007ffff6d1e7b9 in command_editor::readline (prompt="octave:3> ", address@hidden) at cmd-edit.cc:914 #24 0x00007ffff74e0a76 in gnu_readline (s="octave:3> ", force_readline=) at input.cc:205 #25 0x00007ffff74e2289 in interactive_input (s="octave:3> ", force_readline=false) at input.cc:251 #26 0x00007ffff74e268d in octave_gets (buf=0xccfd50 "", max_size=8192) at input.cc:281 #27 get_user_input (buf=0xccfd50 "", max_size=8192) at input.cc:352 #28 octave_read (buf=0xccfd50 "", max_size=8192) at input.cc:374 #29 0x00007ffff74e9599 in yy_get_next_buffer () at lex.cc:3084 ---Type to continue, or q to quit--- #30 0x00007ffff74f4526 in octave_lex () at lex.cc:2926 #31 0x00007ffff7569c46 in octave_parse () at oct-parse.cc:2425 #32 0x00007ffff7632db7 in main_loop () at toplev.cc:564 #33 0x00007ffff75e080b in octave_main (argc=, argv=0x7fffffffe438, embedded=0) at octave.cc:884 #34 0x00000036eda1ec5d in __libc_start_main (main=0x4007d0
, argc=1, ubp_av=0x7fffffffe438, init=, fini=, rtld_fini=, stack_end=0x7fffffffe428) at libc-start.c:226 #35 0x0000000000400709 in _start () (gdb) (gdb) run Starting program: /usr/local/bin/octave [Thread debugging using libthread_db enabled] GNU Octave, version 3.3.52+ Copyright (C) 2010 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. For details, type `warranty'. Octave was configured for "x86_64-unknown-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/help-wanted.html Read http://www.octave.org/bugs.html to learn how to submit bug reports. For information about changes from previous versions, type `news'. octave:1> plot(1:200) octave:2> print("testpdf.pdf") Detaching after fork from child process 25166. octave:3> GL2PS error: Bad file pointer Program received signal SIGSEGV, Segmentation fault. _IO_new_fclose (fp=0x0) at iofclose.c:57 57 if (fp->_IO_file_flags & _IO_IS_FILEBUF) (gdb) bt #0 _IO_new_fclose (fp=0x0) at iofclose.c:57 #1 0x00007ffff74004bf in glps_renderer::draw (this=0xfff4d0, go=...) at gl2ps-renderer.cc:83 #2 0x00007ffff73fe97b in opengl_renderer::draw(graphics_handle const&) () from /usr/local/lib/octave-3.3.52+/liboctinterp-3.3.52+.so #3 0x00007fffe9975b9f in OpenGL_fltk::draw (this=0xe3e910) at DLD-FUNCTIONS/fltk_backend.cc:142 #4 0x00007ffff46f443f in Fl_Gl_Window::flush (this=0xe3e910) at Fl_Gl_Window.cxx:347 #5 0x00000036ef631912 in flush () at ../FL/x.H:126 #6 Fl::flush () at Fl.cxx:481 #7 0x00000036ef631ba4 in Fl::wait (time_to_wait=) at Fl.cxx:369 #8 0x00000036ef631c3d in Fl::check () at Fl.cxx:412 #9 0x00007fffe9972595 in __fltk_redraw__ () at DLD-FUNCTIONS/fltk_backend.cc:1167 #10 0x00007fffe99729a0 in F__fltk_redraw__ () at DLD-FUNCTIONS/fltk_backend.cc:1266 #11 0x00007ffff7695311 in octave_builtin::do_multi_index_op (this=0x6da3d8, nargout=0, args=..., lvalue_list=) at ov-builtin.cc:129 #12 0x00007ffff7695a7c in octave_builtin::do_multi_index_op (this=, nargout=, args=) at ov-builtin.cc:99 #13 0x00007ffff775b221 in octave_value::do_multi_index_op (this=, nargout=, idx=) at ov.cc:1267 #14 0x00007ffff7564f4a in feval (name="__fltk_redraw__", args=..., nargout=0) at oct-parse.yy:4126 #15 0x00007ffff74e52d4 in input_event_hook () at input.cc:1262 #16 0x00007ffff6d1d27b in command_editor::event_handler () at cmd-edit.cc:889 #17 0x00000036f8e29e5a in rl_read_key () at ../input.c:432 #18 0x00000036f8e158cf in readline_internal_char () at ../readline.c:517 #19 0x00000036f8e15e15 in readline_internal_charloop (prompt=) at ../readline.c:579 #20 readline_internal (prompt=) at ../readline.c:593 #21 readline (prompt=) at ../readline.c:342 #22 0x00007ffff6d1d084 in gnu_readline::do_readline (this=, prompt=, address@hidden) at cmd-edit.cc:253 #23 0x00007ffff6d1e7b9 in command_editor::readline (prompt="octave:3> ", address@hidden) at cmd-edit.cc:914 #24 0x00007ffff74e0a76 in gnu_readline (s="octave:3> ", force_readline=) at input.cc:205 #25 0x00007ffff74e2289 in interactive_input (s="octave:3> ", force_readline=false) at input.cc:251 #26 0x00007ffff74e268d in octave_gets (buf=0xccfd50 "", max_size=8192) at input.cc:281 #27 get_user_input (buf=0xccfd50 "", max_size=8192) at input.cc:352 #28 octave_read (buf=0xccfd50 "", max_size=8192) at input.cc:374 #29 0x00007ffff74e9599 in yy_get_next_buffer () at lex.cc:3084 ---Type to continue, or q to quit--- #30 0x00007ffff74f4526 in octave_lex () at lex.cc:2926 #31 0x00007ffff7569c46 in octave_parse () at oct-parse.cc:2425 #32 0x00007ffff7632db7 in main_loop () at toplev.cc:564 #33 0x00007ffff75e080b in octave_main (argc=, argv=0x7fffffffe438, embedded=0) at octave.cc:884 #34 0x00000036eda1ec5d in __libc_start_main (main=0x4007d0
, argc=1, ubp_av=0x7fffffffe438, init=, fini=, rtld_fini=, stack_end=0x7fffffffe428) at libc-start.c:226 #35 0x0000000000400709 in _start () (gdb)