This also happens on amd64 (backtrace follows), where it only affects python3.7-dbg (not python3-dbg (3.6) or python3.7). It happens on interpreter exit, not on import.

I suspect this is _not_ the new cffi version as such, because:

- It does not affect pyzmq or pillow (which also use cffi and are the right age to have been built against 1.11.5-1).

- From the pymca debci logs, as of 2018-09-20 the issue existed only in unstable, not testing, but both have the same cffi version.

(It is not known when the issue started as this was also a new pymca release. The first failed run claims to be pymca 5.3.2, but is actually part 5.3.2 part 5.4.0.)

(gdb) run
Starting program: /usr/bin/python3.7-dbg -c import\ pyopencl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
/usr/lib/python3/dist-packages/pkg_resources/_vendor/pyparsing.py:943: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.MutableMapping.register(ParseResults)
/usr/lib/python3/dist-packages/pkg_resources/_vendor/pyparsing.py:3245: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  elif isinstance( exprs, collections.Iterable ):
* ob
object  : <refcnt 0 at 0x7ffff4414758>
type    : tuple
refcount: 0
address : 0x7ffff4414758
* op->_ob_prev->_ob_next
object  : <refcnt 0 at 0x7ffff4414757>
Program received signal SIGSEGV, Segmentation fault.
0x00000000004684c7 in _PyObject_Dump (op=<unknown at remote 0x7ffff4414757>)
    at ../Objects/object.c:433
433     ../Objects/object.c: No such file or directory.
(gdb) bt
#0  0x00000000004684c7 in _PyObject_Dump (
    op=<unknown at remote 0x7ffff4414757>) at ../Objects/object.c:433
#1  0x0000000000468583 in _Py_ForgetReference (

op=op@entry=('/usr/lib/python3/dist-packages/_cffi_backend.cpython-37dm-x86_64-linux-gnu.so', '_cffi_backend')) at ../Objects/object.c:1909
#2  0x0000000000467e5a in _Py_Dealloc (

op=('/usr/lib/python3/dist-packages/_cffi_backend.cpython-37dm-x86_64-linux-gnu.so', '_cffi_backend')) at ../Objects/object.c:1932
#3  0x0000000000456bce in free_keys_object (keys=keys@entry=0xc04490)
    at ../Objects/dictobject.c:556
#4  0x0000000000458798 in dict_dealloc (mp=mp@entry=0x7ffff74e7b98)
    at ../Objects/dictobject.c:1911
#5  0x0000000000467e5f in _Py_Dealloc (
op={(0x0, 'sys'): <moduledef at remote 0x831000>, ((...), 'builtins'): <moduledef at remote 0x829720>, ((...), '_thread'): <moduledef at remote 0x84c940>, ((...), '_warnings'): <moduledef at remote 0x829360>, ((...), '_weakref'): <moduledef at remote 0x84f3e0>, ((...), <unknown at remote 0x7ffff74c07b0>): <moduledef at remote 0x89d7e0>, ((...), '_io'): <moduledef at remote 0x840380>, ((...), 'marshal'): <moduledef at remote 0x82e440>, ((...), 'posix'): <moduledef at remote 0x863300>, ((...), <unknown at remote 0x7ffff744b318>): <moduledef at remote 0x8373e0>, ((...), <unknown at remote 0x7ffff741de10>): <moduledef at remote 0x8749e0>, ((...), <unknown at remote 0x7ffff73f3248>): <moduledef at remote 0x836040>, ((...), <unknown at remote 0x7ffff739dba0>): <moduledef at remote 0x849ee0>,-

Reply via email to