Bug 1505895 - Octave crashes when plotting a 3d surface
Summary: Octave crashes when plotting a 3d surface
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: octave
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Susi Lehtola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-24 14:07 UTC by lgadelha
Modified: 2019-10-23 03:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-23 03:42:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description lgadelha 2017-10-24 14:07:37 UTC
Description of problem:

Octave crashes when plotting a 3d surface: 

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);

From: https://www.gnu.org/software/octave/doc/v4.2.1/Three_002dDimensional-Plots.html

Version-Release number of selected component (if applicable):

octave.x86_64 6:3.8.2-20.el7

Steps to Reproduce:
1. Execute the script:

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);

Actual results:

panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Segmentation fault (core dumped)

Comment 1 Susi Lehtola 2017-10-25 13:35:11 UTC
A workaround is to use
graphics_toolkit('gnuplot')

Filed ticket upstream at
https://savannah.gnu.org/bugs/?52280

Comment 2 Susi Lehtola 2017-10-25 17:06:55 UTC
As you can see from the upstream ticket, the 3.8 series is no longer supported. 

Unfortunately, while Octave 4.2.1 would appear to build in EPEL7, we can't really update the EPEL7 packages due to the Fedora EPEL update policy, which heavily recommends not doing major version updates.

I'm sorry but you'll have to either use the workaround in Comment 1, or manually update to a newer version of Octave.

Comment 3 Orion Poplawski 2017-10-25 17:14:40 UTC
Note there there is a newer version available from https://copr.fedorainfracloud.org/coprs/g/scitech/octave/ (4.0).  Hope to update to 4.2 someday (testing in https://copr.fedorainfracloud.org/coprs/g/scitech/octave4.2/builds/)

Comment 4 Dmitri A. Sergatskov 2017-10-25 17:42:02 UTC
OpenGL driver is a suspect.

As another possible workaround you can try

LIBGL_ALWAYS_SOFTWARE=1 octave

Dmitri.
--

Comment 5 Susi Lehtola 2017-10-25 18:09:11 UTC
(In reply to Dmitri A. Sergatskov from comment #4)
> LIBGL_ALWAYS_SOFTWARE=1 octave

I can reproduce a crash even with the software driver.


Note You need to log in before you can comment on or make changes to this bug.