smbpasswd (also pdbedit) segfault

John H Terpstra jht at samba.org
Tue Apr 22 23:47:39 GMT 2003


Folks,

I started 3.0.0 with no tdb files present. Using:

	passdb backend = tdbsam, guest

Ran:
	smbpasswd -a root

This is the result from smbpasswd comiled with -g:

(gdb) bt
#0  0x402ae8c9 in wait4 () from /lib/libc.so.6
#1  0x40329c90 in __DTOR_END__ () from /lib/libc.so.6
#2  0x40252034 in system () from /lib/libc.so.6
#3  0x080bc8c8 in smb_panic ()
#4  0x080a9db8 in unix_strlower ()
#5  0x080a3434 in tdbsam_getsampwnam (my_methods=0xfffffe00, user=0x815dc98,
    sname=0xfffffe00 <Address 0xfffffe00 out of bounds>)
    at passdb/pdb_tdb.c:589
#6  0x08094a9a in context_getsampwnam (context=0xfffffe00, sam_acct=0x815dc98,
    username=0x80fc640 "root") at passdb/pdb_interface.c:153
#7  0x08095c46 in pdb_getsampwnam (sam_acct=0xfffffe00,
    username=0xfffffe00 <Address 0xfffffe00 out of bounds>)
    at passdb/pdb_interface.c:619
#8  0x0809405d in local_password_change ()
#9  0x0805d3ca in password_change (remote_mach=0xbfffe3fc "(B!@\bì\v@\026",
    username=0x80fc640 "root",
    old_passwd=0xfffffe00 <Address 0xfffffe00 out of bounds>,
    new_pw=0xbfffeb50 "", local_flags=0) at utils/smbpasswd.c:307
#10 0x0805d7e2 in process_root (local_flags=135251520) at utils/smbpasswd.c:463
#11 0x0805db7c in main (argc=-512, argv=0xfffffe00) at utils/smbpasswd.c:601
#12 0x402294a2 in __libc_start_main () from /lib/libc.so.6

- John T.
-- 
John H Terpstra
Email: jht at samba.org


More information about the samba-technical mailing list