[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need -fno-stack-protector to prevent stack corruption
- To: <tech_(_at_)_openbsd_(_dot_)_org>
- Subject: Re: Need -fno-stack-protector to prevent stack corruption
- From: "Barry Scott" <bscott_(_at_)_ridgewaysystems_(_dot_)_com>
- Date: Mon, 23 Jun 2003 21:10:42 +0100
- Thread-index: AcM5cjpSDvLT/jStSoS3OdMwyXLcQAAURQlg
- Thread-topic: Need -fno-stack-protector to prevent stack corruption
All you need to reproduce the problem is in:
http://www.barrys-emacs.org/stack-protector-problem.tar.gz
Barry
-----Original Message-----
From: Barry Scott
Sent: 23 June 2003 11:29
To: tech_(_at_)_openbsd_(_dot_)_org
Subject: 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
Visit your host, monkey.org