Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EFEED173B0 for ; Fri, 16 Oct 2015 13:08:57 +0000 (UTC) Received: (qmail 33060 invoked by uid 500); 16 Oct 2015 13:08:51 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 33001 invoked by uid 500); 16 Oct 2015 13:08:51 -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 32918 invoked by uid 99); 16 Oct 2015 13:08:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 13:08:51 +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 5E2961A0692 for ; Fri, 16 Oct 2015 13:08:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.01 X-Spam-Level: X-Spam-Status: No, score=-0.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-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 b0N_XpzEqcek for ; Fri, 16 Oct 2015 13:08:50 +0000 (UTC) Received: from mailserver.kippdata.de (capsella.kippdata.de [195.227.30.149]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 9CEC820925 for ; Fri, 16 Oct 2015 13:08:49 +0000 (UTC) Received: from [10.0.110.6] ([10.198.19.77]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id t9GD8lPp004563 for ; Fri, 16 Oct 2015 15:08:48 +0200 (CEST) Subject: Re: 2.4.17 alignment issue sparc/ia64 To: dev@httpd.apache.org References: <5620EF0E.7000109@kippdata.de> From: Rainer Jung Message-ID: <5620F6D4.2000204@kippdata.de> Date: Fri, 16 Oct 2015 15:08:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Am 16.10.2015 um 14:56 schrieb Yann Ylavic: > On Fri, Oct 16, 2015 at 2:48 PM, Yann Ylavic wrote: >> On Fri, Oct 16, 2015 at 2:35 PM, Rainer Jung wrote: >>> >>> I didn't yet have the time to reproduce and test your patch, but the >>> APR_ALIGN((size),sizeof(void *)) align approach would not work. The problem >>> here is that even or especially when building for 32 Bits and then using a >>> 64 Bit data type, the alignment fails. So the pointer size would be 4 here, >>> but the requirement alignment 8 bytes. >> >> Hm, correct, each integral type (greater than the word) needs be >> aligned on its size! > > Though the issue here is not accessing the type as an integral, so > aligning on 4 bytes (for 32 bit hardware) should enough for accessing > each scoreborad entry/struct (the members of the structs themselves > will still be aligned according to their type, so they can also be > safely accessed). Wasn't the bus error occuring in ws->last_used = apr_time_now(); and the address is (dbx) print &(ws->last_used) &ws->last_used = 0xffffffff7bb00094 not divisible by 8 although the data type (not pointer size) is 64 Bit. Regards, Rainer