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

Re: 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