mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07


From: Nagaev Boris
Subject: Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe
Date: Fri, 23 Oct 2015 23:00:41 +0300

On Thu, Oct 22, 2015 at 10:41 AM, Moritz Bunkus <address@hidden> wrote:
> Hey,
>
> since the following commit I'm experiencing that my 32bit apps compiled
> with i686-w64-mingw32.static crash immediately on start if they've been
> compiled with -O3:
>
> da82d07dbeca23087aa4351914cf4b890c1d3972 gcc isl: update
>
> As I compile with -fstack-protector-strong I get the nice message "***
> stack smashing detected ***" – before any of my code has any chance of
> running, BTW.
>
> The apps work nicely when compilew ith -O2 instead of -O3.  64bit apps
> compiled x86_64-w64-mingw32.static work with both -O2 and -O3.
>
> I've spent yesterday bisecting this issue to exactly da82d07. The issue
> is still present on HEAD from three days ago which I'm currently using,
> ea6c694a22452a2c045c2c6e407d684a284418ba.
>
> Summarizing:
>
> * x86_64-w64-mingw32.static is OK with -O2 and -O3 up to current HEAD
>   (at least ea6c694)
>
> * i686-w64-mingw32.static is OK with -O3 only before da82d07, afterwards
>   it crashes immediately with a smashed stack
>
> * i686-w64-mingw32.static fails with -O3 beginning with da82d07 but is
>   OK with -O2 up to current HEAD (at least ea6c694)
>
> Any ideas what the issue might be here, what more I could do in order to
> pin this down or where to file bug reports?
>
> Thanks.
>
> Kind regards,
> mosu

Hello, Moritz

I can't reproduce this bug. I'm compiling MXE's lua.exe with -O3 and
it works perfectly without a crash in wine and in Windows XP. Can you
provide the source of the crashing application and instructions on how
to build it to get the crash, please?

-- 


Best regards,
Boris Nagaev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]