Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 112F1200C10 for ; Fri, 3 Feb 2017 09:23:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0FC2D160B55; Fri, 3 Feb 2017 08:23:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 58791160B48 for ; Fri, 3 Feb 2017 09:23:58 +0100 (CET) Received: (qmail 54547 invoked by uid 500); 3 Feb 2017 08:23:52 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 54537 invoked by uid 99); 3 Feb 2017 08:23:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2017 08:23:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DC83F18231E for ; Fri, 3 Feb 2017 08:23:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.499 X-Spam-Level: X-Spam-Status: No, score=-3.499 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id A06AU_KfsMGF for ; Fri, 3 Feb 2017 08:23:51 +0000 (UTC) Received: from mail.acc.umu.se (mail.acc.umu.se [130.239.18.156]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 773965FB79 for ; Fri, 3 Feb 2017 08:23:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 24B8B15B for ; Fri, 3 Feb 2017 09:22:50 +0100 (MET) X-Virus-Scanned: amavisd-new at acc.umu.se Received: by mail.acc.umu.se (Postfix, from userid 12143) id DCCD415A; Fri, 3 Feb 2017 09:22:48 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by mail.acc.umu.se (Postfix) with ESMTP id DB08C159 for ; Fri, 3 Feb 2017 09:22:48 +0100 (MET) Date: Fri, 3 Feb 2017 09:22:48 +0100 (MET) From: Niklas Edmundsson To: dev@httpd.apache.org Subject: Re: httpd 2.4.25, mpm_event, ssl: segfaults In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (GSO 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed archived-at: Fri, 03 Feb 2017 08:23:59 -0000 On Thu, 2 Feb 2017, Jacob Champion wrote: >>> We've started to see spurious segfaults with httpd 2.4.25, mpm_event, ssl >>> on >>> Ubuntu 14.04LTS. Not frequent, but none the less happening. >>> >>> #4 ssl_io_filter_output (f=0x7f507013cfe0, bb=0x7f4f840be168) at >>> ssl_engine_io.c:1746 >>> data = 0x7f5075518000 >> 0x7f5075518000> >>> len = 4194304 >>> bucket = 0x7f4f840b1ba8 >>> status = >>> filter_ctx = 0x7f507013cf88 >>> inctx = >>> outctx = 0x7f507013d008 >>> rblock = APR_NONBLOCK_READ > > Idle thoughts: "Cannot access memory" in this case could be a red herring, if > Niklas' gdb can't peer into mmap'd memory spaces [1]. It seems reasonable > that the data in question could be mmap'd, given the nice round address and 4 > MiB length (equal to APR_MMAP_LIMIT). Oooh, hadn't even though of that... > That doesn't mean we're looking in the wrong place, though, since SIGBUS can > also be generated by an out-of-bounds access to an mmap'd region. > > Niklas, what version of APR are you using? Are you serving large (> 4 MiB) > static files? I have not been able to reproduce so far (Ubuntu 16.04, httpd > 2.4.25 + mod_ssl + mpm_event). Yes, this is a file archive offload target ONLY serving large files. APR from httpd-2.4.25-deps.tar.bz2 and ./configure --prefix=/lap/apache/2.4.25.sslcleanuppatch --sysconfdir=/var/conf/apache2 --with-included-apr --enable-nonportable-atomics=yes --enable-layout=GNU --enable-mpms-shared=all --with-gdbm --without-berkeley-db --enable-mods-shared=all --enable-cache=shared --enable-cache-disk=shared --enable-ssl=shared --enable-cgi=shared --enable-suexec --with-suexec-caller=www-srv --with-suexec-uidmin=1000 --with-suexec-gidmin=1000 CFLAGS=-O2 - (yes, the cgi/suexec stuff isn't really used but we haven't gotten around to change our builds). It's indeed using that APR according to /proc/pid/maps, libapr-1.so.0.5.2 in the httpd install tree. /Nikke -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se --------------------------------------------------------------------------- This tagline SHAREWARE. Send $5. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=