Bug found in smbclient

David Collier-Brown davecb at canada.sun.com
Mon May 13 07:52:01 GMT 2002


Jay Ts wrote:
> Just in case I'm the first to have noticed this:
> 
> $ smbclient //server/share  -c "ls" -Tc
> added interface ip=172.16.1.3 bcast=172.16.1.255 nmask=255.255.255.0
> Segmentation fault
> 
> This happened when out of curiosity, I wondered if
> it was possible to execute some smbclient commands,
> such as a cd to a subdirectory, before running the
> -Tc tar backup of it.
> 
> The "server" and "share" strings in the above command
> can be anything, and the command with -c can also be
> a "cd dir" command. Just a plain "cd" with no arguments
> resulted in odd behavior (the cd command ran, then
> smbclient hung, without doing a tar backup). I haven't
> tried any other smbclient commands with -c.

	I just tried it with a Solaris system, 
	and got exactly the same result.

	truss -f -v uname said:
3267:   so_socket(2, 1, 0, "", 1)                       = 3
3267:   ioctl(3, 0xC0086914, 0xFFBED478)                = 0
3267:   ioctl(3, 0xC020690D, 0xFFBEB498)                = 0
3267:   ioctl(3, 0xC0206911, 0xFFBEB498)                = 0
3267:   ioctl(3, 0xC0206919, 0xFFBEB498)                = 0
3267:   ioctl(3, 0xC020690D, 0xFFBEB478)                = 0
3267:   ioctl(3, 0xC0206911, 0xFFBEB478)                = 0
3267:   ioctl(3, 0xC0206919, 0xFFBEB478)                = 0
3267:   close(3)                                        = 0
3267:   write(1, " a d d e d   i n t e r f".., 72)      = 72
3267:   umask(0)                                        = 02
3267:   umask(02)                                       = 0
3267:   uname(0xFFBED908)                               = 1
3267:           sys=SunOS nod=elsbeth rel=5.8 ver=Generic_108528-09
mch=sun4u
3267:       Incurred fault #6, FLTBOUNDS  %pc = 0x000393DC
3267:         siginfo: SIGSEGV SEGV_MAPERR addr=0x00000D60
3267:       Received signal #11, SIGSEGV [default]
3267:         siginfo: SIGSEGV SEGV_MAPERR addr=0x00000D60
3267:           *** process killed ***


--dave
-- 
David Collier-Brown,           | Always do right. This will gratify 
Performance & Engineering      | some people and astonish the rest.
Americas Customer Engineering, |                      -- Mark Twain
(905) 415-2849                 | davecb at canada.sun.com




More information about the samba-technical mailing list