smbclient -NL NT-machine coredumps :(

Harald H Hannelius harald at penti.sit.fi
Sun Jan 10 18:26:13 GMT 1999


I get core dumps when I run 'smbclient -NL' against any NT-machine.
(same domain as samba-pdc, other domain too)

Here is output from 'strace smbclient -NL ntmachine':  

oldselect(4, [3], NULL, NULL, {20, 0})  = 1 (in [3], left {20, 0})
read(3, "\202\0\0\0", 4)                = 4
write(3, "\0\0\0\244\377SMBr\0\0\0\0\10\1\0"..., 168) = 168
oldselect(4, [3], NULL, NULL, {20, 0})  = 1 (in [3], left {20, 0})
read(3, "\0\0\0[", 4)                   = 4
read(3, "\377SMBr\0\0\0\0\210\1\0\0\0\0\0"..., 91) = 91
write(3, "\0\0\0O\377SMBs\0\0\0\0\10\1\0\0"..., 83) = 83
oldselect(4, [3], NULL, NULL, {20, 0})  = 1 (in [3], left {20, 0})
read(3, "\0\0\0R", 4)                   = 4
read(3, "\377SMBs\0\0\0\0\210\1\0\0\0\0\0"..., 82) = 82
write(3, "\0\0\0A\377SMBu\0\0\0\0\10\1\0\0"..., 69) = 69
oldselect(4, [3], NULL, NULL, {20, 0})  = 1 (in [3], left {20, 0})
read(3, "\0\0\0.", 4)                   = 4
read(3, "\377SMBu\0\0\0\0\210\1\0\0\0\0\0"..., 46) = 46
fstat(1, {st_mode=S_IFREG|0644, st_size=8609, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000
write(3, "\0\0\0_\377SMB%\0\0\0\0\10\1\0\0"..., 99) = 99
oldselect(4, [3], NULL, NULL, {20, 0})  = 1 (in [3], left {20, 0})
read(3, "\0\0\0#", 4)                   = 4
read(3, "\377SMB%\1\0\5\0\210\1\0\0\0\0\0"..., 35) = 35
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Here is output from 'smbclient -d10 -NL ntmachine':


write_socket(3,83)
write_socket(3,83) wrote 83
got smb length of 81
size=81
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=11314
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=81 (0x51)
smb_vwv[2]=0 (0x0)
smb_bcc=40
[000] 57 69 6E 64 6F 77 73 20  4E 54 20 34 2E 30 00 4E  Windows  NT 4.0.N
[010] 54 20 4C 41 4E 20 4D 61  6E 61 67 65 72 20 34 2E  T LAN Ma nager 4.
[020] 30 00 53 41 4D 42 41 00                           0.SAMBA. 
Domain=[SAMBA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
 session setup ok
size=65
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=0
smb_pid=11314
smb_uid=2048
smb_mid=1
smt_wct=4
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=1 (0x1
Segmentation fault (core dumped)

Any ideas why it does this?



More information about the samba-ntdom mailing list