Re: FileSession segfaulting (Was: Re: _apache.emergency_unlock function?)

2005-05-25 Thread dharana
RESULTS OF TESTS TEST: Trying to picle/unpickle the req object: CODE: from mod_python import Session, apache def handler(req): d = { "request" : req } test1 = cPickle.loads(cPickle.dumps(d)) req.write(str(test1)) RESULT: TypeError: can't pickle mp_request objects COMMENT: Expect

Re: FileSession segfaulting (Was: Re: _apache.emergency_unlock function?)

2005-05-25 Thread dharana
OFFENDING CODE handler's code: from mod_python import Session, apache from ozone.storage.Storable import Storable from ozone.websites.Website import Website from ozone.websites.DynamicWebsite import DynamicWebsite def handler(req): req.sess = Session.FileSession(req) req.sess['storable

Re: FileSession segfaulting (Was: Re: _apache.emergency_unlock function?)

2005-05-25 Thread Jim Gallacher
Nicolas Lehuen wrote: Hi dharana, I have a two parts answer : 1) One thing I'm really sure is that there is no way for the pickle module to handle the request object correctly. Hence, if the session code is trying to pickle an object which contains a reference to a request object, I have no idea

Re: FileSession segfaulting (Was: Re: _apache.emergency_unlock function?)

2005-05-25 Thread Jim Gallacher
dharana wrote: OFFENDING CODE handler's code: from mod_python import Session, apache from ozone.storage.Storable import Storable from ozone.websites.Website import Website from ozone.websites.DynamicWebsite import DynamicWebsite def handler(req): req.sess = Session.FileSession(req) re

Re: FileSession segfaulting (Was: Re: _apache.emergency_unlock function?)

2005-05-25 Thread dharana
I am really ashamed :( The error was a bug in psycopg. His author warned me a few days ago about a severe bug that was recently fixed and urged me to sync what I didn't did until today. The problem was caused by DictRow objects which where stored in all my Storable objects. I don't know the

Re: FileSession segfaulting (Was: Re: _apache.emergency_unlock function?)

2005-05-25 Thread Jim Gallacher
dharana wrote: I wonder if _dbschema, which is a class attribute, is the problem? Quoting from the python documentation for pickle (http://www.python.org/doc/2.3.5/lib/node65.html) Yes, it is a class attribute. """Similarly, classes are pickled by named reference, so the same restricti

Re: [jira] Commented: (MODPYTHON-55) Add a version attribute to the mod_python module.

2005-05-25 Thread David Fraser
Hmmm ... it appears I was over-optimistic about my patches :-) Most of them related to win32 installation rather than building. There are a few changes to setup.py.in that rearrange it but most are to the win32_postinstall.py I had a power failure two days in a row so sorry for the delay ; plea