smbpasswd segmentation fault in Jul2 CVS Code

Matthew Keller keller57 at potsdam.edu
Fri Jul 2 15:46:26 GMT 1999


Luke Kenneth Casson Leighton wrote:
> 
> ok, sorry: forgot to ask, please recompile with -g -g -g first :-)
> Get_Pwnam() is useful to know where crash, args needed though!

	:) I should've been in debug anyhow... Dumb me. :) Here UR.

[bin]# gdb smbpasswd
GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
<snip>
This GDB was configured as "i386-redhat-linux"...
(gdb) set args -a -m taurus
(gdb) run
Starting program: /usr/local/samba/bin/smbpasswd -a -m taurus
Added interface ip=137.143.107.3 bcast=137.143.111.255
nmask=255.255.248.0
LSA Query Info Policy
Domain Member     - Domain: CASL SID:
S-1-5-21-4249405711-4100410612-2548434081
Domain Controller - Domain: CASL SID:
S-1-5-21-4249405711-4100410612-2548434081

Program received signal SIGSEGV, Segmentation fault.
chunk_free (ar_ptr=0x400ff420, p=0x80c18f8) at malloc.c:2897
malloc.c:2897: No such file or directory.
(gdb) where
#0  chunk_free (ar_ptr=0x400ff420, p=0x80c18f8) at malloc.c:2897
#1  0x400aa7c1 in __libc_free (mem=0x80c1900) at malloc.c:2872
#2  0x8095b50 in _Get_Pwnam (s=0x80b9fc0 "taurus$") at
lib/username.c:452
#3  0x8095bac in Get_Pwnam (user=0x80b9fc0 "taurus$", allow_change=1)
    at lib/username.c:555
#4  0x804ad5c in process_root (argc=4, argv=0xbffffdb8)
    at utils/smbpasswd.c:471
#5  0x804b207 in main (argc=4, argv=0xbffffdac) at utils/smbpasswd.c:734
(gdb)


-- 

          - Matthew Keller -
       Lead Programmer/Analyst
  Distributed Computing and Telemedia
State University of New York at Potsdam

Web: http://mattwork.potsdam.edu/
PGP: http://mattwork.potsdam.edu/crypto/


More information about the samba-ntdom mailing list