bugGNU Octave - Bugs: bug #35769, [Windows] Segmentation fault on...


bug #35769: [Windows] Segmentation fault on subplot

Submitted by:  Dik Dirk <dikdirk>
Submitted on:  Fri 09 Mar 2012 12:26:07 PM UTC  
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Works For MeAssigned to: None
Originator Name: dikdirkOpen/Closed: Closed
Release: 3.6.1Operating System: Microsoft Windows

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 Jump to the original submission)

Sun 05 Aug 2012 04:06:53 AM UTC, comment #6:

I also experienced trouble with the preinstalled libblas.dll not being compatible with my hardware, and experienced crashes. I realize the default version (libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_dynamicarch in my install) is supposed to do some autodetection, but it fails to detect the appropriate instruction set for my hardware (AMD E-350 APU).

While I was able to figure out what to do, I imagine most people who just try out octave and run into this problem will just give up, since the solution isn't obvious. So, I'd like to help fix this problem, if possible! Is there any information I can submit that would help someone else find the problem? Or alternatively, if you have any pointers as to how I can begin to contribute to fixing this problem with autodetection myself, I'd be glad to look into it.

Gregory <cha5on>
Tue 13 Mar 2012 01:16:34 PM UTC, comment #5:

Switching to libblas.dll.atlas-3.8.4_ht-pentium solved the problem! When new related problem come up I'll submit them.

Dik Dirk <dikdirk>
Sun 11 Mar 2012 04:30:57 PM UTC, comment #4:

I suggest you'd better experiment with the various libblas.dll versions found in /bin. See the README which is in the octave-3.6.1-.......7z archive.

E.g., on my Windows boxes a simple

demo plotyy

can reliably crash Octave, depending on which libblas.dll is in place.

(Admittedly this libblas.dll affair is a little sneaky.... the effects (crashes) can pop up in many unexpected situations. Sorry for that.)

The latest Octave-3.6.1 MinGW version (dated March 3, 2012) is much more stable, yet offers a few more libblas.dll versions to try (9) than the earlier 3.6.1 one (just 5 or so IIRC).

On my box your example works OK (I tried it several times) with MinGW Octave 3.6.1, both fltk & gnuplot.
On MSVC it works OK as well (gnuplot, fltk and qt).

I'll close this bug with a "Works for me".
It can always be reopened if you report that your example code crashes with all 9 (nine) libblas.dll versions in /bin in the latest octave-3.6.1-MinGW drop.

Philip Nienhuis <philipnienhuis>
Project Member
Sat 10 Mar 2012 02:44:51 PM UTC, comment #3:

I can't reproduce this either... I even ran with valgrind looking for possible sources of error and found none.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Sat 10 Mar 2012 09:19:38 AM UTC, comment #2:

My other windows machine also repreduces this bug on second run of the code. It's unclear to my why it did run without segmentation fault the first time.
By the way: I used the MINGW version and not the visual studio version.

Dik Dirk <dikdirk>
Fri 09 Mar 2012 05:01:07 PM UTC, comment #1:

I'm marking the bug title with Windows to make this more specific. Octave operates correctly on the sample code in a Linux environment.

Rik <rik5>
Project Administrator
Fri 09 Mar 2012 12:26:07 PM UTC, original submission:

The following code generates a segmenation fault (both with fltk and gnuplot backend)

for m=1:16
fplot(@sin,[-1 1])

The cause could probably be related to a strange size of the first graph in the subplot, see attatched figure.

Dik Dirk <dikdirk>


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

Attach File(s):

Attached Files
file #25308:  subplotsegfault.png added by dikdirk (14KiB - image/png)
file #25304:  octave-core added by dikdirk (98KiB - application/octet-stream)
file #25305:  SubplotSegfault.m added by dikdirk (71B - text/x-objective-c)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -unavailable- added by cha5on (Posted a comment)
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dikdirk (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 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Apr 2013 01:41:02 PM UTCjordighDependencies-=>bugs #38688 is dependent
    Thu 28 Feb 2013 03:28:16 PM UTCjordighDependencies-=>bugs #38440 is dependent
    Fri 30 Nov 2012 09:49:20 PM UTCjordighDependencies-=>bugs #35933 is dependent
    Fri 30 Nov 2012 09:49:01 PM UTCjordighDependencies-=>bugs #37839 is dependent
    Fri 30 Nov 2012 09:46:54 PM UTCjordighDependencies-=>bugs #37231 is dependent
    Fri 30 Nov 2012 09:46:23 PM UTCjordighDependencies-=>bugs #34822 is dependent
    Sun 11 Mar 2012 04:30:57 PM UTCphilipnienhuisStatusNone=>Works For Me
    Fri 09 Mar 2012 05:01:07 PM UTCrik5SummarySegmentation fault on subplot=>[Windows] Segmentation fault on subplot
    Fri 09 Mar 2012 02:08:24 PM UTCdikdirkAttached File-=>Added subplotsegfault.png, #25308
    Fri 09 Mar 2012 12:26:07 PM UTCdikdirkAttached File-=>Added octave-core, #25304
      Attached File-=>Added SubplotSegfault.m, #25305

    Back to the top

    Powered by Savane 3.1-cleanup1