bugGNU Octave - Bugs: bug #31492, for fltk, patch() crashes...

 
 

bug #31492: for fltk, patch() crashes developers sources

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Fri 29 Oct 2010 07:26:50 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 29 Oct 2010 11:53:49 PM UTC, comment #2:

changeset: 11168:36442102c340
tag: tip
user: David Bateman <dbateman@free.fr>
date: Fri Oct 29 21:46:58 2010 +0200
summary: Fix treatment of facevertexcdata if facecolor is 'none' with the fltk backend

David's changeset fixed this for me!

Thanks!

Ben Abbott <bpabbott>
Project Member
Fri 29 Oct 2010 07:47:08 PM UTC, comment #1:

Fixed by

http://hg.savannah.gnu.org/hgweb/octave/rev/36442102c340

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Fri 29 Oct 2010 07:26:50 AM UTC, original submission:

$ hg tip
changeset: 11166:9cdf43d1fa16
tag: tip
user: Ben Abbott <bpabbott@mac.com>
date: Fri Oct 29 10:20:30 2010 +0800
summary: gl-render.cc: Crop ticks, ticklabels, and gridlines for OpenGL backend.

Setting a patch's facecolor to "none" causes octave to crash.

x = [0 1 1 0];
y = [0 0 1 1];
backend fltk
patch (x, y, "b", "facecolor", "none")
panic: Bus error -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete

from gdb ...

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x002745ca in convert_cdata_1<double> (is_scaled=true, clim_0=0, clim_1=1, cmapv=0x4822c00, cv=0x0, lda=1, nc=64, av=0x414f5c0) at graphics.cc:602
602 convert_cdata_2 (is_scaled, clim_0, clim_1, cmapv, cv[i], lda, nc, i, av);
(gdb)
Current language: auto; currently c++

The backtrace is ...

(gdb) bt
#0 0x002745ca in convert_cdata_1<double> (is_scaled=true, clim_0=0, clim_1=1, cmapv=0x4822c00, cv=0x0, lda=1, nc=64, av=0x414f5c0) at graphics.cc:602
#1 0x001ce2e3 in convert_cdata (props=@0x4842c08, cdata=@0xbfff7d5c, is_scaled=<value temporarily unavailable, due to optimizations>, cdim=2) at graphics.cc:670
#2 0x0020e447 in patch::properties::get_color_data (this=0x4842c08) at graphics.cc:4861
#3 0x00150e55 in opengl_renderer::draw_patch (this=0x417b400, props=@0x4842c08) at gl-render.cc:2499
#4 0x001463e9 in opengl_renderer::draw (this=0x417b400, go=@0xbfff93d0) at gl-render.cc:550
#5 0x00168735 in opengl_renderer::draw_axes (this=0x417b400, props=@0x4827008) at gl-render.cc:1742
#6 0x001460aa in opengl_renderer::draw (this=0x417b400, go=@0xbfff996c) at gl-render.cc:544
#7 0x0016db16 in opengl_renderer::draw (this=0x417b400, h=@0xbfff99b8) at gl-render.h:56
#8 0x0016b76e in opengl_renderer::draw (this=0x417b400, hlist=@0xbfff9a1c) at gl-render.h:69
#9 0x001480c9 in opengl_renderer::draw_figure (this=0x417b400, props=@0x481dc08) at gl-render.cc:598
#10 0x00145f95 in opengl_renderer::draw (this=0x417b400, go=@0xbfff9ba4) at gl-render.cc:542
#11 0x0471087a in opengl_renderer::draw () at /Users/bpabbott/Development/mercurial/local_clone/src/gl-render.h:161
#12 0x0471087a in OpenGL_fltk::draw (this=0x417b360) at DLD-FUNCTIONS/fltk_backend.cc:161
#13 0x027cf058 in Fl_Gl_Window::flush ()
#14 0x027ecd0e in Fl_X::flush ()
#15 0x027ece5d in Fl::flush ()
#16 0x027edca2 in Fl::wait ()
#17 0x027edd07 in Fl::check ()
#18 0x04702bbf in _fltk_redraw_ () at DLD-FUNCTIONS/fltk_backend.cc:1743
#19 0x047167e5 in fltk_backend::redraw_figure (this=0x4356d80, go=@0xbfff9fc8) at DLD-FUNCTIONS/fltk_backend.cc:1835
#20 0x001d9fb5 in graphics_backend::redraw_figure () at /Users/bpabbott/Development/mercurial/local_clone/src/graphics.h:6346
#21 0x001d9fb5 in Fdrawnow (args=@0xbfffa258) at graphics.cc:6346
#22 0x004a3df6 in octave_builtin::do_multi_index_op (this=0x3064b40, nargout=0, args=@0xbfffa258, lvalue_list=0x0) at ov-builtin.cc:129
#23 0x004a41cf in octave_builtin::do_multi_index_op (this=0x3064b40, nargout=0, args=@0xbfffa258) at ov-builtin.cc:99
#24 0x00080616 in octave_value::do_multi_index_op (this=0xbfffa198, nargout=0, idx=@0xbfffa258) at ov.cc:1267
#25 0x00061011 in feval (name=@0xbfffa278, args=@0xbfffa258, nargout=0) at oct-parse.yy:4130
#26 0x0003d596 in interactive_input (s=@0xbfffa2dc, force_readline=false) at input.cc:238
#27 0x0003e022 in std::string::operator= () at /usr/include/c++/4.2.1/bits/basic_string.h:281
#28 0x0003e022 in octave_gets [inlined] () at /Users/bpabbott/Development/mercurial/local_clone/src/input.cc:281
#29 get_user_input [inlined] () at /Users/bpabbott/Development/mercurial/local_clone/src/input.cc:352
#30 0x0003e022 in octave_read (buf=0x3239600 "", max_size=8192) at input.cc:374
#31 0x0003f2cf in yy_get_next_buffer () at lex.cc:3098
#32 0x000502d9 in octave_lex () at lex.cc:2940
#33 0x00066d50 in octave_parse () at oct-parse.cc:2409
#34 0x00424264 in main_loop () at toplev.cc:564
#35 0x003bfd02 in octave_main (argc=6, argv=0xbfffafa4, embedded=0) at octave.cc:894
#36 0x00001f80 in main (argc=6, argv=0xbfffafa4) 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 29 Oct 2010 11:53:49 PM UTCbpabbottCarbon-Copy-=>Added -unavailable-
    Fri 29 Oct 2010 07:47:07 PM UTCdbatemanStatusNone=>Fixed
      Assigned toNone=>dbateman
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1