[Top][All Lists]

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

[Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe

From: Moritz Bunkus
Subject: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe
Date: Thu, 22 Oct 2015 09:41:20 +0200
User-agent: Mutt/1.5.24 (2015-08-30)


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,


* 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?


Kind regards,

Attachment: signature.asc
Description: PGP signature

reply via email to

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