 |
|
 |
|
|
 |
mod_python 3.2.5b available for testing |
 |
 |
|
|
11-14-05 10:47 PM
A new mod_python 3.2.5 beta tarball is now available for testing. A
windows binary should be available shortly.
This release is similar to 3.2.4b but fixes a couple of minor issues -
MODPYTHON-87 (psp_parser), and MODPYTHON-40 (file upload).
Here are the rules:
In order for a file to be officially announced, it has to be tested by
developers on the dev list. Anyone subscribed to this list can (and
should feel obligated to :-) ) test it, and provide feedback *to _this_
list*! (Not the mod_python@modpython.org list, and preferably not me
personally).
The files are (temporarily) available here:
http://www.modpython.org/dist/
Please download it, then do the usual
$ ./configure --with-apxs=/wherever/it/is
$ make
$ (su)
# make install
Then (as non-root user!)
$ cd test
$ Python test.py
And see if any tests fail. If they pass, send a +1 to the list, if they
fail, send the details (the versions of OS, Python and Apache, the test
output, and suggestions, if any).
Thank you,
Jim Gallacher
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-14-05 10:47 PM
+1 for mod_python 3.2.5b on Python 2.3 on Windows 2000
+1 for mod_python 3.2.5b on Python 2.4 on Windows XP
2005/11/14, Jim Gallacher <jgallacher@apache.org>:
> A new mod_python 3.2.5 beta tarball is now available for testing. A
> windows binary should be available shortly.
>
> This release is similar to 3.2.4b but fixes a couple of minor issues -
> MODPYTHON-87 (psp_parser), and MODPYTHON-40 (file upload).
>
> Here are the rules:
>
> In order for a file to be officially announced, it has to be tested by
> developers on the dev list. Anyone subscribed to this list can (and
> should feel obligated to :-) ) test it, and provide feedback *to _this_
> list*! (Not the mod_python@modpython.org list, and preferably not me
> personally).
>
> The files are (temporarily) available here:
>
> http://www.modpython.org/dist/
>
> Please download it, then do the usual
>
> $ ./configure --with-apxs=3D/wherever/it/is
> $ make
> $ (su)
> # make install
>
> Then (as non-root user!)
>
> $ cd test
> $ Python test.py
>
> And see if any tests fail. If they pass, send a +1 to the list, if they
> fail, send the details (the versions of OS, Python and Apache, the test
> output, and suggestions, if any).
>
> Thank you,
> Jim Gallacher
>
>
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-14-05 10:47 PM
+1
Apache 2.0.55
Python 2.4.1
gcc 3.3.4
Slackware 10.1 (Linux 2.4.29)
Jim Gallacher wrote:
> A new mod_python 3.2.5 beta tarball is now available for testing. A
> windows binary should be available shortly.
>
> This release is similar to 3.2.4b but fixes a couple of minor issues -
> MODPYTHON-87 (psp_parser), and MODPYTHON-40 (file upload).
>
> Here are the rules:
>
> In order for a file to be officially announced, it has to be tested by
> developers on the dev list. Anyone subscribed to this list can (and
> should feel obligated to :-) ) test it, and provide feedback *to _this_
> list*! (Not the mod_python@modpython.org list, and preferably not me
> personally).
>
> The files are (temporarily) available here:
>
> http://www.modpython.org/dist/
>
> Please download it, then do the usual
>
> $ ./configure --with-apxs=/wherever/it/is
> $ make
> $ (su)
> # make install
>
> Then (as non-root user!)
>
> $ cd test
> $ Python test.py
>
> And see if any tests fail. If they pass, send a +1 to the list, if they
> fail, send the details (the versions of OS, Python and Apache, the test
> output, and suggestions, if any).
>
> Thank you,
> Jim Gallacher
>
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-14-05 10:47 PM
+1
Linux Debian 3.1 stable (sarge)
apache 2.0.54-5 (mpm-worker)
python 2.3.5
gcc 3.3.5
+1
Linux Debian unstable (sid)
apache 2.0.54-4 (mpm-prefork)
python 2.3.5
gcc 4.0.2
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-15-05 01:46 AM
I've got failures that seem to be caused by the tests themselves, but
with a bit of tweaking they pass.
FreeBSD 6.0
Apache 2.0.55 port built WITH_THREADS=1
Python 2.4.2
The error_log shows:
----------------------
[Mon Nov 14 19:38:15 2005] [notice] mod_python: Creating 8 session
mutexes based on 256 max processes and 0 max threads.
[Mon Nov 14 19:38:15 2005] [alert] (2)No such file or directory:
getpwuid: couldn't determine user name from uid 4294967295, you probably
need to modify the User directive
[Mon Nov 14 19:38:15 2005] [notice] Apache/2.0.55 (FreeBSD)
mod_python/3.2.5b Python/2.4.2 configured -- resuming normal operations
[Mon Nov 14 19:38:15 2005] [info] Server built: Nov 12 2005 23:05:22
[Mon Nov 14 19:38:15 2005] [debug] prefork.c(956): AcceptMutex: floc
k
(default: flock)
[Mon Nov 14 19:38:15 2005] [alert] Child 9492 returned a Fatal error
..
Apache is exiting!
[Mon Nov 14 19:38:15 2005] [emerg] (2)No such file or directory:
Couldn't initialize cross-process lock in child
[Mon Nov 14 19:38:15 2005] [emerg] (2)No such file or directory:
Couldn't initialize cross-process lock in child
------------------------
Googling that last message comes up with a suggesting that you specify a
"User" in the http config.
With the attached patch, the tests run httpd with a "User www"
directive, and pass.
Barry
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-15-05 07:46 AM
Thanks for the information, I'll add your patch to the test suite.
Regards,
Nicolas
2005/11/15, Barry Pederson <bp@barryp.org>:
> I've got failures that seem to be caused by the tests themselves, but
> with a bit of tweaking they pass.
>
> FreeBSD 6.0
> Apache 2.0.55 port built WITH_THREADS=3D1
> Python 2.4.2
>
>
> The error_log shows:
> ----------------------
> [Mon Nov 14 19:38:15 2005] [notice] mod_python: Creating 8 session
> mutexes based on 256 max processes and 0 max threads.
>
> [Mon Nov 14 19:38:15 2005] [alert] (2)No such file or directory:
> getpwuid: couldn't determine user name from uid 4294967295, you probably
> need to modify the User directive
>
> [Mon Nov 14 19:38:15 2005] [notice] Apache/2.0.55 (FreeBSD)
> mod_python/3.2.5b Python/2.4.2 configured -- resuming normal operations
>
> [Mon Nov 14 19:38:15 2005] [info] Server built: Nov 12 2005 23:05:
22
>
> [Mon Nov 14 19:38:15 2005] [debug] prefork.c(956): AcceptMutex: fl
ock
> (default: flock)
>
> [Mon Nov 14 19:38:15 2005] [alert] Child 9492 returned a Fatal err
or...
> Apache is exiting!
>
> [Mon Nov 14 19:38:15 2005] [emerg] (2)No such file or directory:
> Couldn't initialize cross-process lock in child
>
> [Mon Nov 14 19:38:15 2005] [emerg] (2)No such file or directory:
> Couldn't initialize cross-process lock in child
> ------------------------
>
> Googling that last message comes up with a suggesting that you specify a
> "User" in the http config.
>
> With the attached patch, the tests run httpd with a "User www"
> directive, and pass.
>
> Barry
>
>
> --- mod_python-3.2.5b-old/test/httpdconf.py Tue Sep 13 15:35:57 2005
> +++ mod_python-3.2.5b/test/httpdconf.py Mon Nov 14 19:43:07 2005
> @@ -264,6 +264,10 @@
> def __init__(self, val=3D'Off'):
> Directive.__init__(self, self.__class__.__name__, val)
>
> +class User(Directive):
> + def __init__(self, val=3D'www'):
> + Directive.__init__(self, self.__class__.__name__, val)
> +
> class VirtualHost(ContainerTag):
> def __init__(self, addr, *args):
> ContainerTag.__init__(self, self.__class__.__name__, addr, args)
> --- mod_python-3.2.5b-old/test/test.py Mon Nov 14 12:09:49 2005
> +++ mod_python-3.2.5b/test/test.py Mon Nov 14 19:56:03 2005
> @@ -229,6 +229,7 @@
> IfModule("!mod_dir.c",
> LoadModule("dir_module %s" %
> quoteIfSpace(os.path.join(modpath, "mod_=
dir.so")))),
> + User("www"),
> ServerRoot(SERVER_ROOT),
> ErrorLog("logs/error_log"),
> LogLevel("debug"),
>
>
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-15-05 07:46 AM
Hmmmm having a look at :
http://httpd.apache.org/docs/2.0/mo...ommon.html#user
I'm finally not so sure we should integrate the User directive.
Wouldn't that require that the computer the test runs on has a user
named www with sufficient privileges plus that the test are started as
root ?
Regards,
Nicolas
2005/11/15, Nicolas Lehuen <nicolas.lehuen@gmail.com>:
> Thanks for the information, I'll add your patch to the test suite.
>
> Regards,
> Nicolas
>
> 2005/11/15, Barry Pederson <bp@barryp.org>:
y[vbcol=seagreen]
a[vbcol=seagreen]
5[vbcol=seagreen]
s)[vbcol=seagreen]
d_dir.so")))),[vbcol=seagreen]
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-15-05 07:46 AM
Barry Pederson wrote:
> I've got failures that seem to be caused by the tests themselves, but
> with a bit of tweaking they pass.
>
> FreeBSD 6.0
> Apache 2.0.55 port built WITH_THREADS=1
> Python 2.4.2
DOH! nevermind - just realized I missed this part of Jim's very clear
instructions:
-------------
Then (as non-root user!)
^^^^^^^^^^^^^^^^^^^^^^^^
$ cd test
$ Python test.py
-------------
However I get some other errors now:
========================================
==============================
ERROR: test_connectionhandler (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 1220, in test_connectionhandler
f = urllib.urlopen(url)
File "/usr/local/lib/python2.4/urllib.py", line 77, in urlopen
return opener.open(url)
File "/usr/local/lib/python2.4/urllib.py", line 185, in open
return getattr(self, name)(url)
File "/usr/local/lib/python2.4/urllib.py", line 317, in open_http
return self.http_error(url, fp, errcode, errmsg, headers)
File "/usr/local/lib/python2.4/urllib.py", line 334, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "/usr/local/lib/python2.4/urllib.py", line 574, in
http_error_default
return addinfourl(fp, headers, "http:" + url)
File "/usr/local/lib/python2.4/urllib.py", line 863, in __init__
addbase.__init__(self, fp)
File "/usr/local/lib/python2.4/urllib.py", line 813, in __init__
self.read = self.fp.read
AttributeError: 'NoneType' object has no attribute 'read'
----------------------------------------------------------------------
Ran 43 tests in 16.807s
FAILED (errors=1)
F Stopping Apache...
/usr/local/sbin/httpd -k stop -f
/home/barryp/mod_python-3.2.5b/test/conf/test.conf
========================================
==============================
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 1805, in testPerRequestTests
self.failUnless(result.wasSuccessful())
AssertionError
----------------------------------------------------------------------
Ran 6 tests in 63.714s
FAILED (failures=1)
------------------------------
Not sure why running under a different userid is causing this - I
cleaned out my /tmp of things owned by www. Will keep looking at this.
Barry
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-15-05 07:46 AM
I can't find the old mail about this, but Grisha suggested that this can occ
ur
in virtual hosting environments, eg, OpenVPS.
Barry Pederson wrote ..
> Barry Pederson wrote:
>
> DOH! nevermind - just realized I missed this part of Jim's very clear
> instructions:
>
> -------------
> Then (as non-root user!)
> ^^^^^^^^^^^^^^^^^^^^^^^^
>
> $ cd test
> $ Python test.py
> -------------
>
>
>
>
> However I get some other errors now:
>
> ========================================
==============================
> ERROR: test_connectionhandler (__main__.PerRequestTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test.py", line 1220, in test_connectionhandler
> f = urllib.urlopen(url)
> File "/usr/local/lib/python2.4/urllib.py", line 77, in urlopen
> return opener.open(url)
> File "/usr/local/lib/python2.4/urllib.py", line 185, in open
> return getattr(self, name)(url)
> File "/usr/local/lib/python2.4/urllib.py", line 317, in open_http
> return self.http_error(url, fp, errcode, errmsg, headers)
> File "/usr/local/lib/python2.4/urllib.py", line 334, in http_error
> return self.http_error_default(url, fp, errcode, errmsg, headers)
> File "/usr/local/lib/python2.4/urllib.py", line 574, in
> http_error_default
> return addinfourl(fp, headers, "http:" + url)
> File "/usr/local/lib/python2.4/urllib.py", line 863, in __init__
> addbase.__init__(self, fp)
> File "/usr/local/lib/python2.4/urllib.py", line 813, in __init__
> self.read = self.fp.read
> AttributeError: 'NoneType' object has no attribute 'read'
>
> ----------------------------------------------------------------------
> Ran 43 tests in 16.807s
>
> FAILED (errors=1)
> F Stopping Apache...
> /usr/local/sbin/httpd -k stop -f
> /home/barryp/mod_python-3.2.5b/test/conf/test.conf
>
> ========================================
==============================
> FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test.py", line 1805, in testPerRequestTests
> self.failUnless(result.wasSuccessful())
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 6 tests in 63.714s
>
> FAILED (failures=1)
> ------------------------------
>
> Not sure why running under a different userid is causing this - I
> cleaned out my /tmp of things owned by www. Will keep looking at this.
>
> Barry
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
Re: mod_python 3.2.5b available for testing |
 |
 |
|
|
11-15-05 07:46 AM
Graham Dumpleton wrote:
> I can't find the old mail about this, but Grisha suggested that this can o
ccur
> in virtual hosting environments, eg, OpenVPS.
No, no virtual hosting, jails, or other obviously unusual stuff.
[vbcol=seagreen]
Looking at my logs/error_log I see
------------
[Mon Nov 14 23:10:23 2005] [notice] child pid 53034 exit signal
Segmentation fault (11), possible coredump in
/home/barryp/mod_python-3.2.5b/test
------------
I rebuilt apache and mod_python with debugging turned on, went into gdb
with "gdb /usr/local/sbin/httpd httpd.core", did a "bt", and got:
------------------------------
#0 0x00000058 in ?? ()
#1 0x284b5ad6 in _conn_read (c=0x8258128, mode=AP_MODE_GETLINE, len=0)
at connobject.c:117
#2 0x284b5d63 in conn_readline (self=0x86b6780, args=0x819002c) at
connobject.c:193
#3 0x285014fa in PyEval_EvalFrame () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#4 0x28501699 in PyEval_EvalFrame () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#5 0x28501cec in PyEval_EvalCodeEx () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#6 0x2853b3ea in function_call () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#7 0x284c254c in PyObject_Call () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#8 0x284c7f8e in instancemethod_call () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#9 0x284c254c in PyObject_Call () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#10 0x284c2721 in PyObject_CallMethod () from
/home/barryp/mod_python-3.2.5b/src/mod_python.so
#11 0x284bea7d in python_connection (con=0x8258128) at mod_python.c:1281
#12 0x284bfbd5 in PythonConnectionHandler (con=0x8258128) at
mod_python.c:1929
#13 0x08075546 in ap_run_process_connection (c=0x8258128) at connection.c:43
#14 0x08075940 in ap_process_connection (c=0x8258128, csd=0x8258050) at
connection.c:176
#15 0x08068971 in child_main (child_num_arg=0) at prefork.c:610
#16 0x08068afb in make_child (s=0x80b5df8, slot=0) at prefork.c:704
#17 0x08068b71 in startup_children (number_to_start=3) at prefork.c:722
#18 0x08068f6e in ap_mpm_run (_pconf=0x80b4018, plog=0x80e0018,
s=0x80b5df8) at prefork.c:941
#19 0x0806fd5e in main (argc=5, argv=0xbfbfea90) at main.c:638
----------------
Not sure where to look next.
Barry
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 09:58 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|