[Bug target/28197] longjmp and alloca cause bus error at -O0
geoffk at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 25 18:50:00 GMT 2007
------- Comment #3 from geoffk at gcc dot gnu dot org 2007-04-25 19:49 -------
I'm fairly sure this is in fact a bug in GCC. The problem is that in a routine
which uses setjmp, alloca() must ensure that the previous stack backchain is
preserved, which means it needs to allocate enough space for its allocation,
the linkage area, *and* arguments for any called function. It's not allocating
enough space for called function arguments. In the routine given, it's only
allocating 32 bytes where it actually needs to allocate 64.
--
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28197
More information about the Gcc-bugs
mailing list