MingW-related setup.exe crash w/ DEP enabled
Wed Mar 17 15:09:00 GMT 2010
and especially Hi Dave,
At Red Hat, we're just testing our new rhsetup.exe tool which is
supposed to be used to download the Red Hat 1.8.x release from the Red
Hat server. It's the same code base as setup.exe with just a few
tweaks, like a change where to get the mirrors list and a few minor GUI
We've just stumbled over a problem which I also have when building the
net distro setup. If DEP is enabled on the Windows box, rhsetup as well
as any of my self-built net setup executables crash immediately with a
SEGV, supposedly with a BEX error, which apparently can mean two things,
either a buffer overflow or a DEP exception.
Switching off DEP helps, but that's not exactly a generic solution.
Strange enough, the same does not occur with the net setup built by cgf
for some reason. Chris, do you use an older MingW by any chance?
Since the net setup is upx compressed and rhsetup isn't, I thought it's
time to believe in magic and try to "fix" the problem by compressing
the executable. To my surprise it didn't work:
Ultimate Packer for eXecutables
Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007
UPX 3.01 Markus Oberhumer, Laszlo Molnar & John Reiser Jul 31st 2007
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: rhsetup.exe: CantPackException: TLS callbacks are not supported
Packed 1 file: 0 ok, 1 error.
I searched the web and immediately found a message from you, Dave,
on the MingW list:
It looks like the latest MingW code not only disables compressing
with upx, but also crashes the executable when DEP is enabled for
Does anybody know what's going on here or has a hint how to avoid that?
Here's a shot in the dark. Are the latest MingW releases built with
gcc-4, and is it possible that this collides with the "gcc-3
-mno-cygwin" code of setup?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
More information about the Cygwin-apps