Menu

#2291 msys 1.0.18 dll eats cpu, make hangs

MSYS
pending
nobody
msys (1)
Bug
none
Waiting_User_Response
False
2016-07-19
2016-03-22
Jay Satiro
No

I recently used mingw-get-setup 0.6.2-beta installer in a clean Windows 7 x64 VM to download mingw. I installed several packages: mingw-dev, mingw32-base, mingw32-gcc-g++, msys-base. And then Installation > Apply Changes.

Admin prompt to do postinstall:
cd C:\MinGW\msys\1.0\postinstall
pi.bat

Then I made a shortcut to C:\MinGW\msys\1.0\msys.bat and used that to open a shell.

I tried to build wolfSSL from commit d8fb4b6.
Using these commands:

./autogen.sh
C_EXTRA_FLAGS="-DFP_MAX_BITS=16384 -DTFM_TIMING_RESISTANT" ./configure --prefix=/usr/local --enable-alpn --enable-opensslextra --enable-aesgcm --enable-ripemd --enable-sha512 --enable-dh --enable-dsa --enable-ecc --enable-sni --enable-fastmath --enable-sessioncerts --enable-certgen --enable-testcert > config.out 2>&1
make V=1 > make.out 2>&1

However make started to eat CPU. I was able to reset the VM and reproduce this exactly the same every time. make is exiting early due to a file that can't be compiled. However something happens when it exits, it just hangs and the stack is _exit then pause and it just sits there eating cpu. I left it to run for half an hour the last time but nothing changed. If I hit enter or give the console some input nothing changes either.

I found one post about this to the mailing list from 2012. 'MSYS make hangs up'. The suggested solution to downgrade the msys dll to 1.0.17 works.

I downloaded these two files:

http://prdownloads.sourceforge.net/mingw/msysCORE-1.0.17-1-msys-1.0.17-bin.tar.lzma
http://prdownloads.sourceforge.net/mingw/msysCORE-1.0.17-1-msys-1.0.17-ext.tar.lzma

and then moved the extracted folders bin, etc and postinstall into C:\mingw\msys\1.0 , choosing to merge and overwrite.

Now make is using the 1.0.17 version and appears to work. Also, I have an older mingw msys system using 1.0.17 to build wolfSSL that I never had a problem with (there are compile problems of course but not due to bugs in mingw). So I think this hanging is a bug in msys.

Discussion

  • Jay Satiro

    Jay Satiro - 2016-03-30

    FYI wolfSSL team says I can work around this by doing ./configure --disable-jobserver to limit parallel make execution, so that may have something to do with it.

     
  • Cesar Strauss

    Cesar Strauss - 2016-07-15

    This bug may have been solved in the latest release, 1.0.19. Could you upgrade and try again?
    See also issue [#1950].
    Regards,
    Cesar

     

    Related

    Issues: #1950

  • Cesar Strauss

    Cesar Strauss - 2016-07-15
    • status: unread --> pending
     
  • Cesar Strauss

    Cesar Strauss - 2016-07-15
    • Category: Unknown --> Waiting_User_Response
     
  • Jay Satiro

    Jay Satiro - 2016-07-19

    There is no issue in msys 1.0.19. I used a saved vm image that contained the installation as described in the original post. Then I overwrote with the contents of 1.0.19:

    http://heanet.dl.sourceforge.net/project/mingw/MSYS/Base/msys-core/msys-1.0.19-1/msysCORE-1.0.19-1-msys-1.0.19-ext.tar.xz
    http://heanet.dl.sourceforge.net/project/mingw/MSYS/Base/msys-core/msys-1.0.19-1/msysCORE-1.0.19-1-msys-1.0.19-bin.tar.xz
    

    There is no longer a hang. Thanks!