octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31931] figure (1, "visible", "off") -> Bus er


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #31931] figure (1, "visible", "off") -> Bus error
Date: Wed, 03 Aug 2011 21:43:19 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30

Follow-up Comment #33, bug #31931 (project octave):

With the new changeset I see a crash when setting the menu bar.


>> graphics_toolkit fltk
Reading symbols for shared libraries . done
>> figure (1, "menubar", "figure") 

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x98a4a25e in glMatrixMode ()
(gdb) bt
#0  0x98a4a25e in glMatrixMode ()
#1  0x034adf1c in OpenGL_fltk::setup_viewport () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:146
#2  0x034adf1c in OpenGL_fltk::resize (this=0x33c4b30, xx=0, yy=20, ww=640,
hh=440) at DLD-FUNCTIONS/__init_fltk__.cc:129
#3  0x034c4dd9 in fltk_uimenu::show () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:800
#4  0x034c4dd9 in plot_window::show_menubar () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:801
#5  0x034c4dd9 in plot_window::update_menubar () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:786
#6  0x034c4dd9 in plot_window::plot_window (this=0x33885e0, xx=0, yy=0,
ww=640, hh=480, address@hidden) at DLD-FUNCTIONS/__init_fltk__.cc:744
#7  0x034c53c2 in plot_window [inlined] () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:745
#8  0x034c53c2 in figure_manager::do_new_window (this=0x33bc380,
address@hidden) at DLD-FUNCTIONS/__init_fltk__.cc:1582
#9  0x034acb54 in figure_manager::new_window () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:1460
#10 0x034acb54 in __fltk_redraw__ () at DLD-FUNCTIONS/__init_fltk__.cc:1778
#11 0x034c568f in fltk_graphics_toolkit::redraw_figure (this=0x3389730,
address@hidden) at DLD-FUNCTIONS/__init_fltk__.cc:1876
#12 0x001fa9e8 in graphics_toolkit::redraw_figure () at
/Users/bpabbott/Development/mercurial/default/src/graphics.h:7729
#13 0x001fa9e8 in Fdrawnow (address@hidden) at graphics.cc:7729
#14 0x004a35fc in octave_builtin::do_multi_index_op (this=0x3863f40,
nargout=0, address@hidden, lvalue_list=0x0) at ov-builtin.cc:131
#15 0x004a39f7 in octave_builtin::do_multi_index_op (this=0x3863f40,
nargout=0, address@hidden) at ov-builtin.cc:99
#16 0x0007f1b8 in octave_value::do_multi_index_op (this=0xbfffa588, nargout=0,
address@hidden) at ov.cc:1266
#17 0x0005dd25 in feval (address@hidden, address@hidden, nargout=0) at
oct-parse.yy:4132
#18 0x0003b535 in interactive_input (address@hidden, force_readline=false) at
input.cc:237
#19 0x0003bfc1 in std::string::operator= () at
/usr/include/c++/4.2.1/bits/basic_string.h:280
#20 0x0003bfc1 in octave_gets [inlined] () at
/Users/bpabbott/Development/mercurial/default/src/input.cc:280
#21 get_user_input [inlined] () at
/Users/bpabbott/Development/mercurial/default/src/input.cc:351
#22 0x0003bfc1 in octave_read (buf=0x3a75400 "", max_size=8192) at
input.cc:373
#23 0x0003d26f in yy_get_next_buffer () at lex.cc:3112
#24 0x0004e4b9 in octave_lex () at lex.cc:2954
#25 0x000641e3 in octave_parse () at oct-parse.cc:2408
#26 0x00424dc3 in main_loop () at toplev.cc:567
#27 0x003bacb1 in octave_main (argc=6, argv=0xbfffb3c4, embedded=0) at
octave.cc:935
#28 0x00001f80 in main (argc=6, argv=0xbfffb3c4) at main.c:35
(gdb) 


I encountered a compile error with the changeset


DLD-FUNCTIONS/__init_fltk__.cc: In constructor 'plot_window::plot_window(int,
int, int, int, figure::properties&)':
DLD-FUNCTIONS/__init_fltk__.cc:730: error: expected `;' before ':' token
make[3]: *** [DLD-FUNCTIONS/DLD_FUNCTIONS___init_fltk___la-__init_fltk__.lo]
Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


After replacing the colon at the end of line 730 with a semicolon it
compiled.

I did not notice your request to try "figure(1,"menubar","figure")" for the
prior changeset. Trying it now I see ...


>> graphics_toolkit fltk
Reading symbols for shared libraries . done
>> figure (1, "menubar", "figure")

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x98a4a25e in glMatrixMode ()
(gdb) bt
#0  0x98a4a25e in glMatrixMode ()
#1  0x034ae3a0 in OpenGL_fltk::setup_viewport () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:146
#2  0x034ae3a0 in OpenGL_fltk::resize (this=0x33c4b20, xx=0, yy=20, ww=640,
hh=440) at DLD-FUNCTIONS/__init_fltk__.cc:129
#3  0x034be30d in fltk_uimenu::show () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:793
#4  0x034be30d in plot_window::show_menubar () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:794
#5  0x034be30d in plot_window::plot_window (this=0x33885d0, xx=0, yy=0,
ww=640, hh=480, address@hidden) at DLD-FUNCTIONS/__init_fltk__.cc:745
#6  0x034c208c in plot_window [inlined] () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:748
#7  0x034c208c in figure_manager::do_new_window (this=0x33bc370,
address@hidden) at DLD-FUNCTIONS/__init_fltk__.cc:1580
#8  0x034acfab in figure_manager::new_window () at
/Users/bpabbott/Development/mercurial/default/src/DLD-FUNCTIONS/__init_fltk__.cc:1458
#9  0x034acfab in __fltk_redraw__ () at DLD-FUNCTIONS/__init_fltk__.cc:1775
#10 0x034c2359 in fltk_graphics_toolkit::redraw_figure (this=0x3389730,
address@hidden) at DLD-FUNCTIONS/__init_fltk__.cc:1873
#11 0x001fa9e8 in graphics_toolkit::redraw_figure () at
/Users/bpabbott/Development/mercurial/default/src/graphics.h:7729
#12 0x001fa9e8 in Fdrawnow (address@hidden) at graphics.cc:7729
#13 0x004a35fc in octave_builtin::do_multi_index_op (this=0x3863f40,
nargout=0, address@hidden, lvalue_list=0x0) at ov-builtin.cc:131
#14 0x004a39f7 in octave_builtin::do_multi_index_op (this=0x3863f40,
nargout=0, address@hidden) at ov-builtin.cc:99
#15 0x0007f1b8 in octave_value::do_multi_index_op (this=0xbfffa588, nargout=0,
address@hidden) at ov.cc:1266
#16 0x0005dd25 in feval (address@hidden, address@hidden, nargout=0) at
oct-parse.yy:4132
#17 0x0003b535 in interactive_input (address@hidden, force_readline=false) at
input.cc:237
#18 0x0003bfc1 in std::string::operator= () at
/usr/include/c++/4.2.1/bits/basic_string.h:280
#19 0x0003bfc1 in octave_gets [inlined] () at
/Users/bpabbott/Development/mercurial/default/src/input.cc:280
#20 get_user_input [inlined] () at
/Users/bpabbott/Development/mercurial/default/src/input.cc:351
#21 0x0003bfc1 in octave_read (buf=0x3a75400 "", max_size=8192) at
input.cc:373
#22 0x0003d26f in yy_get_next_buffer () at lex.cc:3112
#23 0x0004e4b9 in octave_lex () at lex.cc:2954
#24 0x000641e3 in octave_parse () at oct-parse.cc:2408
#25 0x00424dc3 in main_loop () at toplev.cc:567
#26 0x003bacb1 in octave_main (argc=6, argv=0xbfffb3c4, embedded=0) at
octave.cc:935
#27 0x00001f80 in main (argc=6, argv=0xbfffb3c4) at main.c:35




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31931>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]