Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2021 00:15:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 255445] lang/python 3.8/3.9 SIGSEV core dumps in libthr TrueNAS
Message-ID:  <bug-255445-21822-VOYK2WfKMG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255445-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255445-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255445

--- Comment #11 from yocalebo@gmail.com <yocalebo@gmail.com> ---
Update on the matter. I was able to analyze a python3.9.4 core dump and I've
narrowed the fact down that the thread on CPU that crashed is in
concurrent.future._base.Executor class.

Core was generated by `python3.9: middlewared'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  pymalloc_alloc (ctx=3D<optimized out>, nbytes=3D56) at Objects/obmalloc=
.c:1621
warning: Source file is more recent than executable.
1621            if (UNLIKELY((pool->freeblock =3D *(block **)bp) =3D=3D NUL=
L)) {
[Current thread is 1 (LWP 100893)]
(gdb) info locals
size =3D 3
pool =3D 0x83757b000
bp =3D 0x0
(gdb) py-bt
Traceback (most recent call first):
  File "/usr/local/lib/python3.9/xml/etree/ElementPath.py", line 282, in se=
lect
    yield elem
  File "/usr/local/lib/python3.9/xml/etree/ElementPath.py", line 389, in fi=
nd
    return next(iterfind(elem, path, namespaces), None)
  File
"/usr/local/lib/python3.9/site-packages/middlewared/plugins/disk_/disk_info=
_freebsd.py",
line 96, in label_to_disk
    part =3D
geom.class_by_name('PART').xml.find(f'.//provider[name=3D"{dev}"]/../name')
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1=
521,
in call_sync
    )
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py",
line 416, in transform_topology
    disk =3D self.middleware.call_sync('disk.label_to_disk', *args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py",
line 435, in transform_topology
    x[i] =3D self.transform_topology(x[i], dict(options, geom_scan=3DFalse))
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py",
line 432, in transform_topology
    x[key] =3D self.transform_topology(x[key], dict(options, geom_scan=3DFa=
lse))
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py",
line 435, in transform_topology
    x[i] =3D self.transform_topology(x[i], dict(options, geom_scan=3DFalse))
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py",
line 432, in transform_topology
    x[key] =3D self.transform_topology(x[key], dict(options, geom_scan=3DFa=
lse))
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/pool.py",
line 469, in pool_extend
    'topology': self.transform_topology(zpool['groups']),
  File
"/usr/local/lib/python3.9/site-packages/middlewared/utils/io_thread_pool_ex=
ecutor.py",
line 25, in run
    result =3D self.fn(*self.args, **self.kwargs)
  File
"/usr/local/lib/python3.9/site-packages/middlewared/utils/io_thread_pool_ex=
ecutor.py",
line 308, in _target
  File "/usr/local/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inn=
er
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 912, in _bootstrap
    self._bootstrap_inner()

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255445-21822-VOYK2WfKMG>