Bug 1050 - smbclient Fails to connect Sparc Solaris v2.5.1
Summary: smbclient Fails to connect Sparc Solaris v2.5.1
Status: RESOLVED LATER
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.1
Hardware: All Solaris
: P1 major
Target Milestone: none
Assignee: Gerald (Jerry) Carter (dead mail address)
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 18:56 UTC by Peter Bruley
Modified: 2004-10-29 07:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Bruley 2004-02-08 18:56:37 UTC
I can not get smbclient to work properly at v3.0.0, v3.0.1 or v3.0.2rc2 under
Sparc-Solaris-v2.5.1 Compiled all 3 samba versions on two separate platforms
(Ultra60 & SparcStation5) and found the exact same bug.

***************************************
Here is the bug:
Under a bourne shell I get a message:

smbclient -L host
brokenpipe
***************************************

Sometimes the smbclient actually makes a connection to a host but this is only
about 2% of the time which is obviously not reliable enough. nmblookup seems to
work fine.

I compiled from source using gcc v2.95.3

More info:
The smbclient binaries that were compiled on the Solaris 2.5.1 box work
flawslessly under Solaris 8.0

Compiling samba-v2.2.8a on Sparc-Solaris-v2.5.1 works as expected.


Thank you.

-- 
Peter
http://tkvoice.netfirms.com/
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-02-10 20:10:07 UTC
please provide level 10 debug logs.  Thanks.
Comment 2 Peter Bruley 2004-02-14 15:04:08 UTC
#
# smbclient -d 10 -L bruley

INFO: Current debug levels:
  all: True/10
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file
"/opt/HYBRID/SAMBA/lib/smb.conf"
Processing section "[global]"
doing parameter server string = ON-LINE FOXBORO I/A SERVER
doing parameter hosts equiv = /etc/hosts.equiv
doing parameter map to guest = Bad Password
doing parameter log level = 3 passdb:5 auth:10 winbind:2
doing parameter log file = /opt/HYBRID/SAMBA/var/log.%m
doing parameter max log size = 50
doing parameter preferred master = Yes
doing parameter dns proxy = No
doing parameter ldap ssl = no
doing parameter admin users = fox
doing parameter printer admin = fox
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
Probing module ''
Probing module '': Trying to load from /opt/HYBRID/SAMBA/lib/charset/.so
Error loading module '/opt/HYBRID/SAMBA/lib/charset/.so': ld.so.1: smbclient:
fatal: /opt/HYBRID/SAMBA/lib/charset/.so: open failed: No such file or directory
Locale charset '' unsupported, using ASCII instead
added interface ip=151.128.8.65 bcast=151.128.255.255 nmask=255.255.0.0
added interface ip=192.168.1.7 bcast=192.168.1.255 nmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="AW51EX"
Client started (version 3.0.2rc1).
internal_resolve_name: looking up bruley#20
Opening cache file at /opt/HYBRID/SAMBA/var/locks/gencache.tdb
Returning valid cache entry: key = NBT/BRULEY#20, value = 192.168.1.1:0, timeout
= Sat Feb 14 17:10:11 2004

name bruley#20 found.
Connecting to 192.168.1.1 at port 445

# boken Pipe
# 
Comment 3 Gerald (Jerry) Carter (dead mail address) 2004-03-03 10:36:59 UTC
I'm not sure this is our bug yet.  What does 
'truss smbclient -L host' show for the reason 
of the 'broken pipe' message?
Comment 4 Peter Bruley 2004-03-26 14:34:36 UTC
Hmm... this is strange.

I thought I would run the truss output into a log file so I could capture the
trace info.

If I run "truss smbclient -L host > truss.log 2>&1" the trace-call debugging
info is directed to the log file but then I get the prompt for the login
"Password:" on the console. If I hit <CR> the command exits and the smbclient
info shows up in the truss.log file.

If I run "smblcient -L host" OR "smbclient -L host > truss.log 2>&1" I get the
"Broken Pipe" Message.

Do you still want me to send you the truss output?
Comment 5 Peter Bruley 2004-03-26 14:45:32 UTC
Hmmm... using truss [-o outfile] I get the smbclient -L info on the console:

truss -o truss.log smbclient -L peter
Password:

Anonymous login successful
Domain=[LINUXLAN] OS=[Unix] Server=[Samba 3.0.2a]

        Sharename      Type      Comment
        ---------      ----      -------
        cdrom          Disk      cdrom on linux machine
        root           Disk      root access on linux machine
        print$         Disk      Windows NT 9x/Me Printer Driver Download Area
        pbruley        Disk      pbruley home directory on BRULEY
        ES640          Printer   EPSON Stylus COLOR 640
        cnorm          Printer   Ghost Script Filter Quality=NORMAL
        IPC$           IPC       IPC Service (AMD XP1600 512MB)
        ADMIN$         IPC       IPC Service (AMD XP1600 512MB)
Anonymous login successful
Domain=[LINUXLAN] OS=[Unix] Server=[Samba 3.0.2a]

        Server               Comment
        ---------            -------
        PETER                AMD XP1600 512MB

        Workgroup            Master
        ---------            -------
        FOXBORO_1            BRULEY
        LINUXLAN             PETER
        WORKGROUP            AW51EX

-----------------------------------
truss.log is below here:
-----------------------------------
execve("./smbclient", 0xEFFFFC08, 0xEFFFFC18)  argc = 3
open("./libsec.so.1", O_RDONLY)                 Err#2 ENOENT
open("/lib/libsec.so.1", O_RDONLY)              = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF7B0000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF790000
munmap(0xEF792000, 57344)                       = 0
mmap(0xEF7A0000, 9138, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
0) = 0xEF7A0000
open("/dev/zero", O_RDONLY)                     = 4
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0xEF780000
close(3)                                        = 0
open("./libresolv.so.2", O_RDONLY)              Err#2 ENOENT
open("/lib/libresolv.so.2", O_RDONLY)           = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF7B0000
mmap(0x00000000, 131072, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF750000
munmap(0xEF75C000, 57344)                       = 0
mmap(0xEF76A000, 11307, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
3, 40960) = 0xEF76A000
mmap(0xEF76E000, 7796, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0xEF76E000
close(3)                                        = 0
open("./libsocket.so.1", O_RDONLY)              Err#2 ENOENT
open("/lib/libsocket.so.1", O_RDONLY)           = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF7B0000
mmap(0x00000000, 122880, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF720000
munmap(0xEF72E000, 57344)                       = 0
mmap(0xEF73C000, 7777, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
49152) = 0xEF73C000
close(3)                                        = 0
open("./libnsl.so.1", O_RDONLY)                 Err#2 ENOENT
open("/lib/libnsl.so.1", O_RDONLY)              = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF7B0000
mmap(0x00000000, 557056, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF680000
munmap(0xEF6E8000, 57344)                       = 0
mmap(0xEF6F6000, 35473, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
3, 417792) = 0xEF6F6000
mmap(0xEF700000, 26552, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
4, 0) = 0xEF700000
close(3)                                        = 0
open("./libc.so.1", O_RDONLY)                   Err#2 ENOENT
open("/lib/libc.so.1", O_RDONLY)                = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF7B0000
mmap(0x00000000, 655360, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF580000
munmap(0xEF606000, 57344)                       = 0
mmap(0xEF614000, 32808, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
3, 540672) = 0xEF614000
mmap(0xEF61E000, 624, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0xEF61E000
close(3)                                        = 0
open("./libdl.so.1", O_RDONLY)                  Err#2 ENOENT
open("/lib/libdl.so.1", O_RDONLY)               = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF7B0000
close(3)                                        = 0
open("./libintl.so.1", O_RDONLY)                Err#2 ENOENT
open("/lib/libintl.so.1", O_RDONLY)             = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF710000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF660000
munmap(0xEF664000, 57344)                       = 0
mmap(0xEF672000, 7084, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
8192) = 0xEF672000
mmap(0xEF672000, 7084, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
8192) = 0xEF672000
close(3)                                        = 0
open("./libmp.so.1", O_RDONLY)                  Err#2 ENOENT
open("/lib/libmp.so.1", O_RDONLY)               = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF710000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF710000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF640000
munmap(0xEF644000, 57344)                       = 0
mmap(0xEF652000, 3318, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
8192) = 0xEF652000
close(3)                                        = 0
open("./libw.so.1", O_RDONLY)                   Err#2 ENOENT
open("/lib/libw.so.1", O_RDONLY)                = 3
fstat(3, 0xEFFFF7B4)                            = 0
mmap(0xEF710000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF710000
mmap(0x00000000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF560000
munmap(0xEF568000, 57344)                       = 0
mmap(0xEF576000, 3512, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
24576) = 0xEF576000
close(3)                                        = 0
open("/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1", O_RDONLY) = 3
fstat(3, 0xEFFFF634)                            = 0
mmap(0xEF710000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0xEF710000
mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF540000
munmap(0xEF544000, 57344)                       = 0
mmap(0xEF552000, 5672, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
8192) = 0xEF552000
close(3)                                        = 0
close(4)                                        = 0
munmap(0xEF710000, 8192)                        = 0
brk(0x000D6800)                                 = 0
brk(0x000D8800)                                 = 0
stat("/opt/HYBRID/SAMBA/lib/smb.conf", 0xEFFFE9D0) = 0
uname(0xEFFFDC80)                               = 1
open("/opt/HYBRID/SAMBA/lib/smb.conf", O_RDONLY) = 3
fstat(3, 0xEFFFE8F0)                            = 0
brk(0x000D8800)                                 = 0
brk(0x000DA800)                                 = 0
read(3, " #   S a m b a   c o n f".., 1152)     = 1152
close(3)                                        = 0
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/dev/zero", O_RDONLY)                     = 3
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xEF710000
close(3)                                        = 0
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/upcase.dat", O_RDONLY) = 3
mmap(0x00000000, 131072, PROT_READ, MAP_SHARED, 3, 0) = 0xEF510000
close(3)                                        = 0
open("/opt/HYBRID/SAMBA/lib/lowcase.dat", O_RDONLY) = 3
mmap(0x00000000, 131072, PROT_READ, MAP_SHARED, 3, 0) = 0xEF4E0000
close(3)                                        = 0
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_CTYPE/charmap", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/charset/.so", O_RDONLY) Err#2 ENOENT
open("/opt/HYBRID/SAMBA/lib/valid.dat", O_RDONLY) = 3
mmap(0x00000000, 65536, PROT_READ, MAP_SHARED, 3, 0) = 0xEF4C0000
close(3)                                        = 0
open("/etc/netconfig", O_RDONLY)                = 3
fstat(3, 0xEFFFBAC0)                            = 0
brk(0x000DA800)                                 = 0
brk(0x000DC800)                                 = 0
ioctl(3, TCGETA, 0xEFFFBA4C)                    Err#25 ENOTTY
read(3, " #\n #   T h e   " N e t".., 8192)     = 1064
read(3, 0x000D970C, 8192)                       = 0
lseek(3, 0, SEEK_CUR)                           = 1064
lseek(3, 0, SEEK_SET)                           = 0
read(3, " #\n #   T h e   " N e t".., 8192)     = 1064
read(3, 0x000D970C, 8192)                       = 0
lseek(3, 0, SEEK_CUR)                           = 1064
close(3)                                        = 0
open("/dev/udp", O_RDWR)                        = 3
ioctl(3, I_PUSH, "sockmod")                     = 0
ioctl(3, I_STR, 0xEFFFC0C0)                     = 0
ioctl(3, I_SETCLTIME, 0xEFFFC174)               = 0
ioctl(3, I_SWROPT, 0x00000002)                  = 0
sigfillset(0xEF61D6DC)                          = 0
sigprocmask(SIG_SETMASK, 0xEFFFC164, 0xEFFFC154) = 0
ioctl(3, I_STR, 0xEFFFBFD8)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFC154, 0xEFFFC130) = 0
ioctl(3, 0xC0086914, 0xEFFFE248)                = 0
ioctl(3, 0xC020690D, 0xEFFFC288)                = 0
ioctl(3, 0xC0206911, 0xEFFFC288)                = 0
ioctl(3, 0xC0206919, 0xEFFFC288)                = 0
ioctl(3, 0xC020690D, 0xEFFFC268)                = 0
ioctl(3, 0xC0206911, 0xEFFFC268)                = 0
ioctl(3, 0xC0206911, 0xEFFFC268)                = 0
ioctl(3, 0xC0206919, 0xEFFFC268)                = 0
ioctl(3, 0xC020690D, 0xEFFFC248)                = 0
ioctl(3, 0xC0206911, 0xEFFFC248)                = 0
ioctl(3, 0xC0206919, 0xEFFFC248)                = 0
close(3)                                        = 0
getuid()                                        = 0 [0]
getuid()                                        = 0 [0]
getpid()                                        = 5004 [5003]
brk(0x000DC800)                                 = 0
brk(0x000EC800)                                 = 0
brk(0x000EC800)                                 = 0
brk(0x000FC800)                                 = 0
open("/opt/HYBRID/SAMBA/var/locks/gencache.tdb", O_RDWR|O_CREAT, 0644) = 3
fcntl(3, F_SETLKW, 0xEFFFE3A8)                  = 0
fcntl(3, F_SETLK, 0xEFFFE3A8)                   = 0
read(3, " T D B   f i l e\n\0\0\0".., 168)      = 168
fstat(3, 0xEFFFE440)                            = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xEF630000
lseek(3, 40, SEEK_SET)                          = 40
write(3, "\0\0\0\0", 4)                         = 4
fcntl(3, F_SETLK, 0xEFFFE3A8)                   = 0
fcntl(3, F_SETLKW, 0xEFFFE3A8)                  = 0
fcntl(3, F_SETLKW, 0xEFFFE3A8)                  = 0
fcntl(3, F_SETLKW, 0xEFFFE378)                  = 0
fcntl(3, F_SETLKW, 0xEFFFE3F0)                  = 0
time()                                          = 1080319221
open("/dev/tcp", O_RDWR)                        = 4
ioctl(4, I_PUSH, "sockmod")                     = 0
ioctl(4, I_STR, 0xEFFFEA80)                     = 0
ioctl(4, I_SETCLTIME, 0xEFFFEB34)               = 0
ioctl(4, I_SWROPT, 0x00000002)                  = 0
sigprocmask(SIG_SETMASK, 0xEFFFEB24, 0xEFFFEB14) = 0
ioctl(4, I_STR, 0xEFFFE998)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFEB14, 0xEFFFEAF0) = 0
fcntl(4, F_GETFL, 0x00000000)                   = 2
ioctl(4, I_FIND, "sockmod")                     = 1
ioctl(4, I_FIND, "sockmod")                     = 1
fcntl(4, F_SETFL, 0x00000082)                   = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
sigprocmask(SIG_BLOCK, 0xEFFFE8C8, 0xEFFFE96C)  = 0
putmsg(4, 0xEFFFE97C, 0x00000000, 0)            = 0
fcntl(4, F_SETFL, 0x00000002)                   = 0
getmsg(4, 0xEFFFE97C, 0x00000000, 0xEFFFE874)   Err#146 ECONNREFUSED
sigprocmask(SIG_SETMASK, 0xEFFFE96C, 0x00000000) = 0
close(4)                                        = 0
open("/dev/tcp", O_RDWR)                        = 4
ioctl(4, I_PUSH, "sockmod")                     = 0
ioctl(4, I_STR, 0xEFFFEA80)                     = 0
ioctl(4, I_SETCLTIME, 0xEFFFEB34)               = 0
ioctl(4, I_SWROPT, 0x00000002)                  = 0
sigprocmask(SIG_SETMASK, 0xEFFFEB24, 0xEFFFEB14) = 0
ioctl(4, I_STR, 0xEFFFE998)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFEB14, 0xEFFFEAF0) = 0
fcntl(4, F_GETFL, 0x00000000)                   = 2
ioctl(4, I_FIND, "sockmod")                     = 1
ioctl(4, I_FIND, "sockmod")                     = 1
fcntl(4, F_SETFL, 0x00000082)                   = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
fcntl(4, F_GETFL, 0x00000000)                   = 130
sigprocmask(SIG_BLOCK, 0xEFFFE8C8, 0xEFFFE96C)  = 0
putmsg(4, 0xEFFFE97C, 0x00000000, 0)            = 0
fcntl(4, F_SETFL, 0x00000002)                   = 0
getmsg(4, 0xEFFFE97C, 0x00000000, 0xEFFFE874)   = 0
fcntl(4, F_SETFL, 0x00000082)                   = 0
sigprocmask(SIG_SETMASK, 0xEFFFE96C, 0x00000000) = 0
pipe()                                          = 5 [6]
fcntl(5, F_GETFL, 0x00000000)                   = 2
ioctl(5, I_FIND, "sockmod")                     = 0
ioctl(5, I_FIND, "sockmod")                     = 0
fcntl(5, F_SETFL, 0x00000082)                   = 0
fcntl(6, F_GETFL, 0x00000000)                   = 2
ioctl(6, I_FIND, "sockmod")                     = 0
ioctl(6, I_FIND, "sockmod")                     = 0
fcntl(6, F_SETFL, 0x00000082)                   = 0
poll(0xEFFFC7B0, 1, 10)                         = 0
poll(0xEFFFC7B0, 1, 5)                          = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
sigprocmask(SIG_BLOCK, 0xEFFFE8C8, 0xEFFFE96C)  = 0
putmsg(4, 0xEFFFE97C, 0x00000000, 0)            = 0
fcntl(4, F_SETFL, 0x00000002)                   = 0
getmsg(4, 0xEFFFE97C, 0x00000000, 0xEFFFE874)   = 0
fcntl(4, F_SETFL, 0x00000082)                   = 0
sigprocmask(SIG_SETMASK, 0xEFFFE96C, 0x00000000) = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
ioctl(4, I_FIND, "sockmod")                     = 1
ioctl(4, I_FIND, "sockmod")                     = 1
fcntl(4, F_SETFL, 0x00000002)                   = 0
sigprocmask(SIG_BLOCK, 0xEFFFE9A0, 0xEFFFEA14)  = 0
ioctl(4, I_STR, 0xEFFFE9A0)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFEA14, 0x00000000) = 0
ioctl(4, I_STR, 0xEFFFE7B0)                     = 0
sigprocmask(SIG_BLOCK, 0xEFFFE7B0, 0xEFFFE828)  = 0
sigprocmask(SIG_SETMASK, 0xEFFFE828, 0x00000000) = 0
ioctl(4, I_GETSIG, 0xEFFFE824)                  Err#22 EINVAL
write(4, "81\0\0 D   F A E F F E E".., 72)      = 72
poll(0xEFFFC690, 2, 20000)                      = 1
read(4, "82\0\0\0", 4)                          = 4
write(4, "\0\0\0B3FF S M B r\0\0\0".., 183)     = 183
poll(0xEFFFC678, 2, 20000)                      = 1
read(4, "\0\0\07F", 4)                          = 4
read(4, "FF S M B r\0\0\0\08801C8".., 127)      = 127
time()                                          = 1080319221
open("/usr/share/lib/zoneinfo/GMT", O_RDONLY)   = 7
read(7, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)     = 55
close(7)                                        = 0
sigaction(SIGINT, 0xEFFFEB68, 0xEFFFEBE8)       = 0
open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666)  = 7
ioctl(7, TCGETS, 0x000C7B68)                    = 0
ioctl(7, TCSETSF, 0x000C7B68)                   = 0
write(7, " P a s s w o r d :  ", 10)            = 10
read(7, "\n", 1)                                = 1
ioctl(7, TCSETS, 0x000C7B68)                    = 0
write(7, "\n\n", 2)                             = 2
close(7)                                        = 0
sigaction(SIGINT, 0xEFFFEB68, 0xEFFFEBE8)       = 0
write(4, "\0\0\0A2FF S M B s\0\0\0".., 166)     = 166
poll(0xEFFFC2C0, 2, 20000)
poll(0xEFFFC2C0, 2, 20000)                      = 1
read(4, "\0\0\0FA", 4)                          = 4
read(4, "FF S M B s16\0\0C08801C8".., 250)      = 250
open("/dev/urandom", O_RDONLY)                  Err#2 ENOENT
open("/etc/shadow", O_RDONLY)                   = 7
read(7, " r o o t : d m W C o S L".., 1011)     = 420
read(7, 0xEFFFE0E8, 1011)                       = 0
close(7)                                        = 0
open("/opt/HYBRID/SAMBA/private/smbpasswd", O_RDONLY) = 7
read(7, " #\n #   S M B   p a s s".., 1011)     = 1011
read(7, " X X X X X X X X X X X X".., 1011)     = 1011
read(7, " U                     ]".., 1011)     = 278
read(7, 0xEFFFE0E8, 1011)                       = 0
close(7)                                        = 0
open("/etc/.name_service_door", O_RDONLY)       = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xEF61CEE8)                        = 0
door_call(7, 0xEFFFE008, 0x00000400, 0x00000015, 0x00000000) = 0
write(4, "\0\00104FF S M B s\0\0\0".., 264)     = 264
poll(0xEFFFC2C0, 2, 20000)                      = 1
read(4, "\0\0\0 j", 4)                          = 4
read(4, "FF S M B s m\0\0C08801C8".., 106)      = 106
write(4, "\0\0\0 XFF S M B s\0\0\0".., 92)      = 92
poll(0xEFFFC4F0, 2, 20000)                      = 1
read(4, "\0\0\0 `", 4)                          = 4
read(4, "FF S M B s\0\0\0\08801C8".., 96)       = 96
ioctl(1, TCGETA, 0xEFFFEA04)                    = 0
write(1, " A n o n y m o u s   l o".., 27)      = 27
write(2, " D o m a i n = [ L I N U".., 50)      = 50
write(4, "\0\0\0 LFF S M B u\0\0\0".., 80)      = 80
poll(0xEFFFC488, 2, 20000)                      = 1
read(4, "\0\0\0 0", 4)                          = 4
read(4, "FF S M B u\0\0\0\08801C8".., 48)       = 48
write(1, "\n", 1)                               = 1
write(1, "\t S h a r e n a m e    ".., 34)      = 34
write(1, "\t - - - - - - - - -    ".., 34)      = 34
write(4, "\0\0\0 mFF S M B %\0\0\0".., 113)     = 113
poll(0xEFFFBB20, 2, 20000)                      = 1
read(4, "\0\001DB", 4)                          = 4
read(4, "FF S M B %\0\0\0\08801C8".., 475)      = 475
write(1, "\t c d r o m            ".., 49)      = 49
write(1, "\t r o o t              ".., 55)      = 55
write(1, "\t p r i n t $          ".., 72)      = 72
write(1, "\t p b r u l e y        ".., 59)      = 59
write(1, "\t E S 6 4 0            ".., 49)      = 49
write(1, "\t c n o r m            ".., 61)      = 61
write(1, "\t I P C $              ".., 57)      = 57
write(1, "\t A D M I N $          ".., 57)      = 57
close(4)                                        = 0
getuid()                                        = 0 [0]
getuid()                                        = 0 [0]
fcntl(3, F_SETLKW, 0xEFFFE378)                  = 0
fcntl(3, F_SETLKW, 0xEFFFE3F0)                  = 0
time()                                          = 1080319222
open("/dev/tcp", O_RDWR)                        = 4
ioctl(4, I_PUSH, "sockmod")                     = 0
ioctl(4, I_STR, 0xEFFFEA80)                     = 0
ioctl(4, I_SETCLTIME, 0xEFFFEB34)               = 0
ioctl(4, I_SWROPT, 0x00000002)                  = 0
sigprocmask(SIG_SETMASK, 0xEFFFEB24, 0xEFFFEB14) = 0
ioctl(4, I_STR, 0xEFFFE998)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFEB14, 0xEFFFEAF0) = 0
fcntl(4, F_GETFL, 0x00000000)                   = 2
ioctl(4, I_FIND, "sockmod")                     = 1
ioctl(4, I_FIND, "sockmod")                     = 1
fcntl(4, F_SETFL, 0x00000082)                   = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
sigprocmask(SIG_BLOCK, 0xEFFFE8C8, 0xEFFFE96C)  = 0
putmsg(4, 0xEFFFE97C, 0x00000000, 0)            = 0
fcntl(4, F_SETFL, 0x00000002)                   = 0
getmsg(4, 0xEFFFE97C, 0x00000000, 0xEFFFE874)   = 0
fcntl(4, F_SETFL, 0x00000082)                   = 0
sigprocmask(SIG_SETMASK, 0xEFFFE96C, 0x00000000) = 0
poll(0xEFFFC7B0, 1, 10)                         = 0
poll(0xEFFFC7B0, 1, 3)                          = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
sigprocmask(SIG_BLOCK, 0xEFFFE8C8, 0xEFFFE96C)  = 0
putmsg(4, 0xEFFFE97C, 0x00000000, 0)            = 0
fcntl(4, F_SETFL, 0x00000002)                   = 0
getmsg(4, 0xEFFFE97C, 0x00000000, 0xEFFFE874)   = 0
fcntl(4, F_SETFL, 0x00000082)                   = 0
sigprocmask(SIG_SETMASK, 0xEFFFE96C, 0x00000000) = 0
fcntl(4, F_GETFL, 0x00000000)                   = 130
ioctl(4, I_FIND, "sockmod")                     = 1
ioctl(4, I_FIND, "sockmod")                     = 1
fcntl(4, F_SETFL, 0x00000002)                   = 0
sigprocmask(SIG_BLOCK, 0xEFFFE9A0, 0xEFFFEA14)  = 0
ioctl(4, I_STR, 0xEFFFE9A0)                     = 0
sigprocmask(SIG_SETMASK, 0xEFFFEA14, 0x00000000) = 0
ioctl(4, I_STR, 0xEFFFE7B0)                     = 0
sigprocmask(SIG_BLOCK, 0xEFFFE7B0, 0xEFFFE828)  = 0
sigprocmask(SIG_SETMASK, 0xEFFFE828, 0x00000000) = 0
ioctl(4, I_GETSIG, 0xEFFFE824)                  Err#22 EINVAL
write(4, "81\0\0 D   F A E F F E E".., 72)      = 72
poll(0xEFFFC690, 2, 20000)                      = 1
read(4, "82\0\0\0", 4)                          = 4
write(4, "\0\0\0B3FF S M B r\0\0\0".., 183)     = 183
poll(0xEFFFC678, 2, 20000)                      = 1
read(4, "\0\0\07F", 4)                          = 4
read(4, "FF S M B r\0\0\0\08801C8".., 127)      = 127
write(4, "\0\0\0A2FF S M B s\0\0\0".., 166)     = 166
poll(0xEFFFC2C0, 2, 20000)                      = 1
read(4, "\0\0\0FA", 4)                          = 4
read(4, "FF S M B s16\0\0C08801C8".., 250)      = 250
write(4, "\0\00104FF S M B s\0\0\0".., 264)     = 264
poll(0xEFFFC2C0, 2, 20000)                      = 1
read(4, "\0\0\0 j", 4)                          = 4
read(4, "FF S M B s m\0\0C08801C8".., 106)      = 106
write(4, "\0\0\0 XFF S M B s\0\0\0".., 92)      = 92
poll(0xEFFFC4F0, 2, 20000)                      = 1
read(4, "\0\0\0 `", 4)                          = 4
read(4, "FF S M B s\0\0\0\08801C8".., 96)       = 96
write(1, " A n o n y m o u s   l o".., 27)      = 27
write(2, " D o m a i n = [ L I N U".., 50)      = 50
write(4, "\0\0\0 LFF S M B u\0\0\0".., 80)      = 80
poll(0xEFFFC488, 2, 20000)                      = 1
read(4, "\0\0\0 0", 4)                          = 4
read(4, "FF S M B u\0\0\0\08801C8".., 48)       = 48
write(1, "\n", 1)                               = 1
write(1, "\t S e r v e r          ".., 30)      = 30
write(1, "\t - - - - - - - - -    ".., 30)      = 30
write(4, "\0\0\0 }FF S M B %\0\0\0".., 129)     = 129
poll(0xEFFFBB20, 2, 20000)                      = 1
read(4, "\0\0\0 k", 4)                          = 4
read(4, "FF S M B %\0\0\0\08801C8".., 107)      = 107
write(1, "\t P E T E R            ".., 39)      = 39
write(1, "\n", 1)                               = 1
write(1, "\t W o r k g r o u p    ".., 29)      = 29
write(1, "\t - - - - - - - - -    ".., 30)      = 30
write(4, "\0\0\0 }FF S M B %\0\0\0".., 129)     = 129
poll(0xEFFFBB20, 2, 20000)                      = 1
read(4, "\0\0\0A2", 4)                          = 4
read(4, "FF S M B %\0\0\0\08801C8".., 162)      = 162
write(1, "\t F O X B O R O _ 1    ".., 29)      = 29
write(1, "\t L I N U X L A N      ".., 28)      = 28
write(1, "\t W O R K G R O U P    ".., 29)      = 29
close(4)                                        = 0
lseek(0, 0, SEEK_CUR)                           = 3118
_exit(0)
Comment 6 Peter Bruley 2004-06-21 12:11:35 UTC
I just compiled v3.0.4 and I have the same problem.

If I use the smbclient from v2.2.8 with the v3.0.4 package everything seems to
work fine. Can I do that? or will I be missing some functionality?

What is the difference in smbclient between v2 and v3 ?
Comment 7 Gerald (Jerry) Carter (dead mail address) 2004-10-29 07:53:43 UTC
can't reproduce.  Will revisiti if someone else can confirm the bug.