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

Need -fno-stack-protector to prevent stack corruption



We're just got to the bottom of a stack corruption in a python extension
written in C++.

I do not know the exact nature of the corruption but adding
-fno-stack-protector fixes the crash.
What we see is that the value returned from new is corrupted. The value
of this at the end of
the c'tor was reasonable.

I can supply source code and test scripts that demonstrates the problem
against
OpenBSD 3.3 Release.


Barry