LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4d61710 in SBase::getParentSBMLObject() const () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
(gdb) bt
#0 0x00007ffff4d61710 in SBase::getParentSBMLObject() const () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#1 0x00007ffff4ad8677 in VConstraintSpeciesFeatureValueMultiSpeFtrVal_ValAtt_Ref::check_(Model const&, SpeciesFeatureValue const&) ()
from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#2 0x00007ffff4adb619 in MultiValidatingVisitor::visit(SBase const&) () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#3 0x00007ffff4ab1c19 in SpeciesFeature::accept(SBMLVisitor&) const () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#4 0x00007ffff4a93653 in MultiSpeciesPlugin::accept(SBMLVisitor&) const () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#5 0x00007ffff4ada109 in MultiValidator::validate(SBMLDocument const&) () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#6 0x00007ffff4a8e8d3 in MultiSBMLDocumentPlugin::checkConsistency() () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#7 0x00007ffff4d37b99 in SBMLDocument::validateSBML() () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
#8 0x00007ffff4542396 in _wrap_SBMLDocument_validateSBML () from /lib/python3.11/site-packages/libsbml/_libsbml.cpython-311-x86_64-linux-gnu.so
This seems to be related to the absence of the speciesType (no segfault when adding back the commented-out speciesType)
No segfault when removing multi:listOfSpeciesFeatures
python-libsbml-5.20.0 does not segfault, but validation does not complain about the missing (but referenced) speciesType
With python-libsbml-5.20.1 (Python 3.11.4/linux) the following code segfaults:
multi:listOfSpeciesFeatures