smbpasswd segmentation fault in Jul2 CVS Code

Luke Kenneth Casson Leighton lkcl at switchboard.net
Fri Jul 2 15:24:00 GMT 1999


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

On Fri, 2 Jul 1999, Matthew Keller wrote:

> 
> [root at penguin 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 ()
> #3  0x8095bac in Get_Pwnam ()
> #4  0x804ad5c in process_root ()
> #5  0x804b207 in main ()
> (gdb)
> 
> 
> Luke Kenneth Casson Leighton wrote:
> > 
> > matthew,
> > 
> > please run: gdb smbpasswd
> > set args -a -m HT01
> > run
> > do a where for me when it comes up with crash.
> 
> > >
> > > I have the same result, with a bit more information. Please note that
> > > the IP, BCAST and NMASK are 'x'd out to protect the computer, but were
> > > correct. This is a Redhat 5.2 box on a 400mHz Pentium II. The machine
> > > account (taurus$) was properly entered into passwd and shadow. I am
> > > running the latest CVS as of July 2 at 10:00 EST.
> > >
> > > [bin]# smbpasswd -a -m taurus
> > > Added interface ip=x.x.x.x bcast=x.x.x.x nmask=x.x.x.x
> > > 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
> > > Segmentation fault (core dumped)
> > >
> > > >From SMB.CONF
> > > [1999/07/02 10:25:03, 2] smbd/server.c:main(739)
> > >   Changed root to /
> > > [1999/07/02 10:25:03, 2] lib/access.c:check_access(232)
> > >   Allowed connection from taurus (x.x.x.x)
> > > [1999/07/02 10:25:03, 2] smbd/reply.c:reply_special(143)
> > >   netbios connect: name1=PENGUIN          name2=PENGUIN
> 
> 
> -- 
> 
>           - 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