[lkml]   [2002]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject2.4.21-pre on SMP-HT exports bad AT_PLATFORM
Hi all...

Continuing with the glibc-2.3.1 saga, I have tested 2.4.21-pre2. It also
fails. glibc can not get a correct AT_PLATFORM when the kernel is run
on an hyperthreaded smp box.

I have run this on the box (dual P4@1.8GHz). Highmem does not matter. Just
HT matters. If I sun the SMP kernel with HT active, it glibc fails to detect
AT_PLATFORM. If I disable HT, from the bios or with 'noht' boot option, the
platform is correctly detected. Something does not follow the rules in
binfmt_elf.c when there are siblings (not real CPUs) in the game. Or there
is gcc-3.2.1 to blame.

Test script:

#log=$(uname -r).txt

exec > $log 2>&1

echo ===== uname -a
uname -a
echo ===== uname -m
uname -m
echo ===== ./
echo ===== LD_LIBRARY_PATH="" LD_DEBUG=libs /bin/true
rm -f /etc/
LD_LIBRARY_PATH="" LD_DEBUG=libs /bin/true
ldconfig is a modified one to print AT_PLATFORM, by Gwenole@mandrakesoft. The
loader used for the /bin/true test is the standard one.

Results for 2.4.21-pre2 are attached. All are smp kernels, 'ht' means ht active,
'noht-bios' is ht diabled in the bios and 'noht-soft' is ht disabled with 'noht'.

Any ideas ?

J.A. Magallon <> \ Software is like sex: \ It's better when it's free
Mandrake Linux release 9.1 (Cooker) for i586
Linux 2.4.21-pre2-jam1 (gcc 3.2.1 (Mandrake Linux 9.1 3.2.1-2mdk))
[unhandled content-type:application/x-bzip][unhandled content-type:application/x-bzip][unhandled content-type:application/x-bzip]
 \ /
  Last update: 2005-03-22 13:31    [W:0.522 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog