smbpasswd segmentation fault in Jul2 CVS Code

Matthew Keller keller57 at
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 with Linux/x86 hardware watchpoint and FPU support
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= bcast=
LSA Query Info Policy
Domain Member     - Domain: CASL SID:
Domain Controller - Domain: CASL SID:

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
#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


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


More information about the samba-ntdom mailing list