BUG: File read error.

Harald H Hannelius harald at penti.sit.fi
Thu Oct 1 13:11:25 GMT 1998


I have a linux Slackware 3.X with kernel 2.0.35 and samba pre-alpha 2.0.0.
I have cvs'ed the latest code 1 Oct 98, 14:00 EET-DST.
I have gotten the pdc thing up with encrypted passwords, and domain
logins. When i map a share and try to access any file on any share I get
an error like 'Network access is denied' (NT4) or 'The device does not
exist on the network, reading drive H',' Abort,Retry,Fail', 'Failed on INT
24 - filename' (win98) if i try a 'type filename' on the client.

I have looked at the log.machinename, and discovered this:
[1998/10/01 15:39:27, 1] smbd/service.c:make_connection(482)
  arcsrv1 (193.167.32.70) connect to service harald as user harald
(uid=527, gi
d=100) (pid 25847)
[1998/10/01 15:39:44, 0] smbd/process.c:smbd_process(838)
  Reloading services after SIGHUP
[1998/10/01 15:39:44, 0] param/loadparm.c:service_ok(1681)
  No path in service printers - using /tmp
[1998/10/01 15:39:44, 0] smbd/filename.c:print_stat_cache_statistics(103)
  stat cache stats: lookups = 4, hits = 1, misses = 3, stat cache was
25.000000
% effective.
[1998/10/01 15:39:44, 0] lib/fault.c:fault_report(40)
  ===============================================================
[1998/10/01 15:39:44, 0] lib/fault.c:fault_report(41)
  INTERNAL ERROR: Signal 11 in pid 25847 (2.0.0-prealpha)
  Please read the file BUGS.txt in the distribution
[1998/10/01 15:39:44, 0] lib/fault.c:fault_report(43)
  ===============================================================
[1998/10/01 15:39:44, 0] lib/util.c:smb_panic(4079)
  PANIC: internal error

This shurely looks like a bug to me, so I started to strace smbd, and came
up with this:

[pid 25682] stat("sun", {st_mode=S_IFREG|0644, st_size=29, ...}) = 0
[pid 25682] stat("./", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 25682] open("./", O_RDONLY)        = 7
[pid 25682] fcntl(7, F_SETFD, FD_CLOEXEC) = 0
[pid 25682] brk(0x810e000)              = 0x810e000
[pid 25682] SYS_141(0x7, 0x810b0f8, 0x1000, 0x7, 0x810b0d0) = 1172
[pid 25682] SYS_141(0x7, 0x810b0f8, 0x1000, 0x7, 0x810b0d0) = 1004
[pid 25682] SYS_141(0x7, 0x810b0f8, 0x1000, 0x7, 0x810b0d0) = 736
[pid 25682] SYS_141(0x7, 0x810b0f8, 0x1000, 0x7, 0x810b0d0) = 88
[pid 25682] SYS_141(0x7, 0x810b0f8, 0x1000, 0x7, 0x810b0d0) = 0
[pid 25682] close(7)                    = 0
[pid 25682] stat("./sun", {st_mode=S_IFREG|0644, st_size=29, ...}) = 0
[pid 25682] write(6, "\0\0\0\252\377SMB2\0\0\0\0\210A\0"..., 174) = 174
[pid 25682] select(7, [5 6], NULL, NULL, {10, 0}) = 1 (in [6], left {10,
0})
[pid 25682] read(6, "\0\0\0O", 4)       = 4
[pid 25682] read(6, "\377SMB2\0\0\0\0\30\3\0\0\0\0\0\0"..., 79) = 79
[pid 25682] time(NULL)                  = 907244326
[pid 25682] stat("sun", {st_mode=S_IFREG|0644, st_size=29, ...}) = 0
[pid 25682] write(6, "\0\0\0b\377SMB2\0\0\0\0\210A\0\0"..., 102) = 102
[pid 25682] select(7, [5 6], NULL, NULL, {10, 0}) = 1 (in [6], left {10,
0})
[pid 25682] read(6, "\0\0\0X", 4)       = 4
[pid 25682] read(6, "\377SMB\242\0\0\0\0\30\3\0f\200\0"..., 88) = 88
[pid 25682] time(NULL)                  = 907244326
[pid 25682] write(6, "\0\0\0#\377SMB\242\2\0\4\0\210\1"..., 39) = 39
[pid 25682] select(7, [5 6], NULL, NULL, {10, 0}) = 1 (in [6], left {10,
0})
[pid 25682] read(6, "\0\0\0U", 4)       = 4
[pid 25682] read(6, "\377SMB2\0\0\0\0\30\3\0\0\0\0\0\0"..., 85) = 85
[pid 25682] time(NULL)                  = 907244326
[pid 25682] stat("DPATH/sun", 0xbfffeba8) = -1 ENOENT (No such file or
director
y)

So, the smbd find the file 'sun', but when i request a read() it
segfaults. Why?

libc-5.4.44, gcc 2.7.2.3

Should I maybe try to compile the monster with egcs or something?

btw, what is DPATH? I'm not that good at C...



===========================================================        
Harald H Hannelius | harald at sit.fi      | GSM +358405470870
Mauritzgatan 14D41 | www.iki.fi/~harald | Pho +35892783568
00170 HKI FINLAND  | harald at iki.fi      | Fax +35892783568
===========================================================  




More information about the samba-ntdom mailing list