You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Chetan Reddy <ch...@gmail.com> on 2009/07/09 19:54:31 UTC
apr-1.3.6 on linux kernel 2.6.26
apr builds on my machine(debian testing using kernel 2.6.26) with
HAVE_EPOLL_CREATE1 even though the function isn't implemented on my
system (it's only available since 2.6.27[1]). this causes httpd(with
worker mpm) to segault on startup.
configure.in in apr-1.3.6 checks for epoll_create1 using
AC_CHECK_FUNCS . Instead, should it have a check similar to the check
for epoll_create? i can create a patch if someone can confirm that
this is indeed the problem.
thanks,
-chetan
[1] http://www.kernel.org/doc/man-pages/online/pages/man2/syscalls.2.html
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Arfrever Frehtes Taifersar Arahesis <ar...@gmail.com>.
2009-07-10 03:40:11 Bojan Smojver napisał(a):
> On Thu, 2009-07-09 at 13:54 -0400, Chetan Reddy wrote:
> > apr builds on my machine(debian testing using kernel 2.6.26) with
> > HAVE_EPOLL_CREATE1 even though the function isn't implemented on my
> > system (it's only available since 2.6.27[1]). this causes httpd(with
> > worker mpm) to segault on startup.
> >
> > configure.in in apr-1.3.6 checks for epoll_create1 using
> > AC_CHECK_FUNCS . Instead, should it have a check similar to the check
> > for epoll_create? i can create a patch if someone can confirm that
> > this is indeed the problem.
>
> Looks like glibc is playing tricks on us. Anyone knows of the rationale
> of having a non-implemented function in glibc?
Maybe glibc has been built with headers of newer version of kernel
than currently used kernel.
--
Arfrever Frehtes Taifersar Arahesis
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Thu, 2009-07-09 at 13:54 -0400, Chetan Reddy wrote:
> apr builds on my machine(debian testing using kernel 2.6.26) with
> HAVE_EPOLL_CREATE1 even though the function isn't implemented on my
> system (it's only available since 2.6.27[1]). this causes httpd(with
> worker mpm) to segault on startup.
>
> configure.in in apr-1.3.6 checks for epoll_create1 using
> AC_CHECK_FUNCS . Instead, should it have a check similar to the check
> for epoll_create? i can create a patch if someone can confirm that
> this is indeed the problem.
Looks like glibc is playing tricks on us. Anyone knows of the rationale
of having a non-implemented function in glibc?
--
Bojan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Peter Pöml <po...@suse.de>.
Bojan,
Am 15.07.2009 um 12:35 schrieb Bojan Smojver:
> On Wed, 2009-07-15 at 14:07 +1000, Bojan Smojver wrote:
>> Can you tell me if the attached runs and detects things properly on
>> your system?
>
> OK, this is probably slightly better.
I had noticed an apr testsuite failure a few days ago, which affected
openSUSE Factory (the development tree). The testsock test failed:
testsock : /bin/sh: line 2: 30059 Segmentation fault
On Fedora 11, I see a failure at the same place as well, which might
be related or not - slightly different error output from the build
system:
testsock : modprobe: FATAL: Could not load /lib/modules/
2.6.27.23-0.1-xen/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.27.23-0.1-xen/
modules.dep: No such file or directory
/bin/sh: line 2: 26817 Segmentation fault ./$prog
I added your patch and did a test build, and it fixed the build on
*both* platforms.
Sorry that this is all I can do at the very moment,
and thanks for your work on this,
Peter
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Ruediger Pluem wrote:
>
> On 07/16/2009 07:38 PM, Chetan Reddy wrote:
>> On Wed, Jul 15, 2009 at 6:35 AM, Bojan Smojver<bo...@rexursive.com> wrote:
>>> On Wed, 2009-07-15 at 14:07 +1000, Bojan Smojver wrote:
>>>> Can you tell me if the attached runs and detects things properly on
>>>> your system?
>>> OK, this is probably slightly better.
>>>
>> This patch correctly identified all three functions as not present on
>> my system(and hence fixed the segfault). Thank you for fixing this.
>>
>
> Does fixing this issue warrant yet another apr release?
Not really; still seems like an OS bug to have mismatched headers and
kernel; would suggest an errata on the README of the download page, and
the bugzilla issue proudly displaying an FAQ keyword with title/summary
adjusted accordingly.
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Arfrever Frehtes Taifersar Arahesis <ar...@gmail.com>.
2009-07-20 15:28:25 Jim Jagielski napisał(a):
> On Jul 16, 2009, at 6:30 PM, Bojan Smojver wrote:
> > On Thu, 2009-07-16 at 20:42 +0200, Ruediger Pluem wrote:
> >> Does fixing this issue warrant yet another apr release?
> >
> > My vote would be yes. Version numbers are cheap.
> Looking over all this, I would like to suggest we do a quick 1.3.7 for
> APR,
> mostly so we can have httpd 2.2.12 ship with it. Comments?
+1.
--
Arfrever Frehtes Taifersar Arahesis
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Sander Striker <s....@striker.nl>.
On Mon, Jul 20, 2009 at 8:18 AM, Jim Jagielski<ji...@jagunet.com> wrote:
> Later on today or tomorrow (to give people enough time to
> complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
> to formal release or not (my pref is to release); I am mainly
> doing this so what we have is "best version available" as well
> as for the httpd 2.2.12 release...
I don't really see using a non-formal release for httpd as an option.
I'd rather stay far away from going back down the bundling of
unreleased versions path. In short, if we have a releasable APR, by
all means tag :)
Cheers,
Sander
> On Jul 20, 2009, at 10:10 AM, Jim Jagielski wrote:
>
>> We're looking at mainly the configure.in detection patch and a bunch
>> of Netware updates, which look safe... So my pref will be to tag
>> from HEAD.
>>
>> On Jul 20, 2009, at 9:45 AM, Graham Leggett wrote:
>>
>>> Jim Jagielski wrote:
>>>
>>>> Looking over all this, I would like to suggest we do a quick 1.3.7 for
>>>> APR,
>>>> mostly so we can have httpd 2.2.12 ship with it. Comments?
>>>
>>> +1.
>>>
>>> Regards,
>>> Graham
>>> --
>>
>
>
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Paul Querna <pa...@querna.org>.
2009/7/20 Jim Jagielski <ji...@jagunet.com>:
> Later on today or tomorrow (to give people enough time to
> complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
> to formal release or not (my pref is to release); I am mainly
> doing this so what we have is "best version available" as well
> as for the httpd 2.2.12 release...
formal release.
Do not release httpd with anon-formal release of apr,
Thanks,
Paul
> On Jul 20, 2009, at 10:10 AM, Jim Jagielski wrote:
>
>> We're looking at mainly the configure.in detection patch and a bunch
>> of Netware updates, which look safe... So my pref will be to tag
>> from HEAD.
>>
>> On Jul 20, 2009, at 9:45 AM, Graham Leggett wrote:
>>
>>> Jim Jagielski wrote:
>>>
>>>> Looking over all this, I would like to suggest we do a quick 1.3.7 for APR,
>>>> mostly so we can have httpd 2.2.12 ship with it. Comments?
>>>
>>> +1.
>>>
>>> Regards,
>>> Graham
>>> --
>>
>
>
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Guenter Knauf <fu...@apache.org>.
Jim Jagielski schrieb:
> Later on today or tomorrow (to give people enough time to
> complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
> to formal release or not (my pref is to release); I am mainly
> doing this so what we have is "best version available" as well
> as for the httpd 2.2.12 release...
+1 on tagging and formal release.
Günter.
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Ruediger Pluem <rp...@apache.org>.
On 07/20/2009 05:18 PM, Jim Jagielski wrote:
> Later on today or tomorrow (to give people enough time to
> complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
> to formal release or not (my pref is to release); I am mainly
> doing this so what we have is "best version available" as well
> as for the httpd 2.2.12 release...
+1 on tagging and formal release.
Regards
Rüdiger
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Jim Jagielski <ji...@jaguNET.com>.
OK... Before I tag and roll, I should likely downgrade from
libtool2 to libtool1.5, right?
Our distros should make that assumption, I think.
On Jul 20, 2009, at 3:03 PM, Guenter Knauf wrote:
> Hi,
> Graham Leggett schrieb:
>> Is HEAD not currently v1.4.0?
> I thought that HEAD is un-branched trunk = v2.0.0;
> and we have a branch-1.4.x trunk, a branch-1.3.x trunk, a branch-1.2.x
> trunk, ........., and a branch-0.9.x trunk :)
>
> Günter.
>
>
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Jim Jagielski <ji...@jaguNET.com>.
OK... Before I tag and roll, I should likely downgrade from
libtool2 to libtool1.5, right?
Our distros should make that assumption, I think.
On Jul 20, 2009, at 3:03 PM, Guenter Knauf wrote:
> Hi,
> Graham Leggett schrieb:
>> Is HEAD not currently v1.4.0?
> I thought that HEAD is un-branched trunk = v2.0.0;
> and we have a branch-1.4.x trunk, a branch-1.3.x trunk, a branch-1.2.x
> trunk, ........., and a branch-0.9.x trunk :)
>
> Günter.
>
>
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Guenter Knauf <fu...@apache.org>.
Hi,
Graham Leggett schrieb:
> Is HEAD not currently v1.4.0?
I thought that HEAD is un-branched trunk = v2.0.0;
and we have a branch-1.4.x trunk, a branch-1.3.x trunk, a branch-1.2.x
trunk, ........., and a branch-0.9.x trunk :)
Günter.
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Graham Leggett <mi...@sharp.fm>.
Jim Jagielski wrote:
> HEAD of the 1.3 branch :)
Ack :)
Regards,
Graham
--
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Jim Jagielski <ji...@jagunet.com>.
HEAD of the 1.3 branch :)
On Jul 20, 2009, at 11:21 AM, Graham Leggett wrote:
> Jim Jagielski wrote:
>
>> Later on today or tomorrow (to give people enough time to
>> complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
>> to formal release or not (my pref is to release); I am mainly
>> doing this so what we have is "best version available" as well
>> as for the httpd 2.2.12 release...
>
> Is HEAD not currently v1.4.0?
>
> Regards,
> Graham
> --
Re: Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Graham Leggett <mi...@sharp.fm>.
Jim Jagielski wrote:
> Later on today or tomorrow (to give people enough time to
> complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
> to formal release or not (my pref is to release); I am mainly
> doing this so what we have is "best version available" as well
> as for the httpd 2.2.12 release...
Is HEAD not currently v1.4.0?
Regards,
Graham
--
Tagging APR-1.3.7 (Was: Re: apr-1.3.6 on linux kernel 2.6.26)
Posted by Jim Jagielski <ji...@jaguNET.com>.
Later on today or tomorrow (to give people enough time to
complain :) ) I will be tagging 1.3.7 from HEAD. We can choose
to formal release or not (my pref is to release); I am mainly
doing this so what we have is "best version available" as well
as for the httpd 2.2.12 release...
On Jul 20, 2009, at 10:10 AM, Jim Jagielski wrote:
> We're looking at mainly the configure.in detection patch and a bunch
> of Netware updates, which look safe... So my pref will be to tag
> from HEAD.
>
> On Jul 20, 2009, at 9:45 AM, Graham Leggett wrote:
>
>> Jim Jagielski wrote:
>>
>>> Looking over all this, I would like to suggest we do a quick 1.3.7
>>> for APR,
>>> mostly so we can have httpd 2.2.12 ship with it. Comments?
>>
>> +1.
>>
>> Regards,
>> Graham
>> --
>
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Jim Jagielski <ji...@jaguNET.com>.
We're looking at mainly the configure.in detection patch and a bunch
of Netware updates, which look safe... So my pref will be to tag
from HEAD.
On Jul 20, 2009, at 9:45 AM, Graham Leggett wrote:
> Jim Jagielski wrote:
>
>> Looking over all this, I would like to suggest we do a quick 1.3.7
>> for APR,
>> mostly so we can have httpd 2.2.12 ship with it. Comments?
>
> +1.
>
> Regards,
> Graham
> --
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Graham Leggett <mi...@sharp.fm>.
Jim Jagielski wrote:
> Looking over all this, I would like to suggest we do a quick 1.3.7 for APR,
> mostly so we can have httpd 2.2.12 ship with it. Comments?
+1.
Regards,
Graham
--
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Jim Jagielski <ji...@jaguNET.com>.
Looking over all this, I would like to suggest we do a quick 1.3.7 for
APR,
mostly so we can have httpd 2.2.12 ship with it. Comments?
On Jul 16, 2009, at 6:30 PM, Bojan Smojver wrote:
> On Thu, 2009-07-16 at 20:42 +0200, Ruediger Pluem wrote:
>> Does fixing this issue warrant yet another apr release?
>
> My vote would be yes. Version numbers are cheap.
>
> --
> Bojan
>
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Thu, 2009-07-16 at 17:16 -0700, Gregg L. Smith wrote:
> Please fix this before you do
> Linking...
> Creating library Release/libaprutil-1.lib and object
> Release/libaprutil-1.exp
> apr_buckets_alloc.obj : error LNK2001: unresolved external symbol
> _apr_pool_allocator_get
> Release\libaprutil-1.dll : fatal error LNK1120: 1 unresolved externals
This looks like APR-util to me, not APR. Correct?
BTW, I don't have Windows, so someone else will have to fix this for
you.
--
Bojan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by "Gregg L. Smith" <li...@glewis.com>.
Please fix this before you do
Linking...
Creating library Release/libaprutil-1.lib and object
Release/libaprutil-1.exp
apr_buckets_alloc.obj : error LNK2001: unresolved external symbol
_apr_pool_allocator_get
Release\libaprutil-1.dll : fatal error LNK1120: 1 unresolved externals
Regards,
Gregg
Bojan Smojver wrote:
> On Thu, 2009-07-16 at 20:42 +0200, Ruediger Pluem wrote:
>
>> Does fixing this issue warrant yet another apr release?
>>
>
> My vote would be yes. Version numbers are cheap.
>
>
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Thu, 2009-07-16 at 20:42 +0200, Ruediger Pluem wrote:
> Does fixing this issue warrant yet another apr release?
My vote would be yes. Version numbers are cheap.
--
Bojan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Ruediger Pluem <rp...@apache.org>.
On 07/16/2009 07:38 PM, Chetan Reddy wrote:
> On Wed, Jul 15, 2009 at 6:35 AM, Bojan Smojver<bo...@rexursive.com> wrote:
>> On Wed, 2009-07-15 at 14:07 +1000, Bojan Smojver wrote:
>>> Can you tell me if the attached runs and detects things properly on
>>> your system?
>> OK, this is probably slightly better.
>>
>
> This patch correctly identified all three functions as not present on
> my system(and hence fixed the segfault). Thank you for fixing this.
>
Does fixing this issue warrant yet another apr release?
Regards
Rüdiger
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Chetan Reddy <ch...@gmail.com>.
On Wed, Jul 15, 2009 at 6:35 AM, Bojan Smojver<bo...@rexursive.com> wrote:
> On Wed, 2009-07-15 at 14:07 +1000, Bojan Smojver wrote:
>> Can you tell me if the attached runs and detects things properly on
>> your system?
>
> OK, this is probably slightly better.
>
This patch correctly identified all three functions as not present on
my system(and hence fixed the segfault). Thank you for fixing this.
-chetan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Wed, 2009-07-15 at 14:07 +1000, Bojan Smojver wrote:
> Can you tell me if the attached runs and detects things properly on
> your system?
OK, this is probably slightly better.
--
Bojan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Wed, 2009-07-15 at 09:38 +1000, Bojan Smojver wrote:
> Probably prudent to do all of them the same way as epoll_create().
Can you tell me if the attached runs and detects things properly on your
system?
--
Bojan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Tue, 2009-07-14 at 14:12 -0400, Chetan Reddy wrote:
> confdefs.h also has HAVE_DUP3 set to 1 even though a simple test
> program calling dup3 returns -1 with errno 38 (Function not
> implemented). So i guess we'd need similar checks for dup3.
OK, thanks. So we'll need to check for that one too.
> accept4 is correctly detected as by AC_CHECK_FUNCS as not present on
> my system (and a grep for accept4 in /usr/include shows that it isn't
> defined).
My guess, because of this:
-----------------
The accept4() system call is available starting with Linux 2.6.28;
support in glibc is available starting with version 2.10.
-----------------
So, it's only a matter of time before we get bitten by this one too.
Probably prudent to do all of them the same way as epoll_create().
--
Bojan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Chetan Reddy <ch...@gmail.com>.
On Mon, Jul 13, 2009 at 7:17 PM, Bojan Smojver<bo...@rexursive.com> wrote:
>
> I've seen you patch attached to bug #47519. Is this the only function
> that is present by unimplemented on Debian you are running? How about
> the rest of the related functions like dup3 and accept4? If they could
> potentially be causing problems as well, we can work around them in
> configure.in too.
confdefs.h also has HAVE_DUP3 set to 1 even though a simple test
program calling dup3 returns -1 with errno 38 (Function not
implemented). So i guess we'd need similar checks for dup3.
accept4 is correctly detected as by AC_CHECK_FUNCS as not present on
my system (and a grep for accept4 in /usr/include shows that it isn't
defined).
-chetan
Re: apr-1.3.6 on linux kernel 2.6.26
Posted by Bojan Smojver <bo...@rexursive.com>.
On Thu, 2009-07-09 at 13:54 -0400, Chetan Reddy wrote:
> configure.in in apr-1.3.6 checks for epoll_create1 using
> AC_CHECK_FUNCS . Instead, should it have a check similar to the check
> for epoll_create? i can create a patch if someone can confirm that
> this is indeed the problem.
I've seen you patch attached to bug #47519. Is this the only function
that is present by unimplemented on Debian you are running? How about
the rest of the related functions like dup3 and accept4? If they could
potentially be causing problems as well, we can work around them in
configure.in too.
--
Bojan