bugGNU Octave - Bugs: bug #35661, GNU Octave 3.6.0 crashed in surf()

 
 

bug #35661: GNU Octave 3.6.0 crashed in surf()

Submitter:  None
Submitted:  Tue 28 Feb 2012 10:23:50 PM UTC
   
 
Category:  Plotting Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Stephan Gebauer Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 15 Apr 2012 01:48:01 AM UTC, comment #6: 

Octave inadvertently stopped recognizing 'TextureMap' as a surface property.  I added it back to the list of properties in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/05b7fa3b64c8).  The demo script now runs correctly.  This fix will be a part of release 3.6.2.

Rik <rik5>
Group administrator
Sat 14 Apr 2012 01:35:37 AM UTC, comment #5: 

I don't get a segfault either with 3.6.0, but this is on a Linux machine.  The 3.6.0 Windows build may have been more prone to this.  The dropping of 'TextureMap' between 3.4.3 and 3.6.0 remains a regression.

Rik <rik5>
Group administrator
Fri 13 Apr 2012 10:50:27 PM UTC, comment #4: 

OK, I see the problem now.  I unpacked with uzip -a and it treated the .mat file as a text file...

I see the error about texturemap but I'm not seeing a segfault, even after removing the try/catch.  However, valgrind does turn up this:


==10925==  Address 0x15929080 is 0 bytes after a block of size 1,555,200 alloc'd
==10925==    at 0x4C26CF7: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10925==    by 0x53953B3: double* no_ctor_new<double>(unsigned long) (oct-mem.h:131)
==10925==    by 0x53D5A7B: Array<double>::ArrayRep::ArrayRep(int) (Array.h:80)
==10925==    by 0x53CDC9A: Array<double>::Array(dim_vector const&) (Array.h:196)
==10925==    by 0x53C829E: MArray<double>::MArray(dim_vector const&) (MArray.h:53)
==10925==    by 0x53C3B94: NDArray::NDArray(dim_vector const&) (dNDArray.h:44)
==10925==    by 0x5435FA4: convert_cdata(base_properties const&, octave_value const&, bool, int) (graphics.cc:739)
==10925==    by 0x5528C02: surface::properties::get_color_data() const (graphics.cc:7083)
==10925==    by 0x541DCD9: opengl_renderer::draw_surface(surface::properties const&) (gl-render.cc:1612)
==10925==    by 0x541659E: opengl_renderer::draw(graphics_object const&, bool) (gl-render.cc:562)
==10925==    by 0x541B701: opengl_renderer::draw_axes_children(axes::properties const&) (gl-render.cc:1363)
==10925==    by 0x541BB86: opengl_renderer::draw_axes(axes::properties const&) (gl-render.cc:1418)
==10925==


John W. Eaton <jwe>
Group administrator
Fri 13 Apr 2012 10:43:12 PM UTC, comment #3: 

Corruption on download?  A stray patch applied?  topo.mat loads with the dev, 3.6.1, and 3.4.3 versions of Octave for me.

Rik <rik5>
Group administrator
Fri 13 Apr 2012 09:45:23 PM UTC, comment #2: 

I'm unable to read the file topo.mat with Octave.

John W. Eaton <jwe>
Group administrator
Fri 06 Apr 2012 05:01:15 AM UTC, comment #1: 

Confirmed on a recent tip (4/5/12).  It seems that support for TextureMap was somehow dropped between 3.4.3 and 3.6.0.  As this is a regression I have marked the bug important which guarantees it will block the 3.8.0 release until fixed.  Someone may get to it sooner and produce a patch on the stable 3.6 series.

Rik <rik5>
Group administrator
Tue 28 Feb 2012 10:23:50 PM UTC, original submission:  

Hello,

I am using GNU Octave Versions 3.4.3 and 3.6.0. under Windows 7.
there occurs an error in GNU Octave 3.6.0 with surf()-Funktion and textures.
the simple example code in attachment(zip-file) is tested in matlab 2007a and GNU Octave 3.4.3 and works fine with this. In Gnu Octave 3.6.0 this example crashed with error:


error: invalid color specification: texturemap
error: invalid value for color property "facecolor" (value = texturemap)
error: called from:
error:   C:\USR\Octave\Octave3.6.0_gcc4.6.2\share\octave\3.6.0\m\plot\surface.m at line 159, column 7
error:   C:\USR\Octave\Octave3.6.0_gcc4.6.2\share\octave\3.6.0\m\plot\surface.m at line 51, column 23
error:   C:\USR\Octave\Octave3.6.0_gcc4.6.2\share\octave\3.6.0\m\plot\surf.m at line 51, column 9
error:   C:\work\octave\test_surf.m at line 14, column 3
panic: Segmentation violation -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete


to prevent "panic: Segmentation violation...." wrapped a try ....catch around the surf-function, so Octave 3.6.0 not hangs up!

when you cut out the 'FaceColor','texturemap', then Octave hangs suddenly(with try ... catch..., and also Octave 3.4.3 crashing under this condition)
with error:

panic: Segmentation violation -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete

For testing purposes in the zip file is also matlabs topo.mat and the minimized code example wich crashed in Octave 3.6.0.

Hope its helpful report!

Best Regards

 Stephan Gebauer

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #25208:  testsurf.zip added by None (115KiB - application/x-zip-compressed)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-15 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2012-04-13 rik5 Item GroupSegfault, Bus Error, etc. Regression
    2012-04-06 rik5 Severity3 - Normal 4 - Important
        StatusNone Confirmed
    2012-02-28 None Attached File- Added testsurf.zip, #25208

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code