Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 2 Oct 2002 12:28:59 -0700
From: Steve Beattie <steve@...ex.net>
To: xvendor@...ts.openwall.com
Subject: Re: stackguard?

On Wed, Oct 02, 2002 at 10:13:30PM +0300, Alexander Bokovoy wrote:
> On Wed, Oct 02, 2002 at 03:11:00PM -0300, Andreas Hasenack wrote:
> > Em Wed, Oct 02, 2002 at 10:20:03AM +0300, Alexander Bokovoy escreveu:
> > > > PHP Warning:  Unable to load dynamic library '/usr/lib/php4/imap.so'
> > > > - /usr/lib/php4/imap.so: undefined symbol : __canary_death_handler
> > > > in Unknown on line 0
> > > > 
> > > > I'm not compiling php nor apache with stackguard.
> > > > Never had this error with php/apache/imap before, but I recently completely
> > > > redid our php package, perhaps this error was somehow "clouded" before.
> > > Looks like some -Wl,-rpath -Wl,/path/to/libstackguard.so is missing during
> > > imap.so compilation...
> > 
> > There is no libstackguard. One solution would be to compile php (and apache) with
> > stackguard too.
> But the symbol itself is provided by something. I can see its definition in
> Immunix's glibc/stackguard patch. Do you have glibc compiled with it as
> well?

Alas, the symbol provided in glibc is visible internally to glibc only.
The __canary_death_handler is also provided by the compiler in crtbegin.o
and libgcc.a, but those are not commonly linked in when linking a shared
library. 

Andreas, you'll either need to compile php and apache with stackguard,
or link in a version of canary.o into imap.so.

-- 
Steve Beattie                               Don't trust programmers?
<steve@...ex.net>                         Complete StackGuard distro at
http://NxNW.org/~steve/                            immunix.org
http://www.personaltelco.net -- overthrowing QWest, one block at a time.

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Your e-mail address:

Please check out the xvendor mailing list charter.

Powered by Openwall GNU/*/Linux - Powered by OpenVZ