Bug 3937 - sigfault in libnss_wins.so.2
Summary: sigfault in libnss_wins.so.2
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 3.0.23
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Derrell Lipman
QA Contact: Samba QA Contact
: 3907 3943 (view as bug list)
Depends on:
Reported: 2006-07-15 13:06 UTC by Mikhail Kshevetskiy (dead mail account)
Modified: 2006-07-18 11:21 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kshevetskiy (dead mail account) 2006-07-15 13:06:43 UTC
I am really sorry to post this bug description here. This is definitely not a libsmbclient problem. Just there are no suitable component for it.


I use slackware-current(linux-, glibc-2.3.6, samba-3.0.23)
I use libnss_wins.so to be able resolve netbios names with gethostbyname().
After upgrading from samba-3.0.22 to samba-3.0.23 I get a sigfault in libnss_wins.so code.

Here is my /etc/nsswitch.conf (it's necessary to to use libnss_wins.so with  

# /etc/nsswitch.conf
passwd:         compat
group:          compat

hosts:          files wins dns
networks:       files

services:       files
protocols:      files
rpc:            files
ethers:         files
netmasks:       files
netgroup:       files
bootparams:     files

automount:      files
aliases:        files

Here is an examlpe of a problem (any application with gethostbyname() calls suit)
kl@laska:~$ ping any_netbios_name
Segmentation fault

Here is a gdb session log
root@laska:~# gdb /bin/ping
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) set args orry
(gdb) run

Starting program: /bin/ping orry
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xa7d38563 in toupper_w () from /usr/local/lib/libnss_wins.so.2
(gdb) bt
#0  0xa7d38563 in toupper_w () from /usr/local/lib/libnss_wins.so.2
#1  0xa7d3956b in toupper_ascii () from /usr/local/lib/libnss_wins.so.2
#2  0xa7d353ba in strupper_m () from /usr/local/lib/libnss_wins.so.2
#3  0xa7d3abf9 in set_global_myname () from /usr/local/lib/libnss_wins.so.2
#4  0xa7ce6ce0 in init_globals () from /usr/local/lib/libnss_wins.so.2
#5  0xa7cf114a in lp_load () from /usr/local/lib/libnss_wins.so.2
#6  0xa7ce63d0 in nss_wins_init () from /usr/local/lib/libnss_wins.so.2
#7  0xa7ce6413 in lookup_byname_backend () from /usr/local/lib/libnss_wins.so.2
#8  0xa7ce655a in _nss_wins_gethostbyname_r ()
   from /usr/local/lib/libnss_wins.so.2
#9  0xa7e79a14 in gethostbyname_r@@GLIBC_2.1.2 () from /lib/tls/libc.so.6
#10 0xa7e79374 in gethostbyname () from /lib/tls/libc.so.6
#11 0x08049403 in ?? ()
#12 0xafb2d7d8 in ?? ()
#13 0x08060c18 in optind ()
#14 0x0804d62c in _IO_stdin_used ()
#15 0x00000000 in ?? ()
Comment 1 Björn Jacke 2006-07-17 10:26:12 UTC
*** Bug 3907 has been marked as a duplicate of this bug. ***
Comment 2 Guenther Deschner 2006-07-17 17:20:11 UTC
Fixed in subversion, thanks for the report. 
Comment 3 Guenther Deschner 2006-07-18 11:21:37 UTC
*** Bug 3943 has been marked as a duplicate of this bug. ***