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: Tony Theodore
Subject: Re: [Mingw-cross-env-list] stack smashing on i686 with -O3 since da82d07dbe
Date: Mon, 26 Oct 2015 17:33:21 +1100

> On 25 Oct 2015, at 20:43, Moritz Bunkus <address@hidden> wrote:
> 
> I'm not exactly sure what to do. As the program doesn't even reach main
> (gdb, put breakpoint on main, run, crash happens before breakpoint is
> reached) it may be a problem with static initialization, so I could… I
> don't know… uncomment all those static vars and leave them only default
> initialized or something like that.

Sounds like that could be it, I stumbled across the following about
undefined order of initialisation:

http://llvm.org/docs/CodingStandards.html#do-not-use-static-constructors
http://yosefk.com/c++fqa/ctors.html#fqa-10.12

Cheers,

Tony




reply via email to

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