Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A61118226 for ; Tue, 27 Oct 2015 13:45:27 +0000 (UTC) Received: (qmail 32294 invoked by uid 500); 27 Oct 2015 13:37:23 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 32180 invoked by uid 500); 27 Oct 2015 13:37:23 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 32169 invoked by uid 99); 27 Oct 2015 13:37:22 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2015 13:37:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A76D11A2D2A for ; Tue, 27 Oct 2015 13:37:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6tj3EDC1cJvk for ; Tue, 27 Oct 2015 13:37:20 +0000 (UTC) Received: from panix.netmeister.org (panix.netmeister.org [166.84.7.99]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id BCE2523057 for ; Tue, 27 Oct 2015 13:37:20 +0000 (UTC) Received: by panix.netmeister.org (Postfix, from userid 1000) id 41300357592; Tue, 27 Oct 2015 09:37:20 -0400 (EDT) Date: Tue, 27 Oct 2015 09:37:20 -0400 From: Jan Schaumann To: users@httpd.apache.org Message-ID: <20151027133720.GG323@netmeister.org> Mail-Followup-To: users@httpd.apache.org References: <20151016131450.GC479@netmeister.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: [users@httpd] apache 2.4 directory autoindex corrupted Eric Covener wrote: > Pretty odd, can you strace/truss and see what comes back for readdir/stat/??? I see just what it sounded like: httpd tries to mmap a much larger file than it actually has: 1878 27 httpd CALL __stat50(0x7f7ff7bb16f0,0x7f7fecbff780) 1878 27 httpd NAMI "/usr/pkg/share/httpd/htdocs/tmp/f" 1878 27 httpd RET __stat50 0 1878 27 httpd CALL open(0x7f7ff7bb17e0,0,0) 1878 27 httpd NAMI "/usr/pkg/share/httpd/htdocs/tmp/f" 1878 27 httpd RET open 8 1878 27 httpd CALL fcntl(8,1,0) 1878 27 httpd RET fcntl 0 1878 27 httpd CALL fcntl(8,2,1) 1878 27 httpd RET fcntl 0 1878 27 httpd CALL open(0x7f7fecbfc440,0,0x2e2e2e2e) 1878 27 httpd NAMI "/usr/share/zoneinfo/GMT" 1878 27 httpd RET open 9 1878 27 httpd CALL read(9,0x7f7ff7bb8000,0x7c68) 1878 27 httpd GIO fd 9 read 118 bytes "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\^A\0\0\0\^D\0\ \0\0\0\0\0GMT\0\0\0TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A\0\0\0\^A\0\0\0\0\0\0\0\0\0\ \0\0\^A\0\0\0\^D\0\0\0\0\0\0GMT\0\0\0\nGMT0\n" 1878 27 httpd RET read 118/0x76 1878 27 httpd CALL close(9) 1878 27 httpd RET close 0 1878 27 httpd CALL read(7,0x7f7ff7bb2048,0x1f40) 1878 27 httpd RET read -1 errno 35 Resource temporarily unavailable 1878 27 httpd CALL mmap(0,0x800,1,1,8,0,0) 1878 27 httpd RET mmap 140187597938688/0x7f7ff7fa2000 1878 27 httpd CALL writev(7,0x7f7fecbffa00,2) 1878 27 httpd GIO fd 7 wrote 2251 bytes "HTTP/1.1 200 OK\r\nDate: Tue, 27 Oct 2015 13:23:43 GMT\r\nServer: Apache/2.4.16 (Unix)\r\n\ Last-Modified: Tue, 27 Oct 2015 02:51:54 GMT\r\nETag: \"800-5230d290fc802\"\r\nAccept-Rang\ es: bytes\r\nContent-Length: 2048\r\n\r\nfoo\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ ... Ie httpd tries to mmap 2K: 1878 27 httpd CALL mmap(0,0x800,1,1,8,0,0) > Maybe httpd/APR is compiled against some weird non-ABI compatible > system headers? Hmmm. This is apache-2.4.16 from NetBSD pkgsrc; I've tried both a binary package provided by NetBSD as well as a locally compiled pkgsrc version. Next up: manually compiling vanilla httpd, I suppose. :-/ -Jan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org