Quiddity: Segfault when initializing an instance of the class
Summary
When I try to initialize an instance of the Quiddity class, I always get a segfault. This is not the case when i use the .create(type, name, config) method of a Switcher instance
How to reproduce ?
Write a python script using PyQuid
- Initialize Switcher
- Create a SIP Quiddity
from pyquid import Switcher, Quiddity
sw = Switcher('caller', debug=True)
quid = Quiddity('sip', 'sip_quid')
Expected behavior
I expected the instance to be initialized in the same way as when using the .create(type, name, config) method of the Switcher instance
What is the frequency of occurrence of this behavior ?
Always.
Other comment
Running the script above within GDB shows that the segfault occurs because of a call to dealloc
.
Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007ffff7223463 in pyQuiddity::Quiddity_dealloc(pyQuiddity::{unnamed type#3}*) () from /usr/lib/python3/dist-packages/pyquid.so