Hi,
> This used to be a problem in older AOLserver 4.0, where the IP address
> you're using was missing reverse DNS ... but yours is failing in
> NsInitConf() ... are you sure you're loading the correct libnsd.so?
I'd
> check your LD_LIBRARY_PATH and be extra-careful.
I checked everything and did the same at the developer and production
server. I thought that the problem were with the glibc library because
my production server is Red Hat 7.2 with glibc 2.2.4 and developer
server (where AOLserver 4.0.10+ Hoard 2.1.2d works) - Red Hat 7.3 with
glibc 2.2.5.
So I upgraded glibc to 2.2.5 but the problem still exists.
I built the AOLserver and TCL with the USE_THREAD_ALLOC=0 to see if it
helps. But I still got the error "Ns_TlsGet: invalid key: 0: should be
between 1 and 100".
I use the strace in production and develop server to make some debug.
The only difference I can see is that at the production server "old_map"
is used while at the develop server "mmap2".
At the production server I have (the fragment below):
read(33, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \304\1"...,
1024) = 1024
fstat64(33, {st_mode=S_IFREG|0755, st_size=5737218, ...}) = 0
old_mmap(NULL, 1267240, PROT_READ|PROT_EXEC, MAP_PRIVATE, 33, 0) =
0x40178000
mprotect(0x402a4000, 38440, PROT_NONE) = 0
old_mmap(0x402a4000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
33, 0x12b000) = 0x402a4000
old_mmap(0x402aa000, 13864, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x402aa000
close(33) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x402ae000
munmap(0x40139000, 26394) = 0
getrlimit(0x3, 0xbffff644) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) =
0
getpid() = 16030
rt_sigaction(SIGRT_0, {0x4002efc4, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x4002e39c, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x4002f050, [], 0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [32], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff64c, 34, (nil), 0}) = 0
open("/proc/cpuinfo", O_RDONLY) = 33
read(33, "processor\t: 0\nvendor_id\t: Genuin"..., 32768) = 766
close(33) = 0
old_mmap(0x10000000, 417792, PROT_READ|PROT_WRITE,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x10000000
brk(0) = 0x804c6a8
brk(0x804f6a8) = 0x804f6a8
brk(0x8050000) = 0x8050000
brk(0x8051000) = 0x8051000
brk(0x8053000) = 0x8053000
brk(0x8057000) = 0x8057000
write(2, "Ns_TlsGet: invalid key: 0: shoul"..., 54Ns_TlsGet: invalid
key: 0: should be between 1 and 100) = 54
write(2, "\n", 1
) = 1
And at the develop server:
open("/lib/i686/libc.so.6", O_RDONLY) = 30
read(30, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`u\1B4\0"...,
1024) = 1024
fstat64(30, {st_mode=S_IFREG|0755, st_size=1401027, ...}) = 0
old_mmap(0x42000000, 1264928, PROT_READ|PROT_EXEC, MAP_PRIVATE, 30, 0) =
0x42000000
mprotect(0x4212c000, 36128, PROT_NONE) = 0
old_mmap(0x4212c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
30, 0x12c000) = 0x4212c000
old_mmap(0x42131000, 15648, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
close(30) = 0
munmap(0x40130000, 29511) = 0
getrlimit(0x3, 0xbffff7e4) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) =
0
getpid() = 4500
rt_sigaction(SIGRTMIN, {0x4002a250, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x40029500, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x4002a2e0, [], 0x4000000}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff59c, 31, (nil), 0}) = 0
mmap2(0x10000000, 417792, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1, 0) = 0x10000000
brk(0) = 0x804bdc8
brk(0x804edc8) = 0x804edc8
brk(0x804f000) = 0x804f000
open("/proc/cpuinfo", O_RDONLY) = 30
read(30, "processor\t: 0\nvendor_id\t: Genuin"..., 32768) = 377
close(30) = 0
brk(0x8050000) = 0x8050000
brk(0x8052000) = 0x8052000
brk(0x8054000) = 0x8054000
brk(0x8058000) = 0x8058000
brk(0x805c000) = 0x805c000
brk(0x8060000) = 0x8060000
time(NULL) = 1181032899
time([1181032899]) = 1181032899
getpid() = 4500
Any idea?
Cheers
Agnieszka Kukalowicz
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.