2.2-CVS failing on Solaris 8
Michael Collin Nielsen
michael at hum.auc.dk
Thu Jun 21 17:19:15 GMT 2001
Hi
Have been trying to get samba-2.2-cvs to run on one of my Sol8 boxes, but
smbd bails out with an internal error.
I have traced my problem down to a memcpy in tdb.c:
static int tdb_read(TDB_CONTEXT *tdb,tdb_off off,void *buf,tdb_len len,int
cv)
{
if (tdb_oob(tdb, off + len, 0) != 0) return -1;
if (tdb->map_ptr) memcpy(buf, off + (char *)tdb->map_ptr, len);
^^^^^^
This is the memcpy that generates the internal error.
Calls goes as follows:
main(in server.c)
claim_connection(in connection.c)
tdb_traverse(in tdb.c)
tdb_next_lock
ofs_read
tdb_read
I can't see whats wrong, but hopefully someone can...
Regards
-Michael
samba was configured only with --prefix=...
gcc is 2.95.2
machine is SunOS telephus 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-250
level 10 debug:
..snip...
Adding chars 0x7e 0x0 (l->u = False) (u->l = False)
[2001/06/21 19:12:49, 3] smbd/sec_ctx.c:get_current_groups(163)
get_current_groups: uid 0 is in 1 groups: 1
[2001/06/21 19:12:49, 1] smbd/server.c:main(687)
smbd version 2.2.0 started.
Copyright Andrew Tridgell 1992-1998
[2001/06/21 19:12:49, 2] smbd/server.c:main(691)
uid=0 gid=0 euid=0 egid=0
[2001/06/21 19:12:49, 3] param/loadparm.c:init_globals(1174)
Initialising global parameters
[2001/06/21 19:12:49, 3] param/params.c:pm_process(573)
params.c:pm_process() - Processing configuration file
"/pack/samba-2.2.0-cvs//lib/smb.conf"
[2001/06/21 19:12:49, 3] param/loadparm.c:do_section(2827)
Processing section "[global]"
doing parameter workgroup = HUMFAK
doing parameter netbios name = TAMBA
[2001/06/21 19:12:49, 4] param/loadparm.c:handle_netbios_name(2196)
handle_netbios_name: set global_myname to: TAMBA
doing parameter interfaces = 192.38.62.13/255.255.255.0
doing parameter encrypt passwords = Yes
doing parameter character set = ISO8859-1
[2001/06/21 19:12:49, 5] lib/util_unistr.c:load_unicode_map(532)
load_unicode_map: loading unicode map for codepage ISO8859-1.
doing parameter wins server = 192.38.62.9
[2001/06/21 19:12:49, 4] lib/wins_srv.c:wins_srv_load_list(140)
wins_srv_load_list(): Building WINS server list:
192.38.62.9,
1 WINS server listed.
doing parameter wins support = No
doing parameter guest account = samba
doing parameter invalid users = root sys rod smtp
doing parameter printing = lprng
[2001/06/21 19:12:49, 2] param/loadparm.c:do_section(2845)
Processing section "[printers]"
doing parameter path = /s
doing parameter printable = yes
doing parameter public = no
doing parameter writable = no
doing parameter browsable = no
doing parameter create mode = 0700
doing parameter printer driver = HP LaserJet 4/4M Plus PS 600
[2001/06/21 19:12:49, 2] param/loadparm.c:do_section(2845)
Processing section "[homes]"
doing parameter comment = Hjemmedir
doing parameter read only = No
[2001/06/21 19:12:49, 2] param/loadparm.c:do_section(2845)
Processing section "[SDP]"
doing parameter path = /tmp
doing parameter read only = No
[2001/06/21 19:12:49, 2] param/loadparm.c:do_section(2845)
Processing section "[ps-ks3-5-111]"
doing parameter comment = humprn
doing parameter path = /tmp
doing parameter printable = Yes
[2001/06/21 19:12:49, 4] param/loadparm.c:lp_load(3283)
pm_process() returned Yes
[2001/06/21 19:12:49, 3] param/loadparm.c:lp_add_ipc(1867)
adding IPC service IPC$
[2001/06/21 19:12:49, 3] param/loadparm.c:lp_add_ipc(1867)
adding IPC service ADMIN$
[2001/06/21 19:12:49, 6] param/loadparm.c:lp_file_list_changed(2144)
lp_file_list_changed()
file /pack/samba-2.2.0-cvs//lib/smb.conf ->
/pack/samba-2.2.0-cvs//lib/smb.conf last mod_time: Thu Jun 21 17:20:31
2001
[2001/06/21 19:12:49, 2] lib/interface.c:add_interface(85)
added interface ip=192.38.62.13 bcast=192.38.62.255 nmask=255.255.255.0
[2001/06/21 19:12:49, 5] lib/hash.c:hash_table_init(72)
Hash size = 521.
[2001/06/21 19:12:50, 6] lib/charset.c:codepage_initialise(339)
codepage_initialise: client code page = 850
[2001/06/21 19:12:50, 5] lib/charset.c:load_client_codepage(196)
load_client_codepage: loading codepage 850.
..snip...
[2001/06/21 19:12:50, 5] lib/util_unistr.c:load_unicode_map(532)
load_unicode_map: loading unicode map for codepage 850.
[2001/06/21 19:12:50, 3] smbd/server.c:main(729)
loaded services
[2001/06/21 19:12:50, 3] smbd/server.c:main(737)
Becoming a daemon.
[2001/06/21 19:12:50, 8] lib/util.c:fcntl_lock(1309)
fcntl_lock 6 34 0 1 2
[2001/06/21 19:12:50, 8] lib/util.c:fcntl_lock(1349)
fcntl_lock: Lock call successful
[2001/06/21 19:12:50, 0] lib/fault.c:fault_report(40)
===============================================================
[2001/06/21 19:12:50, 0] lib/fault.c:fault_report(41)
INTERNAL ERROR: Signal 11 in pid 13456 (2.2.0)
Please read the file BUGS.txt in the distribution
[2001/06/21 19:12:50, 0] lib/fault.c:fault_report(43)
===============================================================
[2001/06/21 19:12:50, 0] lib/util.c:smb_panic(1097)
PANIC: internal error
smb.conf is quite simple:
[global]
workgroup = HUMFAK
netbios name = TAMBA
interfaces = 192.38.62.13/255.255.255.0
# security = DOMAIN
encrypt passwords = Yes
# password server = *
# log file = /var/log/samba/log.%m
character set = ISO8859-1
# preferred master = True
wins server = 192.38.62.9
wins support = No
guest account = samba
invalid users = root sys rod smtp
printing = lprng
[printers]
path = /s
printable = yes
public = no
writable = no
browsable = no
create mode = 0700
printer driver = HP LaserJet 4/4M Plus PS 600
[homes]
comment = Hjemmedir
read only = No
[SDP]
path = /tmp
read only = No
[ps-ks3-5-111]
comment = humprn
path = /tmp
printable = Yes
--
Michael Collin Nielsen mailto:michael at hum.auc.dk
M.Sc.E.E. http://www.hum.auc.dk/~michael
Sysadm in Faculty of Humanities, Aalborg University
More information about the samba-technical
mailing list