5

Initially, I wanted to install the updated MinGW packages using the MinGW-get GUI, but it crashes when I choose "Mark All Upgrades" from the 'Installation' drop-down menu (whether I update the catalogue or not).

Now, I want to figure out why guimain.exe is crashing.

A screen capture of the MinGW-get GUI crashing on my computer

How can I diagnose and debug this persistent problem? I am vaguely familiar with GDB, but I've never used it. I am not committed to using the Visual Studio debugger.

I assume I need to use some ancillary binaries or debug libraries in the latest MinGW installer branch here: https://sourceforge.net/projects/mingw/files/Installer/mingw-get/mingw-get-0.6.2-beta-20131004-1/

Can anyone please guide me? Any assistance or suggested reading is appreciated.

8
  • 2
    Are you sure you want to debug this, rather than just posting a bug report or upgrading your MinGW?
    – nneonneo
    Apr 8, 2015 at 5:36
  • Ideally, I would like to fix the bug myself rather than merely reporting it. But you are correct that I would like to upgrade my MinGW libraries as well (which was my original intention after all). Apr 8, 2015 at 5:46
  • 1
    As developer and maintainer of mingw-get, I really appreciate your willingness to participate in debugging this issue, which BTW, I am unable to reproduce myself. I do wonder if this is the most appropriate forum for discussing the issue, rather than on a MinGW.org specific ML or bug tracker? Unfortunately, the published builds of mingw-get have been stripped of debug symbols, and it will be three or four months before I can find the time to effectively guide you through the process of deploying a debug enabled build, (which surely will not support the VS debugger in any case). Apr 12, 2015 at 21:59
  • 1
    @KeithMarshall, I'm not the asker, but I'm having issues on 64-bit Windows 7 SP1 (Professional). The program crashes when trying to mark (whether for install or upgrade, but not removal) any bin class item under MinGW Compiler Suite, except mingw32-binutils, and including mingw32-base (which isn't listed under Compiler Suite). Other classes are fine, other categories are fine. I would also like to help when a debuggable version is available.
    – leewz
    Jul 14, 2015 at 12:40
  • 1
    If it's interesting: Marking mingw-developer-toolkit for upgrade makes it hang for a few seconds, but it ends up going through.
    – leewz
    Jul 14, 2015 at 12:46

2 Answers 2

12

For those who are experiencing the crash on attempting to upgrade packages.. try running it in recursive mode..

mingw-get upgrade --recursive

that appeared to force an upgrade for me..

1
  • 3
    Thanks for the tip. Solved my crashing upgrade on Win7_x64. Oct 8, 2015 at 9:24
2

I happen to have the same issue. The GDB way to debug this:

gdb mingw-get.exe

r upgrade (run with argument upgrade)

GDB will automatically stop at a SIGSEGV (Segmentation fault) signal, that's what happens for me.

bt (get a backtrace) For me this resulted in a huge backtrace, filled with calls to:

#5013 0x6f9cdda4 in mingw-get-0!_ZN14pkgXmlDocument19ResolveDependenciesEP10pkgXmlNodeP13pkgActionItem () from c:\MinGW\libexec\mingw-get\mingw-get-0.dll

It looks like a recursion problem that quickly filled up the call stack. Note that function name is mangled, and we don't know the line number. This is the best you can do without debugging symbols. If you have the debugging symbols, GDBs output becomes more useful. For most Linux-style packages, you can get the debugging symbols in a -dbg package named similiarly to the stripped binary package. However I don't see a debug package for mingw32-mingw-get in the listing.

3
  • Thank you @kcghost. This was the kind of introductory answer I was seeking. I will try this out. May 14, 2015 at 20:47
  • @MavaddatJavid faced the same issue. Did you solved it?
    – odiszapc
    Jun 7, 2015 at 8:48
  • I have not solved it. I did not see a very convenient way of getting the debugging symbols, nor have I looked at the source code. I was hoping the developer @keith-marshall would see it :).
    – kcghost
    Jun 7, 2015 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.