bugGNU Octave - Bugs: bug #52280, fltk frontend crash with mesh

 
 

bug #52280: fltk frontend crash with mesh

Submitter:  Susi Lehtola <jussilehtola>
Submitted:  Wed 25 Oct 2017 01:33:58 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 03 Nov 2017 03:48:05 AM UTC, comment #8: 

Since this works with the latest stable release of Octave I'm going to close this report.  I realize it is still a problem for ancient versions of Octave, but we have only a small volunteer crew and have to prioritize more recent versions.

Rik <rik5>
Group administrator
Thu 26 Oct 2017 02:29:19 PM UTC, comment #7: 

With the address sanitizer enabled I get a "heap-buffer-overflow" wether I use Qt(5) or fltk. Evven though I have debug symbols enabled the bt does not mention the actual functions in which this happens


[tx, ty, tz] = sombrero;
mesh (tx, ty, tz)
=================================================================
==3104== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x600600cb51f8 at pc 0x7fe8fc03b192 bp 0x7ffffb760f20 sp 0x7ffffb760f18
READ of size 8 at 0x600600cb51f8 thread T0
    #0 0x7fe8fc03b191 (/home/pantxo/Documents/On/octavebuild/libinterp/.libs/liboctinterp.so.4.0.0+0x1068191)
    #1 0x7fe8fc02b2bf (/home/pantxo/Documents/On/octavebuild/libinterp/.libs/liboctinterp.so.4.0.0+0x10582bf)
...


Pantxo Diribarne <pantxo>
Group Member
Wed 25 Oct 2017 05:59:06 PM UTC, comment #6: 

The software trick doesn't work.

Susi Lehtola <jussilehtola>
Wed 25 Oct 2017 05:45:02 PM UTC, comment #5: 

Agreed.  Have the original reporter try the LIBGL_ALWAYS_SOFTWARE trick.  If it works then the problem is shifted back to a HW driver and the reporter's equipment.

Rik <rik5>
Group administrator
Wed 25 Oct 2017 05:39:32 PM UTC, comment #4: 

In that case the magick of


LIBGL_ALWAYS_SOFTWARE=1 octave


may work.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 25 Oct 2017 04:38:11 PM UTC, comment #3: 

The sample code also works for me in Octave 3.8.2.

A simpler variant of the original sample code is


[tx, ty, tz] = sombrero;
mesh (tx, ty, tz)


I think this crash is probably dependent on the video hardware and OpenGL support as with many other reported plotting bugs.

Mike Miller <mtmiller>
Group Member
Wed 25 Oct 2017 04:35:10 PM UTC, comment #2: 

Yes, that's what I thought. The problem is that policy is to not undergo major version updates in the Enterprise Linux packages...

And yes, the test case works with octave-4.2.1-3.fc26.x86_64 on my Fedora 26 workstation.

Susi Lehtola <jussilehtola>
Wed 25 Oct 2017 04:22:21 PM UTC, comment #1: 

Octave 3.8.2 is deprecated and is two generations back and won't be fixed.  Can you check whether this is a problem with the latest stable release (4.2.1)?  The sample code works for me.

For reference, the test code is:


tx = ty = linspace (-8, 8, 41)';
[xx, yy] = meshgrid (tx, ty);
r = sqrt (xx .^ 2 + yy .^ 2) + eps;
tz = sin (r) ./ r;
mesh (tx, ty, tz);



Rik <rik5>
Group administrator
Wed 25 Oct 2017 01:33:58 PM UTC, original submission:  

As reported on the Fedora bugtracker
https://bugzilla.redhat.com/show_bug.cgi?id=1505895

octave 3.8.2 crashes with the fltk frontend when trying to mesh plot the sombrero example.

I can reproduce the crash on my computer, but unfortunately I can't give a backtrace...

Susi Lehtola <jussilehtola>

 

(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 pantxo (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by opoplawski
  • -email is unavailable- added by jussilehtola (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-03 rik5 Open/ClosedOpen Closed
    2017-10-25 rik5 CategoryPlotting Plotting with OpenGL
        StatusNone Works For Me
    2017-10-25 opoplawski Carbon-Copy- Added opoplawski

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code