Samba 2.2.0 smbpasswd segv

Rob Mason Rob_Mason at eur.3com.com
Fri Apr 20 15:53:10 GMT 2001


Further information:
It appears to be the addition of --with-spinloocks in the configure that causes
the problem.
Platform is Linux (RH6.2), ran on kernels 2.2.14, 2.2.19 and 2.4.3
gcc ver is 2.95.2




"Rob Mason" <Rob_Mason at eur.3com.com> on 04/20/2001 02:49:18 PM

Sent by:  "Rob Mason" <Rob_Mason at eur.3com.com>


To:   samba at lists.samba.org
cc:    (Rob Mason/IE/3Com)
Subject:  Samba 2.2.0 smbpasswd segv






When I build 2.2.0 with the following configuration:
/configure --target=i586 --with-pam --with-vfs --with-spinlocks
--with-acl-support
--with-quotas --with-msdfs --with-configdir=/RamDisk
I consistently get a segmentation fault from a call to smbpasswd -j DOMAIN.

When I rebuild with a simplified config:
./configure --target=i586 --with-quotas --with-configdir=/RamDisk
all is fine

Below is debug 10 output and stack trace.
If I get time this afternoon, I'll try to re-add the config options one by one
to see where problem occurs.

Debug 10 output:
/smbpasswd -D10 -j ERRIGAL
added interface ip=192.168.100.194 bcast=192.168.100.255 nmask=255.255.255.0
do_reseed: got 40 bytes from /dev/urandom.
resolve_lmhosts: Attempting lmhosts lookup for name ERRIGAL<0x1b>
startlmhosts: Can't open lmhosts file /RamDisk/lmhosts. Error was No such file
or directory
resolve_wins: Attempting wins lookup for name ERRIGAL<0x1b>
wins_srv_count: WINS status: 0 servers.
resolve_wins: WINS server resolution selected and no WINS servers listed.
name_resolve_bcast: Attempting broadcast lookup for name ERRIGAL<0x1b>
bind succeeded on port 0
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 1
socket option SO_BROADCAST = 1
Could not test socket option TCP_NODELAY.
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 65535
socket option SO_RCVBUF = 65535
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
Sending a packet of len 50 to (192.168.100.255) on port 137
read_udp_socket: lastip 192.168.100.113 lastport 137 read: 62
parse_nmb: packet id = 25091
Received a packet of len 62 from (192.168.100.113) port 137
nmb packet from 192.168.100.113(137) header: id=25091 opcode=Query(0)
response=Yes
    header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=ERRIGAL<1b> rr_type=32 rr_class=1 ttl=300000
    answers   0 char ....dq   hex 0000C0A86471
Got a positive name query response from 192.168.100.113 ( 192.168.100.113 )
Segmentation fault (core dumped)

Core backtrace:
[root at cheops bin]# gdb ./smbpasswd core
GNU gdb 19991004
Copyright 1998 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 "i386-redhat-linux"...
Core was generated by `./smbpasswd -D10 -j ERRIGAL'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
#0  0x80afcd9 in tdb_clear_spinlocks ()
(gdb) bt
#0  0x80afcd9 in tdb_clear_spinlocks ()
#1  0x80af3e6 in tdb_open ()
#2  0x805e63c in receive_unexpected ()
#3  0x805c027 in receive_nmb_packet ()
#4  0x80594b7 in name_query ()
#5  0x8059c78 in name_resolve_bcast ()
#6  0x805a2b2 in internal_resolve_name ()
#7  0x805a5f8 in get_dc_list ()
#8  0x808f3e2 in change_trust_account_password ()
#9  0x804ada0 in join_domain ()
#10 0x804b1eb in process_root ()
#11 0x804b7bf in main ()
#12 0x400819cb in __libc_start_main (main=0x804b67c <main>, argc=4,
    argv=0xbffffa44, init=0x8049fd4 <_init>, fini=0x80b0454 <_fini>,
    rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffa3c)
    at ../sysdeps/generic/libc-start.c:92
(gdb)



--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba








More information about the samba mailing list