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:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  dikdirk Open/Closed:  Closed
Release:  3.6.1 Operating 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)

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 Files:

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
  • -email is unavailable- added by cha5on (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dikdirk (Submitted the item)

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

    Only project members can vote.




    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-11 jordigh Dependencies- => bugs #38688 is dependent
    2013-02-28 jordigh Dependencies- => bugs #38440 is dependent
    2012-11-30 jordigh Dependencies- => bugs #35933 is dependent
    2012-11-30 jordigh Dependencies- => bugs #37839 is dependent
    2012-11-30 jordigh Dependencies- => bugs #37231 is dependent
    2012-11-30 jordigh Dependencies- => bugs #34822 is dependent
    2012-03-11 philipnienhuis StatusNone => Works For Me
        Open/ClosedOpen => Closed
    2012-03-09 rik5 SummarySegmentation fault on subplot => [Windows] Segmentation fault on subplot
    2012-03-09 dikdirk Attached File- => Added subplotsegfault.png, #25308
    2012-03-09 dikdirk Attached File- => Added octave-core, #25304
        Attached File- => Added SubplotSegfault.m, #25305

    Back to the top

    Powered by Savane 3.3