OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: macppc: ld.so/dlopen breakage?

From: Mark Kettenis (mark.kettenisxs4all.nl)
Date: Tue Aug 03 2010 - 04:05:16 CDT


> X-Authentication-Warning: roppongi.boxsoft.com: sidster set sender to sidsterboxsoft.com using -f
> Date: Tue, 3 Aug 2010 01:48:21 -0700
> From: patrick keshishian <sidsterboxsoft.com>
>
> Greetings,
>
> I'm moving this discussion [1] from misc over here as
> suggested by a openbsd developer.
>
> Summary: Noticed with a few snapshots that Xorg kept
> crashing. Per Matthieu Herrb I built xenocara with
> debug to get better info, but that made Xorg not crash.
> Next building firefox-3.6.8 from ports kept crashing.
>
> I wrote a small program that called dlopen(3)/dlsym(3)
> and it would exit with status code 20. Same sources
> compiled on a 4.7 i386 ran as expected. Matthieu pointed
> out that the problem was identified and fixed in a recent
> commit [2].
>
> I rebuild kernel and userland after an update (picking
> aforementioned commit). This solved neither ffox's nor
> my test app's issue.

The fix is in the compiler. Since ld.so gets built before the
compiler, you'll actually have to rebuild userland twice for it to
pick up the fix.