Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

[ANNOUNCE] libapreq-1.1 is out

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


joe+apache at sunstarsys

Jan 28, 2003, 4:18 PM

Post #1 of 16 (859 views)
Permalink
[ANNOUNCE] libapreq-1.1 is out

libapreq-1.1 is now available on CPAN,
and also through the Apache website at

http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz

--
Joe Schaefer


matt at sergeant

Jan 30, 2003, 7:22 AM

Post #2 of 16 (844 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

On 28 Jan 2003, Joe Schaefer wrote:

>
> libapreq-1.1 is now available on CPAN,
> and also through the Apache website at
>
> http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz

Failed badly to install for me. First of all it won't install via the CPAN
shell as root because the test harness tries to deliver files from what
becomes a root-owned directory, and it won't do that. Secondly it seems to
segfault my apache, so it leaves zombies lying around. Not sure if that's
libapreq or something else though. It's the first problem that needs
fixing most.

--
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: spam-sig [at] spamtrap


joe at sunstarsys

Jan 30, 2003, 7:46 AM

Post #3 of 16 (830 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Matt Sergeant <matt [at] sergeant> writes:

> On 28 Jan 2003, Joe Schaefer wrote:
>
> >
> > libapreq-1.1 is now available on CPAN,
> > and also through the Apache website at
> >
> > http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz
>
> Failed badly to install for me. First of all it won't install via the
> CPAN shell as root because the test harness tries to deliver files
> from what becomes a root-owned directory, and it won't do that.

The test suite was lifted directly from mod_perl. Are you able to
able to test/install mod_perl using the same approach?

> Secondly it seems to segfault my apache, so it leaves zombies lying
> around. Not sure if that's libapreq or something else though.

It would help to know your platform details. We tried to eliminate
all segfaults related to perl-5.8.0, but in the process we may have
introduced new ones.

--
Joe Schaefer


autarch at urth

Jan 30, 2003, 1:38 PM

Post #4 of 16 (844 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

On Tue, 28 Jan 2003, Joe Schaefer wrote:

> libapreq-1.1 is now available on CPAN,
> and also through the Apache website at
>
> http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz

What are the difference between this version and 1.05? The changelog ends
at 1.05.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/


joe at sunstarsys

Jan 30, 2003, 2:05 PM

Post #5 of 16 (830 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Dave Rolsky <autarch [at] urth> writes:

> On Tue, 28 Jan 2003, Joe Schaefer wrote:
>
> > libapreq-1.1 is now available on CPAN,
> > and also through the Apache website at
> >
> > http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz
>
> What are the difference between this version and 1.05? The changelog
> ends at 1.05.

Other than the release date of 1.1, nothing else should have changed.
I don't think current cvs has changed since I tagged v1_1 for release.

--
Joe Schaefer


stas at stason

Jan 30, 2003, 3:36 PM

Post #6 of 16 (830 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Joe Schaefer wrote:
> Matt Sergeant <matt [at] sergeant> writes:
>
>
>>On 28 Jan 2003, Joe Schaefer wrote:
>>
>>
>>>libapreq-1.1 is now available on CPAN,
>>>and also through the Apache website at
>>>
>>> http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz
>>
>>Failed badly to install for me. First of all it won't install via the
>>CPAN shell as root because the test harness tries to deliver files
>>from what becomes a root-owned directory, and it won't do that.
>
>
> The test suite was lifted directly from mod_perl. Are you able to
> able to test/install mod_perl using the same approach?

Joe, I thought you've reverted to use the old test suite?

Matt, Apache::Test may not work when run under root, because Apache won't let
you start the server as 'User root' so it tries to use 'nobody' or something
else as the username the server runs under, which of course has no perms to
access files created by root and hence the problem.

I suppose the solution is to chown all the autogenerated files to that chosen
user and then the issue will be resolved. Meanwhile please try to run the test
suite as non-root.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


matt at sergeant

Jan 30, 2003, 3:41 PM

Post #7 of 16 (842 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

On Thursday, Jan 30, 2003, at 14:46 Europe/London, Joe Schaefer wrote:

> Matt Sergeant <matt [at] sergeant> writes:
>
>> On 28 Jan 2003, Joe Schaefer wrote:
>>
>>>
>>> libapreq-1.1 is now available on CPAN,
>>> and also through the Apache website at
>>>
>>> http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz
>>
>> Failed badly to install for me. First of all it won't install via the
>> CPAN shell as root because the test harness tries to deliver files
>> from what becomes a root-owned directory, and it won't do that.
>
> The test suite was lifted directly from mod_perl. Are you able to
> able to test/install mod_perl using the same approach?

I don't know - I'd never install mod_perl from CPAN ;-)

But it's fairly easy to debug. su to root, extract the archive and try
a make test. It's obvious why it fails. Easiest thing to do is skip
those tests if you detect a root install, or if you can detect that the
user running httpd can't access the directory and all directories above
it.

>> Secondly it seems to segfault my apache, so it leaves zombies lying
>> around. Not sure if that's libapreq or something else though.
>
> It would help to know your platform details. We tried to eliminate
> all segfaults related to perl-5.8.0, but in the process we may have
> introduced new ones.

perl 5.00503 on RH 6.2 and mod_perl 1.26 IIRC. The segfault was during
the file upload tests.

Matt.


stas at stason

Jan 30, 2003, 3:51 PM

Post #8 of 16 (827 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Matt Sergeant wrote:
[...]
>> It would help to know your platform details. We tried to eliminate
>> all segfaults related to perl-5.8.0, but in the process we may have
>> introduced new ones.
>
>
> perl 5.00503 on RH 6.2 and mod_perl 1.26 IIRC. The segfault was during
> the file upload tests.

And the backtrace is ...?



__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


joe+apache at sunstarsys

Jan 30, 2003, 4:00 PM

Post #9 of 16 (830 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Matt Sergeant <matt [at] sergeant> writes:

[...]

> > It would help to know your platform details. We tried to eliminate
> > all segfaults related to perl-5.8.0, but in the process we may have
> > introduced new ones.
>
> perl 5.00503 on RH 6.2 and mod_perl 1.26 IIRC. The segfault was during
> the file upload tests.

Thanks for the feedback. It appears we have more work to do on the new
upload code in Request.xs. I think we should aim to release a new version,
quickly, that's dedicated to fixing these immediate problems with the
1.1 release.

--
Joe Schaefer


stas at stason

Jan 30, 2003, 4:14 PM

Post #10 of 16 (830 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Joe Schaefer wrote:
> Stas Bekman <stas [at] stason> writes:
>
>
>>Joe, I thought you've reverted to use the old test suite?
>
>
> I did, sorry for the confusion. The test suite in 1.1 is based
> on Apache::test, not Apache::Test.

In any case we need to solve this problem for Apache::Test. I'll take care of it.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


joe at sunstarsys

Jan 30, 2003, 4:16 PM

Post #11 of 16 (831 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Stas Bekman <stas [at] stason> writes:

> Joe, I thought you've reverted to use the old test suite?

I did, sorry for the confusion. The test suite in 1.1 is based
on Apache::test, not Apache::Test.

--
Joe Schaefer


nathan at byrd

Jan 30, 2003, 8:44 PM

Post #12 of 16 (825 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

On Thu, 2003-01-30 at 16:36, Stas Bekman wrote:
> Joe Schaefer wrote:
> > Matt Sergeant <matt [at] sergeant> writes:
> >
> >
> >>On 28 Jan 2003, Joe Schaefer wrote:
> >>
> >>
> >>>libapreq-1.1 is now available on CPAN,
> >>>and also through the Apache website at
> >>>
> >>> http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz
> >>
> >>Failed badly to install for me. First of all it won't install via the
> >>CPAN shell as root because the test harness tries to deliver files
> >>from what becomes a root-owned directory, and it won't do that.
> >
> >
> > The test suite was lifted directly from mod_perl. Are you able to
> > able to test/install mod_perl using the same approach?
>
> Joe, I thought you've reverted to use the old test suite?
>
> Matt, Apache::Test may not work when run under root, because Apache won't let
> you start the server as 'User root' so it tries to use 'nobody' or something
> else as the username the server runs under, which of course has no perms to
> access files created by root and hence the problem.
>
> I suppose the solution is to chown all the autogenerated files to that chosen
> user and then the issue will be resolved. Meanwhile please try to run the test
> suite as non-root.
>
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas [at] stason http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com

Stas,

I've run into the same problem while testing with Apache::PAR.
Unfortunately, I don't think chown'ing the files will work (at least in
my case), because the directory itself (/root/.cpanplus on my box) isn't
accessible from a non-root user. I haven't worked on a solution yet,
but I was thinking the best thing to do might be to create a temp
directory (maybe with a prompt for the directory to create it under)
from the generated Makefile in the start_httpd section and copy any
content (and then remove it in kill_httpd)

Maybe this would be a good feature to add to the Apache::test and
Apache::Test modules?

Thanks,

--
Nathan Byrd <nathan [at] byrd>


stas at stason

Jan 30, 2003, 9:18 PM

Post #13 of 16 (839 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Nathan Byrd wrote:
[...]
>>Matt, Apache::Test may not work when run under root, because Apache won't let
>>you start the server as 'User root' so it tries to use 'nobody' or something
>>else as the username the server runs under, which of course has no perms to
>>access files created by root and hence the problem.
>>
>>I suppose the solution is to chown all the autogenerated files to that chosen
>>user and then the issue will be resolved. Meanwhile please try to run the test
>>suite as non-root.
[...]
> I've run into the same problem while testing with Apache::PAR.
> Unfortunately, I don't think chown'ing the files will work (at least in
> my case), because the directory itself (/root/.cpanplus on my box) isn't
> accessible from a non-root user. I haven't worked on a solution yet,
> but I was thinking the best thing to do might be to create a temp
> directory (maybe with a prompt for the directory to create it under)
> from the generated Makefile in the start_httpd section and copy any
> content (and then remove it in kill_httpd)
>
> Maybe this would be a good feature to add to the Apache::test and
> Apache::Test modules?

I've already committed a solution for Apache::Test that should work on all
Unices, pending a test on win32. Here is the commit that includes the change
and the logic:
http://marc.theaimsgroup.com/?l=apache-test-cvs&m=104397443526605&w=2

At least on Unix mod_perl-2.0 now has no problems running 'make test' as root.

As for Apache::test, I'm not familiar with it, so perhaps someone who is, can
backport that above patch to it.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


matt at sergeant

Jan 31, 2003, 1:03 AM

Post #14 of 16 (844 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

On Thursday, Jan 30, 2003, at 22:51 Europe/London, Stas Bekman wrote:

> Matt Sergeant wrote:
> [...]
>>> It would help to know your platform details. We tried to eliminate
>>> all segfaults related to perl-5.8.0, but in the process we may have
>>> introduced new ones.
>> perl 5.00503 on RH 6.2 and mod_perl 1.26 IIRC. The segfault was
>> during the file upload tests.
>
> And the backtrace is ...?

Sorry - this time I had a deadline to reach and the bug was
intermittent and only during file upload so I could safely ignore it.
I'll see what I can do though.


matt at sergeant

Jan 31, 2003, 1:04 AM

Post #15 of 16 (830 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

On Thursday, Jan 30, 2003, at 22:36 Europe/London, Stas Bekman wrote:

> Matt, Apache::Test may not work when run under root, because Apache
> won't let you start the server as 'User root' so it tries to use
> 'nobody' or something else as the username the server runs under,
> which of course has no perms to access files created by root and hence
> the problem.
>
> I suppose the solution is to chown all the autogenerated files to that
> chosen user and then the issue will be resolved. Meanwhile please try
> to run the test suite as non-root.

That's not enough. Ever tried to run an apache docroot from a directory
that the parent directory is not rx by nobody? Doesn't work.


stas at stason

Jan 31, 2003, 1:11 AM

Post #16 of 16 (827 views)
Permalink
Re: [ANNOUNCE] libapreq-1.1 is out [In reply to]

Matt Sergeant wrote:
> On Thursday, Jan 30, 2003, at 22:36 Europe/London, Stas Bekman wrote:
>
>> Matt, Apache::Test may not work when run under root, because Apache
>> won't let you start the server as 'User root' so it tries to use
>> 'nobody' or something else as the username the server runs under,
>> which of course has no perms to access files created by root and hence
>> the problem.
>>
>> I suppose the solution is to chown all the autogenerated files to that
>> chosen user and then the issue will be resolved. Meanwhile please try
>> to run the test suite as non-root.
>
>
> That's not enough. Ever tried to run an apache docroot from a directory
> that the parent directory is not rx by nobody? Doesn't work.

It works now with Apache::Test. It chowns all files under the docroot if run
under 'root'. Give it a run.

But Apache::Request is not yet using Apache::Test. Once it switches to it,
it'll transparently work.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.