Skip to content

Prevent exceptions from pytest / enum member access #83

@wskozlowski

Description

@wskozlowski

gdb python3
catch throw
r -m pytest

many such exceptions are raised (and ignored). We should NOT throw exceptions in this case

#0 0x00007ffa7cd92180 in __cxa_throw () from /usr/local/lib64/libstdc++.so.6
#1 0x00007ffa7dcea048 in db0::ThrowItdb0::InternalException::~ThrowIt (this=0x7fff90aa8930, __in_chrg=) at ../../src/dbzero/core/exception/AbstractException.hpp:94
#2 0x00007ffa7dd24a7c in db0::python::PyWorkspace::getWorkspace (this=0x7ffa7e2ef9c0 db0::python::PyToolkit::m_py_workspace) at /src/dev/src/dbzero/bindings/python/PyWorkspace.cpp:34
#3 0x00007ffa7dd22d3a in db0::python::PyEnumData::operator* (this=0x7ffa520b4d40) at /src/dev/src/dbzero/bindings/python/PyEnumType.cpp:26
#4 0x00007ffa7dd22ff6 in db0::python::PyEnumData::operator-> (this=0x7ffa520b4d40) at /src/dev/src/dbzero/bindings/python/PyEnumType.cpp:40
#5 0x00007ffa7dd336e3 in db0::python::tryPyEnum_getattro (self=0x7ffa520b4d30, attr=0x7ffa7f49fc70) at /src/dev/src/dbzero/bindings/python/PyEnum.cpp:34
#6 0x00007ffa7dd33ec6 in db0::python::runSafe<db0::python::PyWrapperdb0::python::PyEnumData, _object, _object* ()(db0::python::PyWrapperdb0::python::PyEnumData, _object*)> (
func=0x7ffa7dd336be <db0::python::tryPyEnum_getattro(db0::python::PyWrapperdb0::python::PyEnumData, _object)>) at /src/dev/src/dbzero/bindings/python/PyInternalAPI.hpp:47
#7 0x00007ffa7dd33777 in db0::python::PyEnum_getattro (self=0x7ffa520b4d30, attr=0x7ffa7f49fc70) at /src/dev/src/dbzero/bindings/python/PyEnum.cpp:43

#8 0x000000000051c0c7 in _PyObject_LookupAttrId ()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions