Date: Thu, 12 Feb 2009 08:28:57 GMT From: Peter Trifonov <petert@dcn.infos.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/131602: sendfile() sends corrupted data Message-ID: <200902120828.n1C8SvxW039307@www.freebsd.org> Resent-Message-ID: <200902120830.n1C8U1D6061003@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 131602 >Category: kern >Synopsis: sendfile() sends corrupted data >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 12 08:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Peter Trifonov >Release: 7.1 >Organization: Saint-Petersburg State Polytechnic University >Environment: FreeBSD dcn.research.dcn 7.1-RELEASE FreeBSD 7.1-RELEASE #1: Mon Jan 5 15:19:14 MSK 2009 petert-admin@dcn.research.dcn:/usr/obj/usr/src/sys/SERVER i386 >Description: The server hosts a large collection of files, which are stored on a local IDE hard disk. The files are available both via Apache 2.2.11 web server and Samba 3.0.32. Sometimes both Apache and Samba return to clients corrupted files. If the corrupted file is returned by Apache, all subsequent requests to this file from Samba also return corrupted file, and vice versa. The problem arises sporadically (but quite often) for different files larger than 1M. The problem is not persistent, i.e. some files are later delivered correctly. Disabling sendfile BOTH in Apache and Samba solves the problem. >How-To-Repeat: Put a file larger than 1M to a directory available both via apache and samba. Try to download it via both of them. Compare md5 checksums of the original and downloaded files. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902120828.n1C8SvxW039307>