[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#230281: libc6: Various programs segfault in __ns_samename in libresolv.so.2



Daniel Jacobowitz <dan@debian.org> writes:

> Please tell us more about your system.

I'm running Linux 2.4.23. Here's /proc/cpuinfo:

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 1800+
stepping        : 1
cpu MHz         : 1535.222
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 3060.53

My net connection is via a cable modem on eth0, and I get my IP
address etc. from DHCP. I haven't touched /etc/dhclient.conf, which
seems to only contain comments. Here are my resolv.conf and
nsswitch.conf:

------------------------------------------------------------------------
search pp.htv.fi
nameserver 213.243.153.136
nameserver 213.243.153.170
------------------------------------------------------------------------
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
------------------------------------------------------------------------

> Verify that the right copies of all nss libraries are loaded?

(I'm not sure I fully understand that question.) The nss libraries
loaded by my test program seem to be /lib/libnss_files.so.2 and
/lib/libnss_dns.so.2. When in run "finger @qwerty" in gdb, "info
shared" gives the following output:

>From        To          Syms Read   Shared Object Library
0x4003ebc0  0x40134278  Yes         /lib/libc.so.6
0x40000be0  0x40011d5f  Yes         /lib/ld-linux.so.2
0x4015c230  0x401612b0  Yes         /lib/libnss_compat.so.2
0x40166c10  0x40172ac0  Yes         /lib/libnsl.so.1
0x40179c00  0x4017f4c0  Yes         /lib/libnss_nis.so.2
0x40182d70  0x40188e10  Yes         /lib/libnss_files.so.2
0x4018b328  0x4018d4a4  Yes         /lib/libnss_db.so.2
0x4019b968  0x4021f328  Yes         /usr/lib/libdb3.so.3
0x4022ce90  0x4022ee20  Yes         /lib/libnss_dns.so.2
0x40232980  0x4023ce50  Yes         /lib/libresolv.so.2

Here are my /lib/libnss* files:

vaino:/tmp# ls -l /lib/libnss*
-rw-r--r--    1 root     root        27412 2003-11-05 21:17 /lib/libnss_compat-2.3.2.so
lrwxrwxrwx    1 root     root           22 2003-11-26 22:23 /lib/libnss_compat.so.2 -> libnss_compat-2.3.2.so
-rw-r--r--    1 root     root        15316 2003-02-24 06:32 /lib/libnss_db-2.2.so
lrwxrwxrwx    1 root     root           16 2003-03-21 19:29 /lib/libnss_db.so.2 -> libnss_db-2.2.so
-rw-r--r--    1 root     root        13896 2003-11-05 21:17 /lib/libnss_dns-2.3.2.so
lrwxrwxrwx    1 root     root           19 2003-11-26 22:23 /lib/libnss_dns.so.2 -> libnss_dns-2.3.2.so
-rw-r--r--    1 root     root        34436 2003-11-05 21:17 /lib/libnss_files-2.3.2.so
lrwxrwxrwx    1 root     root           21 2003-11-26 22:23 /lib/libnss_files.so.2 -> libnss_files-2.3.2.so
-rw-r--r--    1 root     root        14232 2003-11-05 21:17 /lib/libnss_hesiod-2.3.2.so
lrwxrwxrwx    1 root     root           22 2003-11-26 22:23 /lib/libnss_hesiod.so.2 -> libnss_hesiod-2.3.2.so
-rw-r--r--    1 root     root        32304 2003-11-05 21:17 /lib/libnss_nis-2.3.2.so
-rw-r--r--    1 root     root        39844 2003-11-05 21:17 /lib/libnss_nisplus-2.3.2.so
lrwxrwxrwx    1 root     root           23 2003-11-26 22:23 /lib/libnss_nisplus.so.2 -> libnss_nisplus-2.3.2.so
lrwxrwxrwx    1 root     root           19 2003-11-26 22:23 /lib/libnss_nis.so.2 -> libnss_nis-2.3.2.so


One thing that I have been toying around with recently is locales: my
/etc/environment now has the setting LANG=en_IE@euro (since I want
messages in English but also to use the euro sign). However, setting
LANG=C and rerunning the test program still produces the segmentation
fault.

-- 
Jouni K Seppanen



Reply to: