Skip site navigation (1)Skip section navigation (2)
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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