Re: segfaults

Gerhard Häring <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Craig Main wrote:
> Hi all,
> 
> Can anyone point me in the right direction for solving this? I am
> running Gentoo. Running python test/PgSQLTestCases.py gives a segfault.
> I have narrowed it down to the "from pyPgSQL import PgSQL" line.
> 
> Any ideas?

Does "from pyPgSQL import libpq" segfault already, too?

Can you try the following:

1) Build pyPgSQL with debugging info:

$ python setup.py build --debug

2) Under bash, enter: "ulimit -c unlimited"

3) Run the test suite. You'll get a core file (let's suppose it's called 
python.core).

4) Fire up gdb and load the core file, then show the backtrace:
gdb> core python.core
gdb> backtrace

Do you see anything that makes sense there? Could you post the traceback?

-- Gerhard


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
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.