bugGNU Octave - Bugs: bug #32745, EXC_BAD_ACESS after...

 
 

bug #32745: EXC_BAD_ACESS after "graphics_toolkit fltk; clf"

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Thu 10 Mar 2011 09:18:15 PM UTC  
 
Category:  Plotting with OpenGL Severity:  4 - Important
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  Closed
Release:  dev Operating System:  Mac OS

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Mon 12 Dec 2011 07:35:12 PM UTC, comment #9: 

I no longer see this problem. My tip is

changeset:   14035:026b44b195b3
branch:      stable
tag:         tip
user:        Rik <octave@nomad.inbox5.com>
date:        Sun Dec 11 22:54:49 2011 -0800
summary:     doc: Demonstrate multiple calling convention usage in introduction

Ben Abbott <bpabbott>
Project Member
Mon 12 Dec 2011 06:02:43 PM UTC, comment #8: 

JWE did a lot of changes to the memory management system of Octave recently.  Can you retry "graphics_toolkit fltk; clf" and see if there is still a problem?

Rik <rik5>
Project Administrator
Wed 16 Mar 2011 05:17:06 PM UTC, comment #7: 

The problem still exists for MacOS.

Ben Abbott <bpabbott>
Project Member
Wed 16 Mar 2011 04:02:39 PM UTC, comment #6: 

It's nice when a bug resolves itself.  Can this bug report be closed?  Or is there still a problem on the Mac side?

Rik <rik5>
Project Administrator
Wed 16 Mar 2011 12:12:50 PM UTC, comment #5: 

I restarted VB and tried again, pulled, update -C, and II no longer see a crash on Ubuntu.

Not sure what changed, but no need for a back-trace.

Ben Abbott <bpabbott>
Project Member
Wed 16 Mar 2011 05:38:38 AM UTC, comment #4: 

Perhaps you can also post the log from the failure inside the Ubuntu VM?  The original log you posted has a line "/usr/include/c++/4.2.1/bits/basic_string.h:280" which would be mismatched vto the gcc version you are using of 4.4.3.  But I'm not sure if that log is from the Mac or Ubuntu side.

Rik <rik5>
Project Administrator
Wed 16 Mar 2011 12:37:13 AM UTC, comment #3: 

My Ubuntu via Virtual box is 10.04 also.

gcc is 4.4.3
ftlk is 1.1.10

Any ideas?

Ben Abbott <bpabbott>
Project Member
Wed 16 Mar 2011 12:25:17 AM UTC, comment #2: 

Mercurial tip 12506 works on Kubuntu 10.04. 

gcc is 4.4.3
fltk is 1.1.10-2

Rik <rik5>
Project Administrator
Sat 12 Mar 2011 10:03:38 PM UTC, comment #1: 

I see this on both MacOS and Ubuntu

Ben Abbott <bpabbott>
Project Member
Thu 10 Mar 2011 09:18:15 PM UTC, original submission:  

My tip is ...

changeset:   12506:0dda50ae4997
tag:         tip
user:        Konstantinos Poulios <logari81@gmail.com>
date:        Thu Mar 10 20:27:15 2011 +0100
summary:     add a persistent mode for listeners

From gdb ...

octave:1> graphics_toolkit fltk
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
octave:2> clf

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x927d725e in glMatrixMode ()
(gdb) bt
#0  0x927d725e in glMatrixMode ()
#1  0x03705dbe in OpenGL_fltk::setup_viewport () at /Users/bpabbott/Development/mercurial/octave/src/DLD-FUNCTIONS/__init_fltk__.cc:146
#2  0x03705dbe in OpenGL_fltk::resize (this=0x6028db0, xx=0, yy=20, ww=640, hh=440) at DLD-FUNCTIONS/__init_fltk__.cc:129
#3  0x037155d6 in fltk_uimenu::show () at /Users/bpabbott/Development/mercurial/octave/src/DLD-FUNCTIONS/__init_fltk__.cc:788
#4  0x037155d6 in plot_window::show_menubar () at /Users/bpabbott/Development/mercurial/octave/src/DLD-FUNCTIONS/__init_fltk__.cc:789
#5  0x037155d6 in plot_window::plot_window (this=0x6028bf0, xx=0, yy=0, ww=640, hh=480, xfp=@0x3a6ac08) at DLD-FUNCTIONS/__init_fltk__.cc:737
#6  0x03715caa in plot_window [inlined] () at /Users/bpabbott/Development/mercurial/octave/src/DLD-FUNCTIONS/__init_fltk__.cc:755
#7  0x03715caa in figure_manager::do_new_window (this=0x601d530, fp=@0x3a6ac08) at DLD-FUNCTIONS/__init_fltk__.cc:1572
#8  0x037042bb in figure_manager::new_window () at /Users/bpabbott/Development/mercurial/octave/src/DLD-FUNCTIONS/__init_fltk__.cc:1450
#9  0x037042bb in __fltk_redraw__ () at DLD-FUNCTIONS/__init_fltk__.cc:1767
#10 0x03715f77 in fltk_graphics_toolkit::redraw_figure (this=0x6002db0, go=@0xbfffb358) at DLD-FUNCTIONS/__init_fltk__.cc:1865
#11 0x001fdef4 in graphics_toolkit::redraw_figure () at /Users/bpabbott/Development/mercurial/octave/src/graphics.h:7618
#12 0x001fdef4 in Fdrawnow (args=@0xbfffb5d8) at graphics.cc:7618
#13 0x00498fad in octave_builtin::do_multi_index_op (this=0x3864140, nargout=0, args=@0xbfffb5d8, lvalue_list=0x0) at ov-builtin.cc:128
#14 0x00499377 in octave_builtin::do_multi_index_op (this=0x3864140, nargout=0, args=@0xbfffb5d8) at ov-builtin.cc:98
#15 0x0007e578 in octave_value::do_multi_index_op (this=0xbfffb518, nargout=0, idx=@0xbfffb5d8) at ov.cc:1266
#16 0x0005d5f1 in feval (name=@0xbfffb5f8, args=@0xbfffb5d8, nargout=0) at oct-parse.yy:4140
#17 0x0003af99 in interactive_input (s=@0xbfffb65c, force_readline=false) at input.cc:237
#18 0x0003ba25 in std::string::operator= () at /usr/include/c++/4.2.1/bits/basic_string.h:280
#19 0x0003ba25 in octave_gets [inlined] () at /Users/bpabbott/Development/mercurial/octave/src/input.cc:280
#20 get_user_input [inlined] () at /Users/bpabbott/Development/mercurial/octave/src/input.cc:351
#21 0x0003ba25 in octave_read (buf=0x3a50600 "", max_size=8192) at input.cc:373
#22 0x0003ccd3 in yy_get_next_buffer () at lex.cc:3097
#23 0x0004df11 in octave_lex () at lex.cc:2939
#24 0x00063a9d in octave_parse () at oct-parse.cc:2395
#25 0x0041a5c9 in main_loop () at toplev.cc:567
#26 0x003b591d in octave_main (argc=6, argv=0xbfffc354, embedded=0) at octave.cc:935
#27 0x00001f80 in main (argc=6, argv=0xbfffc354) at main.c:35

Ben Abbott <bpabbott>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-12 bpabbott StatusWorks For Me => Fixed
        Open/ClosedOpen => Closed
    2011-03-16 rik5 StatusNone => Works For Me

    Back to the top


    Powered by Savane 3.5