leaks - was PATCH: add some new exceptions

"Harald Armin Massa" <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
James,

> > because I have a VERY spurios ntdll.dll exception (i.e. Windows crying
> > out, uncatchable), which only sometimes appears;
> > The usual point of crash is after testing the connection and putting
> > the connection object into garbage.
> >
> I don't know if I found your leak.  If you can reliably reproduce the
> exception, please file a bug though (and try out the latest
> development version from SVN if it isn't too much trouble).

my big challenge is that this problem is utterly unreproducable, down
to "crashes depend on directory in which the file rests", that is:

/mother/application/application.exe -> crashes
/mother/applicationxtra/application.exe -> does not crash.

On another reboot of the machine, also application below
applicationxtra crashes. Next reboot, both applications do not crash.
I even checked python 2.4 and python 2.5 :(

The only "narrowing down" is: the crash seems to be around

def checkDB(modus, retcn=False):
    """prüfen, ob die entspr. Datenbank vorhanden ist"""
    cn=None
    try:
        host=  u.host[modus]
        database      = u.database[modus]
        user          = u.user[modus]
        port          = u.port[modus]
        password      = u.password[modus]
        sslmode="prefer"

        g.log.info("pruefe nach %s/%s/%s/%s/%s" % (host,database,user,
port,sslmode))

        cn=psycopg2.connect(host=host,database=database,port=port,
                                    user=user,
password=password,sslmode=sslmode)
        erg=True
    except psycopg2.DatabaseError:
        erg=False
    if retcn:
        return cn
    else:
        return erg

That is: I cannot be sure if all database hosts are available, so I
try to connect and use "failure" to learn: database host not
available. And sometimes ... on some machines... the application exits
with windows-error, and digging down shows something about
"ntdll.dll", varying offsets.

My googling for ntdll.dll just gave spurios information about "memory
corruption", so... "memory corruption" and "leaks" were connected
within me.

I will compile svn/trunk and test again. If anyone can give me any
more hint to search or to make the error reproducable, please speak up
:)

Harald




-- 
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
fx 01212-5-13695179
-
EuroPython 2008 will take place in Vilnius, Lithuania - Stay tuned!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.