> -----Original Message-----
> From: Kai Tietz [mailto:[email protected]]
> Sent: Wednesday, January 16, 2013 5:50 PM
> To: [email protected]
> Subject: Re: [Mingw-w64-public] abort() crashing for -Wl,-
> subsystem,windows
> 
> Hi,
> 
> I just tested your report with my toolchain - I am using 4.8 with mingw-w64's
> trunk version- and I have to admit that I don't see any of those issues on my
> Windows 8 box.
>
> So first question is, what compiler-version, what mingw-w64 version you are
> using?

Sorry, should have included this information in the first place. I can 
reproduce this with different toolchains based on gcc 4.7 (e.g. Mingw-builds 
x32-4.7.2-release-posix-sjlj-rev1.7z, Mingw-builds  
x64-4.7.2-release-posix-sjlj-rev1.7z, 
i686-w64-mingw32-gcc-4.7.2-release-win32_rubenvb.7z). I now also tried 
i686-w64-mingw32-gcc-4.8-unstable-win32_rubenvb.7z and actually a stone-age gcc 
4.4.0 from MinGW.org ... same behavior. 

Maybe it's really something on my machine (Windows 7 64 bit, though I just 
reinstalled it two weeks ago) ... Pretty mysterious.

> 
> Kai
> 
> 
> 2013/1/16 Koehne Kai <[email protected]>:
> > Hi,
> >
> > Take following program:
> >
> > ---
> > #include <stdlib.h>
> >
> > int main(int, char**)
> > {
> >     abort();
> >     return 0;
> > }
> > ---
> >
> > Compiling it with "g++ -o test.exe test.cpp" and running it will print 
> > (both in
> a pop up and in a dialog):
> >
> > "
> > This application has requested the Runtime to terminate it in an unusual
> way.
> > Please contact the application's support team for more information.
> > "
> >
> > However, if you link with "-Wl,-subsystem,windows" , after showing the
> > above in a dialog the application will crash (extra dialog "test.exe
> > has stopped working"), and the windows debugger log contains
> >
> > [1464] Invalid parameter passed to C runtime function.
> >
> >
> > So it seems that somehow things go wrong in the crash handler. Any idea
> where and whether it has been reported before? Especially the "Invalid
> parameter' warning is somewhat misleading, and sounds like a bug ...
> >
> >
> >
> > Regards
> >
> > Kai
> >
> > PS: Googling for it turns out a number of similar reports, e.g.
> > http://stackoverflow.com/questions/13893122/q-assert-has-different-beh
> > avior-when-my-project-is-built-in-visual-studio-vs-qt ,
> >
> > ----------------------------------------------------------------------
> > -------- Master Java SE, Java EE, Eclipse, Spring, Hibernate,
> > JavaScript, jQuery and much more. Keep your Java skills current with
> > LearnJavaNow -
> > 200+ hours of step-by-step video tutorials by Java experts.
> > SALE $49.99 this month only -- learn more at:
> > http://p.sf.net/sfu/learnmore_122612
> > _______________________________________________
> > Mingw-w64-public mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
> 
> 
> 
> --
> |  (\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination
> 
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and
> much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to