[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: |
Moritz Bunkus |
Subject: |
Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe |
Date: |
Mon, 26 Oct 2015 21:07:40 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hey,
thanks for the hint, that's a nice one. It happens when more than 16
instances of the tranlation_c class are emplace_back().
I'm attaching a smallish test case to be compiled with
i686-w64-mingw32.static-g++ -std=c++11 -O3 -fstack-protector-strong -o
crashtest.exe crashtest.cpp
As soon as you uncomment any of the commented-out lines the crash
happens.
The crash happens with i686 @ da82d07dbeca23087aa4351914cf4b890c1d3972
and at today's i686 with -O3. It does NOT crash with i686 and -O2. It
does NOT crash with x86_64, no matter which -O and which revision is
used.
I've tried to make it smaller, e.g. reduce the translation_c class to
contain only a single std::string – no crash no matter how many entries
are emplaced_back(). Another test was to use a std::vector<int> instead
of my own crash – again no crash no matter how many entries are
emplaced.
Kind regards,
mosu
crashtest.cpp
Description: Text Data
signature.asc
Description: PGP signature
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, (continued)
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Nagaev Boris, 2015/10/24
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Moritz Bunkus, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Tony Theodore, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Moritz Bunkus, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Tony Theodore, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Moritz Bunkus, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Tony Theodore, 2015/10/26
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Nagaev Boris, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Moritz Bunkus, 2015/10/25
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Tony Theodore, 2015/10/26
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe,
Moritz Bunkus <=
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Moritz Bunkus, 2015/10/26
- Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe, Nagaev Boris, 2015/10/30