bugGNU Octave - Bugs: bug #47554, logm(rand(i)) : i>=130 gives...

 
 

bug #47554: logm(rand(i)) : i>=130 gives segfault on mxe-octave 64bit (openblas issue)

Submitted by:  Tatsuro MATSUOKA <tmacchant>
Submitted on:  Mon 28 Mar 2016 05:24:20 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: John Donoghue <lostbard>
Originator Name: Tatsuro MATUOKAOpen/Closed: Closed
Release: 4.0.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)

Wed 30 Mar 2016 11:14:04 PM UTC, comment #10:

marking as fixed and closed

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 30 Mar 2016 02:45:04 AM UTC, comment #9:

I pulled and update mxe-octave directory and confirmed the changeset was attached.
I executed "make" again and made a new installer.
This time log(rand(i)) (i>=130) works as expected.

Thanks!

Tatsuro MATSUOKA <tmacchant>
Tue 29 Mar 2016 05:01:35 PM UTC, comment #8:

Appears to be fixed in openblas 0.2.16.

Pushed update to mxe-octave to new openblas.
http://hg.octave.org/mxe-octave/rev/14e8109c191a

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 29 Mar 2016 01:42:16 PM UTC, comment #7:

Im trying openblas 0.2.16 that was just recently released to see if it is a problem still in it.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 29 Mar 2016 01:35:45 PM UTC, comment #6:

I see the same issue on a w64 build I created with --enable-windows-64 --enable-64

John Donoghue <lostbard>
Project MemberIn charge of this item.
Mon 28 Mar 2016 07:53:40 PM UTC, comment #5:

That makes sense. Thanks Mike.

Philip Nienhuis <philipnienhuis>
Project Member
Mon 28 Mar 2016 04:35:32 PM UTC, comment #4:

Tatsuro is saying that the OpenBLAS that is cross-built for Windows in the mxe-octave build process (on his Ubuntu 14.04) shows this error, but one built natively for Windows fixes the error when the dll is dropped in as a replacement.

Mike Miller <mtmiller>
Project Administrator
Mon 28 Mar 2016 04:30:30 PM UTC, comment #3:

Sorry, I am missing something:
How does the OpenBLAS on your Ubuntu system relate to the OpenBLAS cross-built in mxe-octave ?

FYI libopenblas.dll in my 64bit builds has md5sum:
00bbbbef17dad42ae517e9c2ff26ba70 libopenblas.dll

Philip Nienhuis <philipnienhuis>
Project Member
Mon 28 Mar 2016 09:40:09 AM UTC, comment #2:

The PC used to build mxe-octave have a dual core Athlon-X2 (64 bit).

Looking into openblas.mk in mxe-octave system, the option DYNAMIC_ARCH=1 is used.

Therefore it should work but built OpenBLAS on my Ubuntu-14.04 PC is buggy.
It seem not to be the issue of mxe-octave but the OpenBLAS.

Tatsuro MATSUOKA <tmacchant>
Mon 28 Mar 2016 08:59:52 AM UTC, comment #1:

It works fine with the 32-bit version (using openblas) from ftp.gnu.org:

(where cpu time in task manager = 39 seconds).
I saw only 25% CPU load, I'm sure I had openblas selected at install time. Indeed libblas.dll's size in /bin equals that of libopenblas.dll)
I have no home-built 64-bit 4.0.1 version, I'll see if I can make one today and try this again.

With a development 4.1.0+ cross-build, also invoking openblas, I cannot reproduce it here either. It was configured with:
--enable-windows-64 --enable-devel-tools --enable-binary-packages --enable-octave=default
and an octave-4.1.0+ "make dist" based on 6187f1d2ca13 "zip.m: Restore processing of wildcards ...."
Octave-4.1.0+ seems a bit faster:

(CPU time according to Task Manager 30 secs. CPU load 75 % for a while)

Philip Nienhuis <philipnienhuis>
Project Member
Mon 28 Mar 2016 05:24:20 AM UTC, original submission:

A windows binary octave-4.0.1 64bit (using --enable-windows64),
I have met Segmentation fault using openblas built by mxe-octave system.

gdb back traces are:

If I use refblas (mxe) or openblas built on windows, this issue does not occur.

Tatsuro MATSUOKA <tmacchant>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by tmacchant (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 30 Mar 2016 11:14:04 PM UTClostbardStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 29 Mar 2016 07:28:10 PM UTClostbardStatusNone=>Ready For Test
      Assigned toNone=>lostbard

    Back to the top


    Powered by Savane 3.1-cleanup1