PyBind11 crash with Sardana tests
I found out, that src/sardana/taurus/core/tango/sardana/test/test_measgrpstress.py sometimes crasches with SEGSEGV with pybind11 branch
I still cannot narrow down, what is going on, but what I found so far:
I put outputs in __DeviceProxy__subscribe_event :
# First argument is the event type
if args and isinstance(args[0], int):
ret = __DeviceProxy__subscribe_event_global(self, *args, **kwargs)
# First argument is the attribute name
else:
ret = __DeviceProxy__subscribe_event_attrib(self, *args, **kwargs)
print(f"subscribe_event id: {ret}, called with: {args}, {kwargs} ")
return ret
and __DeviceProxy__unsubscribe_event :
print(f"unsubscribe_event called for ID: {event_id}")
events_del = set()
timestamp = time.time()
se = self.__get_event_map()
then I put an output in static void _push_event(PyEventCallBack *self, OriginalT *ev) :
std::cout << "Tango event (" << ev->event << ") received" << std::endl;
py::gil_scoped_acquire method_gil;
and what I got is:
src/sardana/taurus/core/tango/sardana/test/test_measgrpstress.py::TestStressMeasurementGroup::test_stress_count_4 MainThread INFO 2025-03-13 16:28:38,583 Starter: Starting server Pool/unittest1_1...
MainThread WARNING 2025-03-13 16:28:39,139 TaurusRootLogger: epics scheme not available: ModuleNotFoundError("No module named 'epics'")
MainThread WARNING 2025-03-13 16:28:39,248 ModuleManager: Invalid module HklPseudoMotorController. The dependency package libhkl5 is probably not installed. Safe to ignore if you're not using this controller.
MainThread INFO 2025-03-13 16:28:39,586 Starter: Server Pool/unittest1_1 has been started
Tango event (attr_conf) received
subscribe_event id: 53, called with: ('state', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/state.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 54, called with: ('state', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/state.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (attr_conf) received
subscribe_event id: 55, called with: ('status', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/status.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 56, called with: ('status', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/status.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (attr_conf) received
subscribe_event id: 57, called with: ('configuration', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/configuration.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 58, called with: ('configuration', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/configuration.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (attr_conf) received
subscribe_event id: 59, called with: ('state', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/triggergate/_test_tg_ctrl_1/1/state.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 60, called with: ('state', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/triggergate/_test_tg_ctrl_1/1/state.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (attr_conf) received
subscribe_event id: 61, called with: ('status', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/triggergate/_test_tg_ctrl_1/1/status.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 62, called with: ('status', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/triggergate/_test_tg_ctrl_1/1/status.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (change) received
Test repeat: 0
Tango event (attr_conf) received
subscribe_event id: 63, called with: ('SynchDescription', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/SynchDescription.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 64, called with: ('SynchDescription', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/SynchDescription.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (attr_conf) received
subscribe_event id: 65, called with: ('IntegrationTime', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/IntegrationTime.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 66, called with: ('IntegrationTime', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/IntegrationTime.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (change) received
Tango event (change) received
Tango event (attr_conf) received
subscribe_event id: 67, called with: ('Moveable', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/Moveable.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 68, called with: ('Moveable', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/Moveable.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (change) received
Tango event (attr_conf) received
subscribe_event id: 69, called with: ('NbStarts', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/NbStarts.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], True), {}
Tango event (change) received
subscribe_event id: 70, called with: ('NbStarts', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/d7da1b62-001f-11f0-b9f6-00305927613d/NbStarts.<function TangoAttribute.push_event at 0x7fb3449e1760>, [], False), {}
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Test repeat: 1
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
unsubscribe_event called for ID: 59
unsubscribe_event called for ID: 60
unsubscribe_event called for ID: 61
unsubscribe_event called for ID: 62
Fatal Python error: Segmentation fault
Here is pystack report
Using executable found in the core file: /home/matveyev/mambaforge/envs/sardana/bin/python3.11
Core file information:
state: D zombie: True niceness: 0
pid: 43012 ppid: 12805 sid: 12805
uid: 30593 gid: 39 pgrp: 43012
executable: pytest arguments: /home/matveyev/mambaforge/envs/sardana/bin/python3.11 /home/matveyev/mambaforge
The process died due receiving signal SIGSEGV
Traceback for thread 43058 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 241, in pythread_wrapper (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 1124, in thread_run (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/threadpool.py", line 138, in run
cmd, args, kw, callback, th_id, stack = get()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/queue.py", line 171, in get
self.not_empty.wait()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 497, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43057 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 241, in pythread_wrapper (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 1124, in thread_run (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/threadpool.py", line 138, in run
cmd, args, kw, callback, th_id, stack = get()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/queue.py", line 171, in get
self.not_empty.wait()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 497, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43056 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 241, in pythread_wrapper (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 1124, in thread_run (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/threadpool.py", line 138, in run
cmd, args, kw, callback, th_id, stack = get()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/queue.py", line 171, in get
self.not_empty.wait()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 497, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43055 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 241, in pythread_wrapper (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 1124, in thread_run (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/threadpool.py", line 138, in run
cmd, args, kw, callback, th_id, stack = get()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/queue.py", line 171, in get
self.not_empty.wait()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 497, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43054 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 241, in pythread_wrapper (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 1124, in thread_run (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/threadpool.py", line 138, in run
cmd, args, kw, callback, th_id, stack = get()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/queue.py", line 171, in get
self.not_empty.wait()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 497, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43053 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 241, in pythread_wrapper (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 1124, in thread_run (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/threadpool.py", line 138, in run
cmd, args, kw, callback, th_id, stack = get()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/queue.py", line 171, in get
self.not_empty.wait()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 497, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43012 [] (most recent call last):
(C) File "???", line 0, in _start (python3.11)
(C) File "../csu/libc-start.c", line 308, in __libc_start_main (libc.so.6)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/main.c", line 738, in Py_BytesMain (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/main.c", line 684, in Py_RunMain (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/main.c", line 605, in pymain_run_python (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/main.c", line 379, in pymain_run_file (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/main.c", line 360, in pymain_run_file_obj (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/pythonrun.c", line 1657, in pyrun_file (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/pythonrun.c", line 1762, in run_mod (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/pythonrun.c", line 1741, in run_eval_code_obj (python3.11)
(Python) File "/home/matveyev/mambaforge/envs/sardana/bin/pytest", line 10, in <module>
sys.exit(console_main())
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/config/__init__.py", line 201, in console_main
code = main()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/config/__init__.py", line 175, in main
ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main
return wrap_session(config, _main)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/main.py", line 283, in wrap_session
session.exitstatus = doit(config, session) or 0
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/main.py", line 337, in _main
config.hook.pytest_runtestloop(session=session)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/main.py", line 362, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/runner.py", line 132, in runtestprotocol
reports.append(call_and_report(item, "call", log))
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/runner.py", line 241, in call_and_report
call = CallInfo.from_call(
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/runner.py", line 341, in from_call
result: TResult | None = func()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/runner.py", line 242, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call
item.runtest()
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/site-packages/_pytest/unittest.py", line 351, in runtest
testcase(result=self)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/unittest/case.py", line 678, in __call__
return self.run(*args, **kwds)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/unittest/case.py", line 623, in run
self._callTestMethod(testMethod)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/unittest/case.py", line 579, in _callTestMethod
if method() is not None:
(Python) File "/home/matveyev/taurus/lib/taurus/test/base.py", line 124, in newTest
return helper(**helper_kwargs)
(Python) File "/home/matveyev/sardana/src/sardana/taurus/core/tango/sardana/test/test_measgrpstress.py", line 85, in stress_count
state, values = mg.count(.001)
(Python) File "/home/matveyev/sardana/src/sardana/taurus/core/tango/sardana/pool.py", line 3302, in go
return self.count_raw(start_time)
(Python) File "/home/matveyev/sardana/src/sardana/taurus/core/tango/sardana/pool.py", line 3268, in count_raw
PoolElement.go(self)
(Python) File "/home/matveyev/sardana/src/sardana/taurus/core/tango/sardana/pool.py", line 289, in new_fn
return fn(*args, **kwargs)
(Python) File "/home/matveyev/sardana/src/sardana/taurus/core/tango/sardana/pool.py", line 592, in go
self.waitFinish(id=eid, timeout=timeout)
(Python) File "/home/matveyev/sardana/src/sardana/taurus/core/tango/sardana/pool.py", line 579, in waitFinish
evt_wait.waitForEvent((DevState.MOVING, ), after=id, equal=False,
(Python) File "/home/matveyev/taurus/lib/taurus/core/util/event.py", line 806, in waitForEvent
self._cond.wait(wait_timeout)
(Python) File "/home/matveyev/mambaforge/envs/sardana/lib/python3.11/threading.py", line 331, in wait
gotit = waiter.acquire(True, timeout)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 179, in lock_PyThread_acquire_lock (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Modules/_threadmodule.c", line 98, in acquire_timed (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Python/thread_pthread.h", line 490, in PyThread_acquire_lock_timed (python3.11)
(C) File "./nptl/sem_waitcommon.c", line 184, in __new_sem_wait_slow.constprop.0 (libpthread.so.0)
(C) File "./nptl/sem_waitcommon.c", line 112, in do_futex_wait.constprop.0 (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43061 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 324, in Tango::ZmqEventConsumer::run_undetached(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 602, in Tango::ZmqEventConsumer::process_event(zmq::message_t&, zmq::message_t&, zmq::message_t&, zmq::message_t&) (libtango.so.10.0)
(C) File "???", line 0, in __restore_rt (libpthread.so.0)
(C) File "../sysdeps/unix/sysv/linux/raise.c", line 51, in raise (libpthread.so.0)
Traceback for thread 43013 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in blas_thread_server (libcblas.so.3)
(C) File "./nptl/pthread_cond_wait.c", line 638, in pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 508, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 186, in futex_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43014 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in blas_thread_server (libcblas.so.3)
(C) File "./nptl/pthread_cond_wait.c", line 638, in pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 508, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 186, in futex_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43018 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "???", line 0, in omniAsyncWorker::run(void*) (libomniORB4.so.3)
(C) File "???", line 0, in omniAsyncWorker::mid_run() (libomniORB4.so.3)
(C) File "???", line 0, in omniAsyncWorker::real_run() (libomniORB4.so.3)
(C) File "???", line 0, in omni::Scavenger::execute() (libomniORB4.so.3)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43015 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in blas_thread_server (libcblas.so.3)
(C) File "./nptl/pthread_cond_wait.c", line 638, in pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 508, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 186, in futex_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43205 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2239, in Tango::DelayedEventUnsubThread::run(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2028, in Tango::EventConsumer::unsubscribe_event(int) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 4090, in Tango::DelayEvent::DelayEvent(Tango::EventConsumer*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/include/tango/server/tango_monitor.h", line 166, in Tango::TangoMonitor::get_monitor() (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/server/utils.cpp", line 3253, in Tango::TangoMonitor::wait(long) (libtango.so.10.0)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43016 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in blas_thread_server (libcblas.so.3)
(C) File "./nptl/pthread_cond_wait.c", line 638, in pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 508, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 186, in futex_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43060 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/eventkeepalive.cpp", line 584, in Tango::EventConsumerKeepAliveThread::run_undetached(void*) (libtango.so.10.0)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43206 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2239, in Tango::DelayedEventUnsubThread::run(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2028, in Tango::EventConsumer::unsubscribe_event(int) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 4090, in Tango::DelayEvent::DelayEvent(Tango::EventConsumer*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/include/tango/server/tango_monitor.h", line 166, in Tango::TangoMonitor::get_monitor() (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/server/utils.cpp", line 3253, in Tango::TangoMonitor::wait(long) (libtango.so.10.0)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43017 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in blas_thread_server (libcblas.so.3)
(C) File "./nptl/pthread_cond_wait.c", line 638, in pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 508, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 186, in futex_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43062 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in thread_routine (libzmq.so.5)
(C) File "???", line 0, in zmq::epoll_t::loop() (libzmq.so.5)
(C) File "../sysdeps/unix/sysv/linux/epoll_wait.c", line 30, in epoll_wait (libc.so.6)
Traceback for thread 43074 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "???", line 0, in omniAsyncWorker::run(void*) (libomniORB4.so.3)
(C) File "???", line 0, in omniAsyncWorker::mid_run() (libomniORB4.so.3)
(C) File "???", line 0, in omniAsyncPoolClient::workerRun(omniAsyncWorker*) (libomniORB4.so.3)
(C) File "???", line 0, in omniAsyncWorker::real_run() (libomniORB4.so.3)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43063 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in thread_routine (libzmq.so.5)
(C) File "???", line 0, in zmq::epoll_t::loop() (libzmq.so.5)
(C) File "../sysdeps/unix/sysv/linux/epoll_wait.c", line 30, in epoll_wait (libc.so.6)
Traceback for thread 43208 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2239, in Tango::DelayedEventUnsubThread::run(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2028, in Tango::EventConsumer::unsubscribe_event(int) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 4090, in Tango::DelayEvent::DelayEvent(Tango::EventConsumer*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/include/tango/server/tango_monitor.h", line 166, in Tango::TangoMonitor::get_monitor() (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/server/utils.cpp", line 3253, in Tango::TangoMonitor::wait(long) (libtango.so.10.0)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43210 [] (most recent call last):
(C) File "/usr/local/src/conda/python-3.11.11/Objects/dictobject.c", line 2393, in dict_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/typeobject.c", line 1463, in subtype_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/typeobject.c", line 4573, in object_dealloc (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/typeobject.c", line 1463, in subtype_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/typeobject.c", line 4573, in object_dealloc (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/typeobject.c", line 1463, in subtype_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/dictobject.c", line 2393, in dict_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/dictobject.c", line 2393, in dict_dealloc (python3.11)
(C) File "???", line 0, in pybind11_object_dealloc (_tango.so)
(C) File "???", line 0, in pybind11::detail::clear_instance(_object*) (_tango.so)
(C) File "???", line 0, in pybind11::class_<Tango::CmdArgType>::dealloc(pybind11::detail::value_and_holder&) (_tango.so)
(C) File "???", line 0, in pybind11::detail::clear_instance(_object*) (_tango.so)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/dictobject.c", line 2373, in dict_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/dictobject.c", line 712, in free_values (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/funcobject.c", line 713, in func_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/funcobject.c", line 694, in func_clear (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Include/object.h", line 538, in Py_DECREF (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/tupleobject.c", line 208, in tupledealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Include/object.h", line 602, in Py_XDECREF (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Include/object.h", line 538, in Py_DECREF (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Objects/cellobject.c", line 82, in cell_dealloc (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Include/object.h", line 602, in Py_XDECREF (inlined) (python3.11)
(C) File "/usr/local/src/conda/python-3.11.11/Include/object.h", line 538, in Py_DECREF (inlined) (python3.11)
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 78, in __clone (libc.so.6)
Traceback for thread 43207 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 78, in __clone (libc.so.6)
Traceback for thread 43211 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2239, in Tango::DelayedEventUnsubThread::run(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2028, in Tango::EventConsumer::unsubscribe_event(int) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 4090, in Tango::DelayEvent::DelayEvent(Tango::EventConsumer*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/include/tango/server/tango_monitor.h", line 166, in Tango::TangoMonitor::get_monitor() (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/server/utils.cpp", line 3253, in Tango::TangoMonitor::wait(long) (libtango.so.10.0)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
Traceback for thread 43204 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2239, in Tango::DelayedEventUnsubThread::run(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2028, in Tango::EventConsumer::unsubscribe_event(int) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 4101, in Tango::DelayEvent::DelayEvent(Tango::EventConsumer*) (libtango.so.10.0)
(C) File "/usr/local/src/conda-prefix/include/zmq.hpp", line 2039, in zmq::detail::socket_base::recv(zmq::message_t&, zmq::recv_flags) (inlined) (libtango.so.10.0)
(C) File "???", line 0, in zmq_msg_recv (libzmq.so.5)
(C) File "???", line 0, in zmq::socket_base_t::recv(zmq::msg_t*, int) (libzmq.so.5)
(C) File "???", line 0, in zmq::socket_base_t::process_commands(int, bool) (libzmq.so.5)
(C) File "???", line 0, in zmq::mailbox_t::recv(zmq::command_t*, int) (libzmq.so.5)
(C) File "???", line 0, in zmq::signaler_t::wait(int) const (libzmq.so.5)
(C) File "../sysdeps/unix/sysv/linux/poll.c", line 29, in __poll (libc.so.6)
Traceback for thread 43209 [] (most recent call last):
(C) File "../sysdeps/unix/sysv/linux/x86_64/clone.S", line 95, in __clone (libc.so.6)
(C) File "./nptl/pthread_create.c", line 477, in start_thread (libpthread.so.0)
(C) File "???", line 0, in omni_thread_wrapper (libomnithread.so.4)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2239, in Tango::DelayedEventUnsubThread::run(void*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/event.cpp", line 2028, in Tango::EventConsumer::unsubscribe_event(int) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/client/zmqeventconsumer.cpp", line 4090, in Tango::DelayEvent::DelayEvent(Tango::EventConsumer*) (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/include/tango/server/tango_monitor.h", line 166, in Tango::TangoMonitor::get_monitor() (libtango.so.10.0)
(C) File "/usr/local/src/conda/cpptango-10.0.2/src/server/utils.cpp", line 3253, in Tango::TangoMonitor::wait(long) (libtango.so.10.0)
(C) File "???", line 0, in omni_condition::timedwait(unsigned long, unsigned long) (libomnithread.so.4)
(C) File "./nptl/pthread_cond_wait.c", line 656, in pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
(C) File "./nptl/pthread_cond_wait.c", line 520, in __pthread_cond_wait_common (inlined) (libpthread.so.0)
(C) File "../sysdeps/nptl/futex-internal.h", line 323, in futex_abstimed_wait_cancelable (inlined) (libpthread.so.0)
The important thing is, that the test run was abnormal.
This is how it should run:
src/sardana/taurus/core/tango/sardana/test/test_measgrpstress.py::TestStressMeasurementGroup::test_stress_count_5 MainThread INFO 2025-03-13 16:21:47,689 Starter: Starting server Pool/unittest1_1...
MainThread WARNING 2025-03-13 16:21:48,421 TaurusRootLogger: epics scheme not available: ModuleNotFoundError("No module named 'epics'")
MainThread WARNING 2025-03-13 16:21:48,544 ModuleManager: Invalid module HklPseudoMotorController. The dependency package libhkl5 is probably not installed. Safe to ignore if you're not using this controller.
MainThread INFO 2025-03-13 16:21:48,693 Starter: Server Pool/unittest1_1 has been started
Tango event (attr_conf) received
subscribe_event called: ('state', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/state.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 73
Tango event (change) received
subscribe_event called: ('state', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/state.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 74
Tango event (attr_conf) received
subscribe_event called: ('status', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/status.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 75
Tango event (change) received
subscribe_event called: ('status', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/status.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 76
Tango event (attr_conf) received
subscribe_event called: ('configuration', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/configuration.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 77
Tango event (change) received
subscribe_event called: ('configuration', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/configuration.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 78
Tango event (change) received
Test repeat: 0
Tango event (attr_conf) received
subscribe_event called: ('SynchDescription', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/SynchDescription.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 79
Tango event (change) received
subscribe_event called: ('SynchDescription', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/SynchDescription.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 80
Tango event (attr_conf) received
subscribe_event called: ('IntegrationTime', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/IntegrationTime.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 81
Tango event (change) received
subscribe_event called: ('IntegrationTime', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/IntegrationTime.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 82
Tango event (change) received
Tango event (change) received
Tango event (attr_conf) received
subscribe_event called: ('Moveable', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/Moveable.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 83
Tango event (change) received
subscribe_event called: ('Moveable', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/Moveable.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 84
Tango event (change) received
Tango event (attr_conf) received
subscribe_event called: ('NbStarts', <EventType.ATTR_CONF_EVENT: 5>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/NbStarts.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], True), {} , got ID: 85
Tango event (change) received
subscribe_event called: ('NbStarts', <EventType.CHANGE_EVENT: 0>, BoundMethodWeakRef of tango://haso102ym:10000/mntgrp/unittest1_1/e3206324-001e-11f0-9263-00305927613d/NbStarts.<function TangoAttribute.push_event at 0x7eff0b0d16c0>, [], False), {} , got ID: 86
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Test repeat: 1
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Tango event (change) received
Test repeat: 2
.....
unsubscribe_event called for ID: 73
unsubscribe_event called for ID: 74
unsubscribe_event called for ID: 75
unsubscribe_event called for ID: 76
unsubscribe_event called for ID: 79
unsubscribe_event called for ID: 80
unsubscribe_event called for ID: 81
unsubscribe_event called for ID: 82
unsubscribe_event called for ID: 83
unsubscribe_event called for ID: 84
unsubscribe_event called for ID: 85
unsubscribe_event called for ID: 86
unsubscribe_event called for ID: 77
unsubscribe_event called for ID: 78
So we should unsubscribe only after all runs are done. Why it is important - not clear for me.
This is how to reproduce (if you have running Tango Database on your PC):
- create mamba with dependencies:
mamba create -n sardana_test --yes python=3.11 cpptango=10.0.2 pytest pytest-xvfb h5py matplotlib pyqtgraph pymca qtconsole itango taurus dsconfig "ruamel.yaml<=0.18.5" "pydantic<2.0" jsonpatch python-graphviz pybind11 magic_enum cppzmq cxx-compiler pkg-config numpy gcovr git make packaging psutil typing_extensions pytest pytest-asyncio pytest-forked pytest-cov pytest-timeout pystack gevent opentelemetry-api opentelemetry-sdk opentelemetry-exporter-otlp-proto-grpc opentelemetry-exporter-otlp-proto-http cmake clang-format clang-tools cppcheck ninja scikit-build-core pybind11-stubgen
- install there pytango (I do in editabel mode)
pip install --no-build-isolation --config-settings=build-dir="build/{wheel_tag}_{build_type}" -v -e ".[tests]"
- chechout pybind11 branch of taurus and install with pip it from there (I do editable mode)
- modify here taurus to see outpus from subprocesses:
self.process = subprocess.Popen(args) #, stdout=dev_null, stderr=dev_null
- checkout develop sardana and also install with pip (I do also editable)
- run tests (somethimes several times)
pytest -v -s src/sardana/taurus/core/tango/sardana/test/test_measgrpstress.py
Edited by Yury Matveev