Re: psycopg2 2.0.8 - segmentation fault

"Gangadharan S.A." <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Wed, Mar 25, 2009 at 12:51 PM, James Henstridge <[email protected]>wrote:

>
> Compiling with pydebug is not necessary.  If I'm debugging
>
> Just make sure the code is compiled with the "-g" flag passed to the
> compiler (this should happen automatically if you're using gcc and
> haven't overridden CFLAGS), and don't strip the executables and
> libraries when installing.
>
> The same goes for compiling psycopg2.
>
> If debug information is available, then we should get the actual
> function names in stack traces.  And if you produce a stack trace with
> gdb, we should also get information about the function arguments.
>
>
Thanks. This worked. We now have the backtrace with debug information:

Program received signal SIGABRT, Aborted.
[Switching to Thread 1283557696 (LWP 12437)]
0x00002b2fdc478535 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00002b2fdc478535 in raise () from /lib64/libc.so.6
#1  0x00002b2fdc479990 in abort () from /lib64/libc.so.6
#2  0x00002b2fdc4af6db in __libc_message () from /lib64/libc.so.6
#3  0x00002b2fdc4b48fe in malloc_printerr () from /lib64/libc.so.6
#4  0x00002b2fdc4b5f36 in free () from /lib64/libc.so.6
#5  0x00002b2fe062f7e7 in connection_dealloc (obj=0x2aaaaac0ef30) at
psycopg/connection_type.c:464
#6  0x00002b2fdb3a6006 in subtype_dealloc (self=0x2aaaaac0ef30) at
Objects/typeobject.c:703
#7  0x00002b2fdb38b8e3 in dict_dealloc (mp=0xfdf4c0) at
Objects/dictobject.c:728
#8  0x00002b2fdb3a5f65 in subtype_dealloc (self=0xf453d0) at
Objects/typeobject.c:691
#9  0x00002b2fdb37764a in frame_dealloc (f=0xea8990) at
Objects/frameobject.c:394
#10 0x00002b2fdb3db228 in fast_function (func=0x2b2fdcdcd578,
pp_stack=0x4c816a10, n=2, na=2, nk=0) at Python/ceval.c:3632
#11 0x00002b2fdb3daff0 in call_function (pp_stack=0x4c816a10, oparg=1) at
Python/ceval.c:3568
#12 0x00002b2fdb3d73f7 in PyEval_EvalFrame (f=0x1c2fed0) at
Python/ceval.c:2163
#13 0x00002b2fdb3db1e8 in fast_function (func=0x2b2fdcdcd9b0,
pp_stack=0x4c816d60, n=4, na=4, nk=0) at Python/ceval.c:3629
#14 0x00002b2fdb3daff0 in call_function (pp_stack=0x4c816d60, oparg=3) at
Python/ceval.c:3568
#15 0x00002b2fdb3d73f7 in PyEval_EvalFrame (f=0x1c12eb0) at
Python/ceval.c:2163
#16 0x00002b2fdb3d91f5 in PyEval_EvalCodeEx (co=0x2b2fdce49180,
globals=0x6036b0, locals=0x0, args=0xa31c98, argcount=3, kws=0xa31cb0,
    kwcount=2, defs=0x2b2fdcdc6650, defcount=2, closure=0x0) at
Python/ceval.c:2730
#17 0x00002b2fdb3db2d6 in fast_function (func=0x2b2fdcdcdc80,
pp_stack=0x4c817240, n=7, na=3, nk=2) at Python/ceval.c:3640
#18 0x00002b2fdb3daff0 in call_function (pp_stack=0x4c817240, oparg=514) at
Python/ceval.c:3568
#19 0x00002b2fdb3d73f7 in PyEval_EvalFrame (f=0xa31ae0) at
Python/ceval.c:2163
#20 0x00002b2fdb3d91f5 in PyEval_EvalCodeEx (co=0x2b2fdce490a0,
globals=0x6036b0, locals=0x0, args=0x163de28, argcount=1, kws=0x12c1de0,
    kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2730
#21 0x00002b2fdb37a158 in function_call (func=0x2b2fdcdcdb90, arg=0x163de10,
kw=0x704e60) at Objects/funcobject.c:548
#22 0x00002b2fdb3609f7 in PyObject_Call (func=0x2b2fdcdcdb90, arg=0x163de10,
kw=0x704e60) at Objects/abstract.c:1751
#23 0x00002b2fdb3db9d9 in ext_do_call (func=0x2b2fdcdcdb90,
pp_stack=0x4c817708, flags=3, na=1, nk=0) at Python/ceval.c:3824
#24 0x00002b2fdb3d7589 in PyEval_EvalFrame (f=0x138e000) at
Python/ceval.c:2203
#25 0x00002b2fdb3db1e8 in fast_function (func=0x2b2fdc918f50,
pp_stack=0x4c817a60, n=1, na=1, nk=0) at Python/ceval.c:3629
#26 0x00002b2fdb3daff0 in call_function (pp_stack=0x4c817a60, oparg=0) at
Python/ceval.c:3568
#27 0x00002b2fdb3d73f7 in PyEval_EvalFrame (f=0x9c1c70) at
Python/ceval.c:2163
#28 0x00002b2fdb3d91f5 in PyEval_EvalCodeEx (co=0x2b2fdc90be30,
globals=0x6fd5a0, locals=0x0, args=0x163dba8, argcount=1, kws=0x0,
    kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2730
#29 0x00002b2fdb37a158 in function_call (func=0x2b2fdc919050, arg=0x163db90,
kw=0x0) at Objects/funcobject.c:548
#30 0x00002b2fdb3609f7 in PyObject_Call (func=0x2b2fdc919050, arg=0x163db90,
kw=0x0) at Objects/abstract.c:1751
#31 0x00002b2fdb36a0c6 in instancemethod_call (func=0x2b2fdc919050,
arg=0x163db90, kw=0x0) at Objects/classobject.c:2431
#32 0x00002b2fdb3609f7 in PyObject_Call (func=0x1560910, arg=0x2b2fdc78e050,
kw=0x0) at Objects/abstract.c:1751
#33 0x00002b2fdb3da7b6 in PyEval_CallObjectWithKeywords (func=0x1560910,
arg=0x2b2fdc78e050, kw=0x0) at Python/ceval.c:3419
#34 0x00002b2fdb40d758 in t_bootstrap (boot_raw=0x16abab0) at
./Modules/threadmodule.c:432
#35 0x00002b2fdb6c809e in start_thread () from /lib64/libpthread.so.0
#36 0x00002b2fdc5094cd in clone () from /lib64/libc.so.6
#37 0x0000000000000000 in ?? ()

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
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.