Date: Wed, 23 Feb 2000 09:35:47 +0100 From: Martin Cracauer <cracauer@cons.org> To: jdp@FreeBSD.ORG Cc: jkh@FreeBSD.ORG, current@FreeBSD.ORG, dillon@apollo.backplane.com Subject: Re: extern variables in shared libraries broken (ld.so or mmap bug) Message-ID: <20000223093546.B4666@cons.org> In-Reply-To: <20000222100006.A13742@cons.org>; from cracauer@cons.org on Tue, Feb 22, 2000 at 10:00:06AM %2B0100 References: <20000222100006.A13742@cons.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Updates on the "moving" symbols problem: The problem with gdb not finding out the type of tzname[] is caused by the shared libs not being built with -g. It probably doesn't have to do with the problem. I appended a tarfile with some test cases. Case 1-3 show different occasions of the error, all dump core when linked dynamically and work fine with -static. 'shlib3.gdb' fed into gdb will show that the symbol address is a moving target. Case 4 is an attempt to reproduce the error I get with tzname[] from libc.so with a newly constructed shared library and a similar symbol. However, this case works fine and I don't understand the difference so far. Set LD_LIBRARY_PATH=`pwd` to run this test case. I have updated two machines to -current from yesterday, no change in the problem. As I suspect the MMU hardwware may influence the problem, here are the CPU ids from the machine I can reproduce the error on (that doesn't mean I have -current machines where the error does not show up): CPU: Pentium Pro (199.31-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV> CPU: Pentium/P54C (99.95-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> Let me repeat that this looks like a serious memory mapping bug and that we must not ship 4.0 until we gain more knowledge about it. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/ Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 [-- Attachment #2 --] 8 =]IZ=;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