bugGNU Octave - Bugs: bug #37231, MinGW: Both plot and hist are...

 
 

bug #37231: MinGW: Both plot and hist are crashing

Submitter:  None
Submitted:  Thu 30 Aug 2012 11:31:28 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Manish Dharwadker Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Sep 2012 05:33:59 PM UTC, comment #5: 

Duplicate of bug #35769.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 01 Sep 2012 07:51:26 AM UTC, comment #4: 

(Added "MinGW" to title)
As to status there aren't that much fine-grained options.

Good that it works for you. Reference BLAS isn't so very slow BTW, just not as optimized as the other versions.

AFAIU the issue has to do with (perhaps too aggressive?) internal optimization (by the compiler) when the libblas libs are built. Newer compilers versions seem to behave better, though.
This type of problems is very hard to debug, as in debug builds the errors seemingly randomly pop up in other places and debug build usually have no optimization anyway.

The MSVC-versions of Octave for Windows have better stability in this respect; maybe you could try those.

Philip Nienhuis <philipnienhuis>
Group Member
Fri 31 Aug 2012 10:49:43 PM UTC, comment #3: 

Thanks .. I posted the MinGW and Java versions so the developers have an idea about my environment ...

I got it to work last night with libblas.dll.ref, it crashes with the other ones, I tried the dynamicarch libraries as well as the core2 ones (since my AMD E300 is dual-core).

Guess we can change status to "works with libblas.dll.ref but not with others" ? I cant debug this on Windows, if it was linux I could provide a core dump and a backtrace on gdb ...

Appreciate your help.

Manish

Anonymous
Fri 31 Aug 2012 10:16:19 PM UTC, comment #2: 

(Sorry my memory was a bit hazy)
ARM CPU you wrote? It occurred to me that your problem probably refers to an issue related to libblas.dll that hasn't popped up for quite a while. See e.g., bug #35769.
The symptoms are on the one hand unpredictable (i.e., where and when), OTOH usually lead to a segfault.

In short, you'll have to experiment with the various libblas.dll versions in your <OCTAVE_INSTALL_DIR>/bin subdir (see below), copying and then renaming them one by one to libblas.dll until you find one which is stable.
This is outlined in the README with the Octave-3.6.2_gcc4.6.2 binary. Did you care to read that?

I used "demo plotyy" for a fairly reliable crash test; Tatsuro advised something like (IIRC):
a = randn (30, 100) + randn (30, 100) * i;
b = a * a;

FYI, in my <Octave-3.6.2_gcc4.6.2>/bin subdir I have:


C:\Programs\Octave\Octave3.6.2_gcc4.6.2\bin>dir libblas.dll.*
 :
25-Mar-12  15:28        18 631 919 libblas.dll
25-Jan-12  23:12         3 512 832 libblas.dll.atlas-3.8.4_corei5
31-Jan-12  02:07         4 045 312 libblas.dll.atlas-3.8.4_ht-pentium
26-Mar-12  17:46         8 076 039 libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_core2
26-Mar-12  15:44         8 068 871 libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_core2_nt4
25-Mar-12  15:28        18 631 919 libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_dynamicarch
26-Mar-12  10:20        18 623 215 libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_dynamicarch_nt4
26-Mar-12  14:03         7 994 571 libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_nehalem
26-Mar-12  12:32         7 987 403 libblas.dll.OpenBLAS-v0.1.0-0-09f74f6_nehalem_nt4


libblas.dll.ref is the reference BLAS which /should/ work on most, if not all, architectures - but it is also the slowest.

Philip Nienhuis <philipnienhuis>
Group Member
Fri 31 Aug 2012 03:44:54 PM UTC, comment #1: 

Sorry I do not fully understand: what do "MinGW version: 0.5-beta" and "Java: JRE 7" have to do with it? I suppose you simply run the MinGW 3.6.2 binary from Octave-Forge, don't you? There's a complete enough msys/mingw environment included with it.

Anyway your commands work for me on WinXP SP3 - see attached pic b37231.png. Also works with gnuplot, and I also tried them on Octave-3.4.3_gcc4.5.2 with success.
I don't discount your report - I do see e.g. "libstdc++-6.dll" on the crash log. But Octave can be made unstable by lots of things, especially on MinGW.
Just to be sure: did you forget to mention a few commands? Have you fiddled with Octave's setup (notably shadowing of functions etc.?

I'll leave this bug report open for a while until/unless you come up with more info; yet I'll change status to "Works for me".



Philip Nienhuis <philipnienhuis>
Group Member
Thu 30 Aug 2012 11:31:28 PM UTC, original submission:  

Octave version: Octave3.6.2_gcc4.6.2
MinGW version: 0.5-beta
Java: JRE 7
OS: Windows 7 SP1 (64-bit) AMD E-300 APU (CPU)

I am trying to run some queries as part of a class. Here is the command I am running:


w = -6 + sqrt(10) * randn(1,10000);
plot (w)

or

hist (w)

Both of these crash, seems like an array out of bound issue. I am attaching the screen capture along with the Windows error log.


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26457:  b37231.png added by philipnienhuis (274KiB - image/png)
file #26455:  Octave_Plot_Hist_Error.png added by None (153KiB - image/png - Screen capture)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis (Updated the item)
  • -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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-30 jordigh Dependencies- Depends on bugs #35769
    2012-09-03 philipnienhuis StatusWorks For Me Duplicate
    2012-09-01 philipnienhuis Open/ClosedOpen Closed
        SummaryBoth plot and hist are crashing MinGW: Both plot and hist are crashing
    2012-08-31 philipnienhuis Attached File- Added b37231.png, #26457
        StatusNone Works For Me
    2012-08-30 None Attached File- Added Octave_Plot_Hist_Error.png, #26455

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code