Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10926 > unrolled thread

python3.7-dbg issue ?

Started byPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
First post2018-09-22 15:20 +0200
Last post2018-09-22 22:40 +0200
Articles 4 — 1 participant

Back to article view | Back to linux.debian.maint.python


Contents

  python3.7-dbg issue ? PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-09-22 15:20 +0200
    RE:python3.7-dbg issue ? PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-09-22 20:40 +0200
      RE:python3.7-dbg issue ? PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-09-22 21:10 +0200
        RE:python3.7-dbg issue ? PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2018-09-22 22:40 +0200

#10926 — python3.7-dbg issue ?

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2018-09-22 15:20 +0200
Subjectpython3.7-dbg issue ?
Message-ID<wAPZh-4Xx-11@gated-at.bofh.it>
Hello,

I try to understand this [1] test failure with python3.7-dbg

so, I ran this on my unstable box and I got this error from within gdb

testTrainingSpectrumReading (specfilewrapperTest.testSpecfilewrapper) ... ok

----------------------------------------------------------------------
Ran 43 tests in 489.199s

OK
* ob
object  : <refcnt 0 at 0xab326d8c>
type    : tuple
refcount: 0
address : 0xab326d8c
* op->_ob_prev->_ob_next
object  :
Thread 1 "python3.7-dbg" received signal SIGSEGV, Segmentation fault.
0x080a8f1d in PyObject_Repr (v=<unknown at remote 0xab326d8b>) at ../Objects/object.c:457
457     ../Objects/object.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  0x080a8f1d in PyObject_Repr (v=<unknown at remote 0xab326d8b>) at ../Objects/object.c:457
#1  0x080a939a in PyObject_Print (op=<unknown at remote 0xab326d8b>, fp=0xb7e0dce0 <_IO_2_1_stderr_>, flags=0) at ../Objects/object.c:369
#2  0x080a94dd in _PyObject_Dump (op=<unknown at remote 0xab326d8b>) at ../Objects/object.c:427
#3  0x080a95af in _Py_ForgetReference (op=Python Exception <class 'RuntimeError'> Type does not have a target.:
) at ../Objects/object.c:1909
#4  0x080a8ea8 in _Py_Dealloc (Python Exception <class 'RuntimeError'> Type does not have a target.:
op=) at ../Objects/object.c:1932
#5  0x080980e4 in free_keys_object (keys=keys@entry=0x91d0280) at ../Objects/dictobject.c:556
#6  0x08099ad6 in dict_dealloc (mp=0xb7a973f4) at ../Objects/dictobject.c:1911
#7  0x080a8ead in _Py_Dealloc (Python Exception <class 'RuntimeError'> Type does not have a target.:
op=) at ../Objects/object.c:1933
#8  0x0813e444 in _PyImport_Fini () at ../Python/import.c:283
#9  0x0814c121 in Py_FinalizeEx () at ../Python/pylifecycle.c:1211
#10 0x0814c3ec in Py_Exit (sts=0) at ../Python/pylifecycle.c:2238
#11 0x08154661 in handle_system_exit () at ../Python/pythonrun.c:636
#12 0x08155d13 in PyErr_PrintEx (set_sys_last_vars=1) at ../Python/pythonrun.c:646
#13 0x08156083 in PyErr_Print () at ../Python/pythonrun.c:542
#14 0x08067583 in pymain_run_module (modname=<optimized out>, set_argv0=set_argv0@entry=1) at ../Modules/main.c:322
#15 0x08067ca0 in pymain_run_python (pymain=pymain@entry=0xbffff3a0) at ../Modules/main.c:2630
#16 0x0806934f in pymain_main (pymain=pymain@entry=0xbffff3a0) at ../Modules/main.c:2782
#17 0x080694c2 in _Py_UnixMain (argc=3, argv=0xbffff534) at ../Modules/main.c:2817
#18 0x08064ecd in main (argc=3, argv=0xbffff534) at ../Programs/python.c:15

I personnaly do not have the knowledge in order to understand the issue.
So I would like your help in order to find the culprite here.

thanks

Frederic

[1] https://salsa.debian.org/science-team/pymca/-/jobs/45873/raw

[toc] | [next] | [standalone]


#10927

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2018-09-22 20:40 +0200
Message-ID<wAUYW-7Or-13@gated-at.bofh.it>
In reply to#10926
Ok, I could simplify the problem to a single import

picca@mordor:~$ python3.7-dbg
Python 3.7.0+ (default, Aug 31 2018, 23:21:37)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import silx.opencl
/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 ):
/usr/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /usr/lib/python3/dist-packages/logilab: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>>
* ob
object  : <refcnt 0 at 0xb5c5a68c>
type    : tuple
refcount: 0
address : 0xb5c5a68c
* op->_ob_prev->_ob_next
object  : Erreur de segmentation

[toc] | [prev] | [next] | [standalone]


#10928

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2018-09-22 21:10 +0200
Message-ID<wAVrX-8dr-5@gated-at.bofh.it>
In reply to#10927
Ok, one more step, and this time I really need your advices :))

$ python3.7-dbg -c "import pyopencl"
/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 ):
/usr/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /usr/lib/python3/dist-packages/logilab: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
* ob
object  : <refcnt 0 at 0xb5f507a4>
type    : tuple
refcount: 0
address : 0xb5f507a4
* op->_ob_prev->_ob_next
object  : Erreur de segmentation
picca@mordor:~$ python3.7 -c "import pyopencl"

maybe the problem is in pyopencl.

But I find really strange thaht I have the WArning messages with python3.7-dbg but not with python3.7

Is it normal ?

[toc] | [prev] | [next] | [standalone]


#10930

FromPICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Date2018-09-22 22:40 +0200
Message-ID<wAWR3-t5-3@gated-at.bofh.it>
In reply to#10928
Hello,

I rebuilt pyopencl,and the problem vanished.

so what should I do now ?

ask for a binNMU or try to understand what is going on ?

thanks for your time.

Fred

picca@mordor:/tmp$ python3.7-dbg -c "import pyopencl"
/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 ):
/usr/lib/python3.7/importlib/_bootstrap_external.py:434: ImportWarning: Not importing directory /usr/lib/python3/dist-packages/logilab: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web