Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4561118580 for ; Tue, 12 Jan 2016 10:22:28 +0000 (UTC) Received: (qmail 66807 invoked by uid 500); 12 Jan 2016 10:22:28 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 66759 invoked by uid 500); 12 Jan 2016 10:22:27 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 66746 invoked by uid 99); 12 Jan 2016 10:22:27 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 10:22:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 12D21C1806 for ; Tue, 12 Jan 2016 10:22:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=onthewings-net.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id CPQlN9y7zbwo for ; Tue, 12 Jan 2016 10:22:16 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8836E43B42 for ; Tue, 12 Jan 2016 10:22:15 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id x4so12764968lbm.0 for ; Tue, 12 Jan 2016 02:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onthewings-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=X7bhdRllY2rHPzR+P3xtSE4KCObSUJ2qNN0R8W4Jhyk=; b=fD3I/4emJuBM9sMwZcw7B7Kfr7syk87vDBFZU1euye1iWjsmvPqtHpqe96fWJoHcUI nO22b2+ieMORkU+eEiWxkAeHX+68Q8/eGRWb0p0JM223eAtbDqmjlKyfsYER08dM/SEG hKnlxOumesSDRDYJLcLIppCPLlJomHXSb/LI3K3lf4IJhyffNq2lWgDPgObgEPX+GoOn R5a9DUEjlLxGLHhH3w3eiVeBhxNa+15WKxH+ky9WHZCb2KSCb4J0PV55wuDiu0clzGhS kpRhHwqnoaxQMdaB7GuSNInN/3Rl6O6lBQ/C3LSOe9aWO7TbKSCprf1/ix/pxuBYi/Ma Gmgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=X7bhdRllY2rHPzR+P3xtSE4KCObSUJ2qNN0R8W4Jhyk=; b=YYxF8IfgFz0evHCrb5Uwj27bikRdMe0zSsxlcU71ViX5/3u5QonRk/NX23VQAJDe2A TjnvpZIo0H0cbtYN0QJ0ibY42T67zcujWbXaWz8N52CTkrOS5wu1AgJ1w6UfAatVb65p lTBToFPP8H0cso6VgKAQ69In0hLcAFTtdiXa1glR0C2ZWMwzQPjcqVaCJxyYH6tGY7O4 LihwfRvgGumusNGUyV4cwZJg88vhUsXOORPJWQHEbNNIEKwQMFK5sGEehgNoR8mFNAc2 xxoQRVxifgPTqTupBQJl08xgkDAm6zc85XbyJqKmHvneD2zCUEPWq7T798hQC82U7gSj V1YQ== X-Gm-Message-State: ALoCoQkSZiZMYy7nUsQT4/+bq95bmZpAaBeADYKdj6lcjJltzuHbrD2OGqaec41lEtILND71csx2bjFrQsMsMj6jgbdvWIOLLg== X-Received: by 10.112.149.230 with SMTP id ud6mr25462743lbb.12.1452594128424; Tue, 12 Jan 2016 02:22:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.185.5 with HTTP; Tue, 12 Jan 2016 02:21:39 -0800 (PST) In-Reply-To: <962A52C8-67B0-4848-BF91-1C98155AF5EB@jaguNET.com> References: <962A52C8-67B0-4848-BF91-1C98155AF5EB@jaguNET.com> From: Andy Li Date: Tue, 12 Jan 2016 18:21:39 +0800 Message-ID: Subject: Re: Debugging a module that works in homebrew's httpd24 but not OSX's preinstalled one To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=047d7b34383a072a720529206d37 --047d7b34383a072a720529206d37 Content-Type: text/plain; charset=UTF-8 I compiled mod_neko using the APR comes with XCode commandline tools. It is APR 1.4.8, which matches the OSX httpd.. Best regards, Andy On Tue, Jan 12, 2016 at 4:02 AM, Jim Jagielski wrote: > If the module is not using the exact same APR lib (ie, 1.4.x > instead of 1.5.x) then you could easily get this to happen. > > > On Jan 11, 2016, at 2:38 PM, Andy Li wrote: > > > > Hi, > > > > I'm developing (updating) mod_neko , a > > module that let users to use the Neko VM to serve > web > > requests. > > The module already works on Windows and Linux, but I have a problem on > Mac. > > In fact, the module works on the apache httpd 2.4 installed with > > homebrew-apache , but not > the > > OSX preinstalled httpd (which is also 2.4). > > When activating mod_neko on the OSX preinstalled httpd, I can see the log > > message from the ap_hook_post_config function, but it will seg fault and > > never print the log in ap_hook_child_init. The ap_hook_post_config > function > > seem to successfully return, since my log statement is merely above its > > return statement. > > The outputs of apachectl -V/-l/-M of the homebrew httpd and the OSX httpd > > can be found at https://gist.github.com/andyli/2e8da482dea18306ff6f > > Do you have any idea why this happens? Can this be caused by the OSX > httpd > > being compiled with an old apr library? Is there a way to know the exact > > point of when the process seg fault (a stack trace or something)? > > > > Best regards, > > Andy > > --047d7b34383a072a720529206d37--