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

Re: Bug#164766: Bug #164766 C3 no cmov fix does not work



At Sun, 26 Jan 2003 13:23:29 +0900,
GOTO Masanori wrote:
> At 25 Jan 2003 17:10:06 +0100,
> Christoph Martin wrote:
> > [1  <text/plain (quoted-printable)>]
> > Am Sam, 2003-01-25 um 15.47 schrieb Scott Ashcroft:
> > > # ldd `which ssh`
> > > libutil.so.1 => /lib/libutil.so.1 (0x40016000)
> > > libz.so.1 => /lib/libz.so.1 (0x4001a000)
> > > libnsl.so.1 => /lib/libnsl.so.1 (0x40028000)
> > > libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x4003b000)
> > > libc.so.6 => /lib/libc.so.6 (0x4012b000)
> > > libdl.so.2 => /lib/libdl.so.2 (0x4023b000)
> > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> > > 
> > > # ldconfig -p | grep libcrypto.so.0.9.7
> > > libcrypto.so.0.9.7 (libc6, hwcap: 0x8000000008000) => 
> > > /usr/lib/i686/cmov/libcrypto.so.0.9.7
> > > libcrypto.so.0.9.7 (libc6, hwcap: 0x4000000000000) => 
> > > /usr/lib/i586/libcrypto.so.0.9.7
> > > libcrypto.so.0.9.7 (libc6, hwcap: 0x2000000000000) => 
> > > /usr/lib/i486/libcrypto.so.0.9.7
> > > libcrypto.so.0.9.7 (libc6) => /usr/lib/libcrypto.so.0.9.7
> > > 
> > > Bug in ld.so (libc6), incorrect building of libssl or just my lack of 
> > > understanding?
> > 
> > I would say, it is a bug in libc6. If you don't have cmov the linker
> > should not load libraries in i686/cmov
> 
> -10 introduced including i686/cmov to search dir.  However it seems it
> lacks excluding this dir on C3.  Yes, it's libc6 problem.
> I investigate it for -11.
> 
> I wonder "i586/mmx" has really worked for a long time...

I put glibc_2.3.1-11 test packages with this i686/cmov experimental
fix at:

	http://people.debian.org/~gotom/

Could you test them and report me whether it works or not.
And please tell me the result of below checks:

  (1)	# ldd `which ssh`
  (2)	# LD_DEBUG=libs ldd `which ssh`

I guess the result of (2) about libcrypt.so becomes for example:

01473:  find library=libcrypto.so.0.9.6; searching
01473:   search cache=/etc/ld.so.cache
01473:  lib->hwcap(u)=40000
01473:  lib->hwcap(l)=8000
01473:  *hwcap=8001bf					<- arch dependent
01473:  *hwcap(u)=0
01473:  *hwcap(l)=8001bf
01473:  platform(u)=40000
01473:  platform(l)=0
01473:  _DL_HWCAP_PLATFORM(u)=f0000
01473:  _DL_HWCAP_PLATFORM(l)=0
01473:    trying file=/usr/lib/libcrypto.so.0.9.6	<- not cmov dir

I concern that my dynamic load fix patch causes minor architecture not
to load libraries, because it changes hwcap checking behavior.  I
already check it's ok on i386, however, -11 may cause another problem,
but I would like to know such platform (sid is experimental distro, as
you know :-). Yeah, but I think I do right fix.

Regards,
-- gotom



Reply to: