smbpasswd segmentation fault in Jul2 CVS Code

Luke Kenneth Casson Leighton lkcl at switchboard.net
Fri Jul 2 16:54:48 GMT 1999


ok, it doesn't really answer the question, but does anyone know why
Get_Pwnam() is calling free() on its arguments?

On Fri, 2 Jul 1999, Matthew Keller wrote:

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

<a href="mailto:lkcl at samba.org"   > Luke Kenneth Casson Leighton    </a>
<a href="http://www.cb1.com/~lkcl"> Samba and Network Development   </a>
<a href="http://samba.org"        > Samba Web site                  </a>
<a href="http://www.iss.net"      > Internet Security Systems, Inc. </a>



More information about the samba-ntdom mailing list