Segmentation fault on Python 3
Shai Berger <shai-9mtU2oJkgntWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.python.db.cx-oracle |
|---|---|
| Organization | Platonix Joint Ventures |
| Message-ID | <[email protected]> |
Hi, I've been trying to track down the segmentation fault with Python 3, and I'm getting a little over my head. I got a stack trace with Python info (attached), and from it, it seems like there's a reference-counting counting problem with exceptions. I took a look, and it seemed like the Py_DECREF call at Environment.c:375 (Environment_RaiseError) could be responsible -- there is no parallel for it in Environment_CheckForError -- but commenting it out did not seem to fix anything. Any pointers would be greatly appreciated, Shai. ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ cx-oracle-users mailing list cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
cx_stack.txt
(text/plain, 3.4 KB)
#0 0x00007f21ef26c75b in raise () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f21ea87942e in skgesigOSCrash () from /home/django/oracle-11/instantclient_11_2/libclntsh.so.11.1
#2 0x00007f21eab1bca9 in kpeDbgSignalHandler () from /home/django/oracle-11/instantclient_11_2/libclntsh.so.11.1
#3 0x00007f21ea87963e in skgesig_sigactionHandler () from /home/django/oracle-11/instantclient_11_2/libclntsh.so.11.1
#4 <signal handler called>
#5 0x000000000052ecef in visit_decref (op=<unknown at remote 0x8000000000>, data=0x0) at ../Modules/gcmodule.c:361
#6 0x0000000000643fc6 in BaseException_traverse (self=0x7f21e6a7e3f0, visit=0x52ecbb <visit_decref>, arg=0x0) at ../Objects/exceptions.c:100
#7 0x000000000043783e in subtype_traverse (self=<DatabaseError at remote 0x7f21e6a7e3f0>, visit=0x52ecbb <visit_decref>, arg=0x0) at ../Objects/typeobject.c:845
#8 0x000000000052eddd in subtract_refs (containers=0x9847f0 <generations+48>) at ../Modules/gcmodule.c:386
#9 0x000000000052fc24 in collect (generation=1, n_collected=0x7fffe792e168, n_uncollectable=0x7fffe792e170) at ../Modules/gcmodule.c:891
#10 0x00000000005301cd in collect_with_callback (generation=1) at ../Modules/gcmodule.c:1048
#11 0x0000000000530279 in collect_generations () at ../Modules/gcmodule.c:1071
#12 0x0000000000531142 in _PyObject_GC_Malloc (basicsize=48) at ../Modules/gcmodule.c:1566
#13 0x0000000000437499 in PyType_GenericAlloc (type=0x150abc0, nitems=0) at ../Objects/typeobject.c:760
#14 0x000000000043df88 in object_new (type=0x150abc0, args=(<cx_Oracle.Connection at remote 0x7f21e6a34e08>,), kwds=0x0) at ../Objects/typeobject.c:3116
#15 0x00000000004372ed in type_call (type=0x150abc0, args=(<cx_Oracle.Connection at remote 0x7f21e6a34e08>,), kwds=0x0) at ../Objects/typeobject.c:729
#16 0x000000000061b15e in PyObject_Call (func=<type at remote 0x150abc0>, arg=(<cx_Oracle.Connection at remote 0x7f21e6a34e08>,), kw=0x0) at ../Objects/abstract.c:2035
#17 0x00000000004d472b in do_call (func=<type at remote 0x150abc0>, pp_stack=0x7fffe792e6c0, na=1, nk=0) at ../Python/ceval.c:4286
#18 0x00000000004d3ac7 in call_function (pp_stack=0x7fffe792e6c0, oparg=1) at ../Python/ceval.c:4089
#19 0x00000000004cd4f6 in PyEval_EvalFrameEx (
f=Frame 0x7f21e834e618, for file /home/django/django/django/db/backends/oracle/base.py, line 603, in create_cursor (self=<DatabaseWrapper(in_atomic_block=True, alias='default', queries=[{'time': '0.007', 'sql': 'QUERY = \'SELECT "SELECT_RELATED_ONETOONE_USER"."ID", "SELECT_RELATED_ONETOONE_USER"."USERNAME", "SELECT_RELATED_ONETOONE_USER"."EMAIL", "SELECT_RELATED_ONETOONE_US9D1F"."USER_ID", "SELECT_RELATED_ONETOONE_US9D1F"."POSTS", "SELECT_RELATED_ONETOONE_US9D1F"."RESULTS_ID" FROM "SELECT_RELATED_ONETOONE_USER" LEFT OUTER JOIN "SELECT_RELATED_ONETOONE_US9D1F" ON ( "SELECT_RELATED_ONETOONE_USER"."ID" = "SELECT_RELATED_ONETOONE_US9D1F"."USER_ID" ) WHERE "SELECT_RELATED_ONETOONE_USER"."USERNAME" = :arg0 \' - PARAMS = (\'test\',)'}, {'time': '0.005', 'sql': 'QUERY = \'SELECT "SELECT_RELATED_ONETOONE_USER"."ID", "SELECT_RELATED_ONETOONE_USER"."USERNAME", "SELECT_RELATED_ONETOONE_USER"."EMAIL", "SELECT_RELATED_ONETOONE_USF5B2"."ID", "SELECT_RELATED_ONETOONE_USF5B2"."USER_ID", "SELECT_RELATED_ONETOONE_USF5B2"."CITY", ...(truncated), throwflag=0) at ../Python/ceval.c:2679
#20 0x00000000004d3dbb in fast_function (func=<function at remote 0x7f21e85c6d20>, pp_stack=0x7fffe792f1f0, n=1, na=1, nk=0) at ../Python/ceval.c:4154