Return-Path: X-Original-To: apmail-perl-dev-archive@www.apache.org Delivered-To: apmail-perl-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 36F8F10BDC for ; Wed, 30 Oct 2013 18:25:56 +0000 (UTC) Received: (qmail 93110 invoked by uid 500); 30 Oct 2013 18:24:50 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 92582 invoked by uid 500); 30 Oct 2013 18:24:43 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 92033 invoked by uid 99); 30 Oct 2013 18:24:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 18:24:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of steve.m.hay@googlemail.com designates 209.85.220.45 as permitted sender) Received: from [209.85.220.45] (HELO mail-pa0-f45.google.com) (209.85.220.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 18:24:36 +0000 Received: by mail-pa0-f45.google.com with SMTP id kp14so1372865pab.4 for ; Wed, 30 Oct 2013 11:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SxM/w9RC7vGQDcdBUOrUKCPeHU7cCV3+RclGBhIoRQ4=; b=ua3VwUZ+AOvbVqx5dAR1zSWGgQLf3PsUIZZY/QypFhnan3GhERfE297zaHJhVtUdhG ZH5X1bl3A6LDDrny0M/mu3MMVNMXx1yRV/miHKOBdjdQCbP8Zg6FrOk0JYL+8eyC/2wu 4+krHIZwbNfSBdqsT5s9l6yOGOrURC/24K+NWXrTgmVYIJiXDWu33gteg8iL/a71ifFi AzXrK8NOYtpVJf6kYXV3elcx/vnAtK+CgqafK/DJvqSDWTSbSU1pgU96FaCzuMX+P8kW lH9wPfNieIpxiNUj5vpmmzLb9wjQ5w2poAC1O0hlPYr6nBHaJjGM2dekU5LfbaJB60KF Ed8Q== MIME-Version: 1.0 X-Received: by 10.68.203.195 with SMTP id ks3mr6424825pbc.83.1383157452310; Wed, 30 Oct 2013 11:24:12 -0700 (PDT) Received: by 10.68.174.161 with HTTP; Wed, 30 Oct 2013 11:24:12 -0700 (PDT) In-Reply-To: <5270E889.7070001@redhat.com> References: <5239812D.4040906@redhat.com> <52398EF8.2070506@redhat.com> <526FA19B.6050504@redhat.com> <5270E889.7070001@redhat.com> Date: Wed, 30 Oct 2013 18:24:12 +0000 Message-ID: Subject: Re: httpd24 on Windows? From: Steve Hay To: =?UTF-8?Q?Jan_Kalu=C5=BEa?= Cc: dev@perl.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 30 October 2013 11:07, Jan Kalu=C5=BEa wrote: > On 10/29/2013 12:52 PM, Jan Kalu=C5=BEa wrote: >> >> On 10/28/2013 10:05 AM, Steve Hay wrote: >>> >>> On 4 October 2013 18:04, Steve Hay wrote: >>>> >>>> On 18 September 2013 12:31, Jan Kalu=C5=BEa wrote= : >>>>> >>>>> On 09/18/2013 12:46 PM, Steve Hay wrote: >>>>>> >>>>>> >>>>>> On 18 September 2013 11:32, Jan Kalu=C5=BEa wro= te: >>>>>>> >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> what's the state of mod_perl httpd24 branch on Windows currently? I >>>>>>> somehow >>>>>>> got lost in the updates and I'm not sure what's the current state. >>>>>>> >>>>>>> Does it compile and work properly if you build against httpd-2.2? >>>>>>> If it >>>>>>> does, maybe we could do the merge and think about release even >>>>>>> when it >>>>>>> does >>>>>>> not work currently on Windows with httpd-2.4. >>>>>>> >>>>>>> Lot of people are probably interested in mod_perl for Linux and not >>>>>>> releasing working code just because of Windows build seems to be >>>>>>> bad idea >>>>>>> to >>>>>>> me. Maybe we could get more people to try fixing mod_perl on Window= s >>>>>>> using >>>>>>> this strategy too. >>>>>>> >>>>>> >>>>>> This sounds like a good plan, but can I get back to you on this in a >>>>>> few days time? I'm currently waylaid with the release of perl-5.19.4 >>>>>> and I've forgotten myself where I got to with this on Windows! >>>>>> >>>>> >>>>> Great :). I've just wanted to resurrect this discussion after a while= . >>>>> >>>> >>>> I've tried the current httpd24 branch with Apache Lounge's 2.4.6 and >>>> my own build of Perl 5.19.4. The build works fine but the test suite >>>> crashes httpd.exe in t/api/add_config.t ("free from wrong pool"), >>>> which I'm sure was not happening for me previously. >>> >>> >>> I've been looking more at this but haven't figured it out yet. >>> >>> Debugging the test server processing the URL >>> http://localhost:8562/TestAPI__add_config/, I find that it crashes in >>> modperl_cleanup_pnotes() - in Safefree() on the first call to >>> Perl_hv_undef_flags(): >>> >>> if (header->interpreter !=3D aTHX) { >>> Perl_croak_nocontext("panic: free from wrong pool, %p!=3D%p", >>> header->interpreter, aTHX); >>> } >>> >>> The header->interpreter is the value saved away in cleanup_data->perl >>> by modperl_pnotes_cleanup_data(), which is registered as the cleanup >>> routine when the pnotes is made in modperl_pnotes(), so that's been >>> correctly restored to aTHX in modperl_cleanup_pnotes(), but the aTHX >>> in Safefree() is different and I don't know why, or how this was >>> working before :-/ >>> >> >> Hm, I have no idea what's going on here, but it does not happen for me >> with older Perl. The good thing is that Fedora 20 just updated to >> Perl-5.18, so I will try to install F20 and Perl-5.18 and give it a try. >> Will write you soon how it worked. > > > The tests works on Linux even with Perl-5.18, so I presume it's caused by > the Perl build options on Windows or it's Windows-only related bug... > I've now tried other perls (5.16.0, 5.18.0 and 5.19.4) in other build configurations (with/without PERL_IMPLICIT_SYS) and can confirm that the crash only occurs with perls built with PERL_IMPLICIT_SYS enabled. I generally use perl with that disabled (although that isn't the default configuration), so that's probably what I was doing when I had this working back in July. That is indeed a Windows-specific thing, unfortunately :-/ I will see what I can do to fix it since most users will indeed have the default configuration (certainly ActivePerl and Strawberry Perl both do) and hence experience the crash. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org