backtrace of smbpasswd segfault
Volker Lendecke
Volker.Lendecke at SerNet.DE
Wed Jul 7 13:44:34 GMT 1999
-----BEGIN PGP SIGNED MESSAGE-----
Ok, here it is:
root at server:/usr/local/samba-pdc/bin> gdb smbpasswd
GDB is free software and you are welcome to 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.
GDB 4.16.patched (i486-unknown-linux --target i486-linux),
Copyright 1996 Free Software Foundation, Inc...
(gdb) set args -a -n vlendec
(gdb) run
Starting program: /usr/local/samba-pdc/bin/smbpasswd -a -n vlendec
Program received signal SIGSEGV, Segmentation fault.
0x805cb25 in add_smbfilepwd_entry (newpwd=0x0) at passdb/smbpass.c:307
307 new_entry_length = strlen(newpwd->unix_name) + 1 + 15 + 1 + 32 + 1 + 32 + 1 + NEW_PW_FORMAT_SPACE_PADDED_LEN + 1 + 13 + 2;
(gdb) bt
#0 0x805cb25 in add_smbfilepwd_entry (newpwd=0x0) at passdb/smbpass.c:307
#1 0x805baf9 in add_smbpwd_entry (newpwd=0xbfffefdc) at passdb/passdb.c:211
#2 0x805e025 in add_new_user (user_name=0xbffffb12 "vlendec", uid=502,
acb_info=20,
new_p16=0x80c3208 ",Và¼:\034B6Ô\bæ±\005t\030dòMÿ\210¡ô\021«{ÿ\025^u\232ß\035", new_nt_p16=0x80c3218 "òMÿ\210¡ô\021«{ÿ\025^u\232ß\035")
at passdb/smbpasschange.c:49
#3 0x805e12b in local_password_change (user_name=0xbffffb12 "vlendec",
add_user=1, acb_info=20, acb_mask=20, new_passwd=0x80a1cb3 "NO PASSWORD",
err_str=0xbffff4e4 "", err_str_len=1024, msg_str=0xbffff0e4 "",
msg_str_len=1024) at passdb/smbpasschange.c:127
#4 0x804a89f in password_change (remote_machine=0x0,
user_name=0xbffffb12 "vlendec", old_passwd=0x0,
new_passwd=0x80a1cb3 "NO PASSWORD", add_user=1, acb_info=20, acb_mask=20)
at utils/smbpasswd.c:262
#5 0x804ae5d in process_root (argc=4, argv=0xbffff99c)
at utils/smbpasswd.c:559
#6 0x804b267 in main (argc=4, argv=0xbffff990) at utils/smbpasswd.c:734
#7 0x804a34e in _start ()
(gdb) l
302 Error was %s\n", newpwd->unix_name, pfile, strerror(errno)));
303 endsmbfilepwent(fp);
304 return False;
305 }
306
307 new_entry_length = strlen(newpwd->unix_name) + 1 + 15 + 1 + 32 + 1 + 32 + 1 + NEW_PW_FORMAT_SPACE_PADDED_LEN + 1 + 13 + 2;
308
309 if((new_entry = (char *)malloc( new_entry_length )) == NULL) {
310 DEBUG(0, ("add_smbfilepwd_entry(malloc): Failed to add entry for user %s to file %s. \
311 Error was %s\n", newpwd->unix_name, pfile, strerror(errno)));
(gdb) q
The program is running. Quit anyway (and kill it)? (y or n) y
root at server:/usr/local/samba-pdc/bin>
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBN4NZtD/9BWnmOc5FAQG9FwP/Zr9J6uA+o5IAqVUqAND65vNu9w9I7TWG
CUeqjTEKs5OHUAN8OV77z9CErn3HDhNJPYVT+AO0nJokJKrdV3qVFugTuf4yZnNv
kFcAAsYIbCMFOayQDb8Z8YZ0+tLv1QsvSApSvcf9qlnnluH+styqVdt1WTigNqMt
n1g3nLrackM=
=8C+m
-----END PGP SIGNATURE-----
More information about the samba-ntdom
mailing list