|
From: Gwenole B. <gb...@di...> - 2004-07-10 16:06:18
|
Hi, >> Could you tell me more about your system? I am using Mandrakelinux = 9.1 >> with a kernel 2.4.21 + glibc 2.3.1. Can you send the output of = running >> /lib/libc.so.6 ? > > Debian testing, kernel 2.4.22 + glibc 2.3.2, output is: OK, your glibc looks pretty standard with no newer extensions like tls=20= support. >> What can you get out of: >> <http://gwenole.beauchesne.free.fr/sheepshaver/paranoia.cpp> ? > > It segfaults, specifically that "set_r2(0xaffebad5);" line again. What does ldd a.out show? If it is linked against libpthread, it will=20 segfault since r2 is reserved by the ABI as a thread pointer. glibc=20 implementation honours that, unlike our sheepthreads. A simple "gcc paranoia.cpp" should not cause a dependency on=20 libpthread. If it happens, please send me the output of "gcc -v" to=20 know how Debian people configured it. Can you also try "gcc -ffixed-r2 paranoia.cpp" ? Thanks, Gwenol=E9.= |