bugGNU Octave - Bugs: bug #47497, VirtualAlloc pointer is null....

 
 

bug #47497: VirtualAlloc pointer is null. Replace msys-1.0.dll as a workaround

Submitter:  None
Submitted:  Tue 22 Mar 2016 09:39:31 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Alef Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 04 Jan 2018 05:03:38 PM UTC, comment #13: 

Same error running Octave 4.2.1 in Windows 10. The fix worked for me, even though I don't feel very comfortable replacing a dll like this.

Leonardo <lmaranhao>
Tue 16 May 2017 03:01:10 PM UTC, comment #12: 

could someone knowledgeable relay this upstream to msys?

Anonymous
Sun 14 May 2017 03:04:32 PM UTC, comment #11: 

Same problem as Martin with last released version 4.2.1
D.

doom <doom>
Thu 30 Mar 2017 08:10:53 PM UTC, comment #10: 

Hello,
I just today installed Octave 4.2.1, typed "pkg list" as my first command and it broke:

  1. [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x60000, State 0x10000
C:\Octave\OCTAVE~1.1\bin\less.exe: * Couldn't reserve space for cygwin's heap,
Win32 error 0

Then I installed the attached msys-1.0.dll from Octave-3.2.3 and it the package list was displayed.

I run Microsoft Windows Server 2012 Standard.

So I guess the problem has not really been fixed.

Thanks,
Martin

Martin Wegmann <martinwegmann>
Fri 22 Apr 2016 03:52:35 PM UTC, comment #9: 

Running on Windows 10: I uninstalled 4.0.1, including deleting folders with "extra files". Installed 4.0.2 and, before doing anything else, ran both scripts that previously caused the issue. No problem with either one.

Frank Quick <rfquickjr>
Fri 22 Apr 2016 03:31:14 PM UTC, comment #8: 

A new bug fix version of Octave, 4.0.2, has just been released (ftp://ftp.gnu.org/gnu/octave).  There were some important fixes to memory handling for Windows platforms which resolved several segfaults.  Could someone who is experiencing this bug try the new release and see if the bug is still present?

Rik <rik5>
Group administrator
Tue 19 Apr 2016 06:10:29 PM UTC, comment #7: 

Ha! today the error does not occur. Something that might have changed it is that I did "more off" once before running the script. Now it does not seem to matter whether more is on or off. Maybe that's why few people see this happening.


Frank Quick <rfquickjr>
Sun 17 Apr 2016 06:25:28 PM UTC, comment #6: 

Well, this should narrow it down a bit more. Again, Octave 4.0.1 on Windows 10.

    z = ones(64,2);
    disp(z);

The command window shows:
                                        
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x60E80000, BaseAddress 0x60EA0000, RegionSize 0x13000, State 0x1000
C:\Octave\Octave-4.0.1\bin\less.exe: * Couldn't reserve space for cygwin's heap, Win32 error 0

Frank Quick <rfquickjr>
Sun 17 Apr 2016 04:04:13 PM UTC, comment #5: 

On my last comment: just realized I said 4.0.0, but I'm running 4.0.1. Maybe the original report should also have been for 4.0.1, as I never saw this happen with 4.0.0.

Frank Quick <rfquickjr>
Sun 17 Apr 2016 03:26:57 PM UTC, comment #4: 

I also see this problem using the following script with 4.0.0 on Windows 10. The error seems to occur at the first disp() call.

function bug()
    N = 31;
    disp(0:N-1);
    for c = 1:N-1
        [ m, a ] = testbug(N,c);
        disp([ c m/sqrt(N) a/pi ]);
    end
end

function [ m, a ] = testbug(N,c)
    m = 1;
    a = 0;
end

Frank Quick <rfquickjr>
Sat 26 Mar 2016 03:32:54 PM UTC, comment #3: 

We need more information about this if something needs to be done in Octave's Windows build. The Octave build for Windows is used by many and this problem has not been reported by others, so what is it about the dll, or what is it about your system that is flagging this dll as a problem?

The msys-1.0.dll that is installed with Octave is the current version of the official dll provided by the msys project, downloaded from here:

http://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.18-1/msysCORE-1.0.18-1-msys-1.0.18-bin.tar.lzma

If you download and extract that dll does the same error occur?

Mike Miller <mtmiller>
Group Member
Sat 26 Mar 2016 03:06:05 AM UTC, comment #2: 

Hi Project Admin. Yes, we could solve this by replacing the msys-1.0.dll with a much older one. But would the newer version of Windows binaries come with an msys-1.0.dll that doesn't have this issue? Because getting a dll from somewhere else is not as comforting and trustworthy as getting it from the official release of octave from the gnu project. Thanks.

Alex Feng <alexfeng>
Tue 22 Mar 2016 08:30:46 PM UTC, comment #1: 

Whenever you have more than one screenful of data to display, such as a large matrix, Octave attempts to send the data through a pager.  You can disable this with


more off


Alternatively, you can set the pager to something besides less.exe which might work on Windows.  Use


PAGER("NEW_PAGER.exe")


to set the pager to something else.

Or, as you said, you can replace the buggy msys-1.0.dll.


Rik <rik5>
Group administrator
Tue 22 Mar 2016 09:39:31 AM UTC, original submission:  

This happened after the recently update of windows 10. Previously, I installed from the binary file obtained from https://ftp.gnu.org/gnu/octave/windows/, and my OS was (and still is) Win 10. It works fine, until recently. The only change happened to my computer is that windows 10 automatically updated itself for some critical patch. And after that, this bug appears. A basic test code is:
rand(30)

Notice that there is NO ';' in the above code. Octave returns the following error msg:

  1. [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487

AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x490000, State 0x10000
E:\Programs\Octave\Octave-4.0.0\bin\less.exe: * Couldn't reserve space for cygwin's heap, Win32 error 0

It seems that it is related to less.exe. Trying 'rand(30);' won't have the issue. Trying 'zeros(60)' will results in the same issue, while 'zeros(30)' is fine. I tried installing Octave-4.0.1, but couldn't solve this problem.

After googling part of the error msg, I found that other applications/versions also have similar error msg, for example git, MPLAP and Octave-3.2.3 (http://octave.1599824.n4.nabble.com/copyfile-not-working-on-my-new-Win7-PC-td2716694.html).

It may be related to the msys-1.0.dll in the Octave-4.0.0/bin/ directory. Following www.microchip.com/forums/m595269.aspx, I got a workaround: replacing the msys-1.0.dll with the attached one obtained from the above forum, it solved the problem (for now).

Don't know why and what happens. Thanks.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36722:  msys-1.0.dll added by None (718KiB - application/x-msdownload)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lmaranhao (Posted a comment)
  • -email is unavailable- added by doom (Posted a comment)
  • -email is unavailable- added by martinwegmann (Posted a comment)
  • -email is unavailable- added by rfquickjr (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by alexfeng (Posted a comment)
  •  

    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
    2018-01-04 rik5 Carbon-CopyRemoved 72865 -
    2016-04-22 mtmiller StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2016-04-22 rik5 StatusNeed Info Ready For Test
    2016-03-26 mtmiller CategoryInterpreter Libraries
        StatusNone Need Info
    2016-03-22 None Attached File- Added msys-1.0.dll, #36722

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code