updating status.. all 5.0 fixes have been ported to 6.0 a while ago

** Changed in: openobject-server/trunk
       Status: Fix Committed => Fix Released

-- 
v5.0.0/Mac Crash on db connection close
https://bugs.launchpad.net/bugs/330999
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.

Status in OpenObject Server: Fix Released
Status in OpenObject Server 5.0 series: Fix Released
Status in OpenObject Server trunk series: Fix Released

Bug description:
I'm running the server on Mac OS X Leopard 10.5.6, using python 2.5 provided by 
the system and a few other modules I compiled myself.

Trying to connect to the data base raises the following error

INFO:web-services:the server is running, waiting for connections...
INFO:dbpool:Connecting to template1
INFO:dbpool:Closing all connections to template1
Closing connection <connection>
Bus error


I tried with previous versions and it works with v5 RC1 which still used 
psycopg (1).
With RC2, psycopg2 has been used and the code of sql_db.py has been changed too.

Debugging, it seems that the "wrapper" method from sql_db.py is called over and 
over, leading to a stack overflow and an app crash.

  def check(f):
        from tools.func import wraps

        @wraps(f)
        def wrapper(self, *args, **kwargs):
            if not hasattr(self, '_obj'):
                raise psycopg2.ProgrammingError('Unable to use the cursor after 
having closing it')
            return f(self, *args, **kwargs)
        return wrapper



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to