[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need -fno-stack-protector to prevent stack corruption
- To: <tech@openbsd.org>
- Subject: Need -fno-stack-protector to prevent stack corruption
- From: "Barry Scott" <bscott@ridgewaysystems.com>
- Date: Mon, 23 Jun 2003 11:29:09 +0100
- content-class: urn:content-classes:message
- Thread-Index: AcM5cjpSDvLT/jStSoS3OdMwyXLcQA==
- Thread-Topic: 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