Open o01eg opened 1 year ago
(gdb) bt full
...
#8 0x00007ffff78c23fc in __asan::__asan_report_load1 (addr=<optimized out>) at ../../../../src/libsanitizer/asan/asan_rtl.cpp:120
bp = 140737168513488
pc = <optimized out>
local_stack = 140737353891072
sp = 140737168513480
#9 0x00007ffff38eaee4 in boost::python::to_python_value<bool const&>::operator() (this=0x7fffecef9a80, x=@0x7fffecefd2d0: 22)
at /usr/include/boost/python/converter/builtin_converters.hpp:113
No locals.
#10 0x00007ffff3948e9e in boost::python::detail::invoke<boost::python::to_python_value<bool const&>, boost::python::detail::datum<bool const> > (rc=..., f=...)
at /usr/include/boost/python/detail/invoke.hpp:73
No locals.
#11 0x00007ffff39423f2 in boost::python::detail::caller_arity<0u>::impl<boost::python::detail::datum<bool const>, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector1<bool const&> >::operator() (this=0x602000014898, args_=0x7ffff1544db8 <_PyRuntime+58904>)
at /usr/include/boost/python/detail/caller.hpp:233
inner_args = 0x7ffff1544db8 <_PyRuntime+58904>
result = 0x7fffedcf3540
#12 0x00007ffff39405ef in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<boost::python::detail::datum<bool const>, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector1<bool const&> > >::operator() (this=0x602000014890, args=0x7ffff1544db8 <_PyRuntime+58904>, kw=0x0)
at /usr/include/boost/python/object/py_function.hpp:38
No locals.
#13 0x00007ffff450235d in boost::python::objects::py_function::operator() (kw=0x0, args=0x7ffff1544db8 <_PyRuntime+58904>, this=0x607000004a90) at ./boost/python/object/py_function.hpp:147
No locals.
#14 boost::python::objects::function::call (this=0x607000004a80, args=0x7ffff1544db8 <_PyRuntime+58904>, keywords=0x0) at libs/python/src/object/function.cpp:221
inner_args = {m_p = 0x7ffff1544db8 <_PyRuntime+58904>}
result = <optimized out>
min_arity = <optimized out>
max_arity = 0
n_unnamed_actual = 0
n_keyword_actual = 0
n_actual = 0
f = 0x607000004a80
#15 0x00007ffff4502528 in boost::python::objects::(anonymous namespace)::bind_return::operator() (this=<optimized out>) at libs/python/src/object/function.cpp:581
No locals.
#16 boost::detail::function::void_function_ref_invoker0<boost::python::objects::(anonymous namespace)::bind_return, void>::invoke (function_obj_ptr=...)
at ./boost/function/function_template.hpp:193
f = <optimized out>
#17 0x00007ffff450749b in boost::function0<void>::operator() (this=<optimized out>) at ./boost/function/function_template.hpp:763
No locals.
#18 boost::python::detail::exception_handler::operator() (this=<optimized out>, f=...) at libs/python/src/errors.cpp:74
No locals.
#19 0x00007ffff38e7a2e in boost::python::detail::translate_exception<(anonymous namespace)::import_error, void (*)((anonymous namespace)::import_error const&)>::operator() (
this=0x604000011118, handler=..., f=..., translate=0x7ffff38d4a85 <(anonymous namespace)::translate((anonymous namespace)::import_error const&)>)
at /usr/include/boost/python/detail/translate_exception.hpp:46
No locals.
#20 0x00007ffff38e7413 in boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<void (*)((anonymous namespace)::import_error const&)> >::operator()<bool, boost::python::detail::translate_exception<(anonymous namespace)::import_error, void (*)((anonymous namespace)::import_error const&)>, boost::_bi::rrlist2<boost::python::detail::exception_handler const&, boost::function0<void> const&> > (this=0x604000011120, f=..., a=...) at /usr/include/boost/bind/bind.hpp:388
No locals.
#21 0x00007ffff38e6a05 in boost::_bi::bind_t<bool, boost::python::detail::translate_exception<(anonymous namespace)::import_error, void (*)((anonymous namespace)::import_error const&)>, boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<void (*)((anonymous namespace)::import_error const&)> > >::operator()<boost::python::detail::exception_handler const&, boost::function0<void> const&> (this=0x604000011118, a1=..., a2=...) at /usr/include/boost/bind/bind.hpp:1318
a = {a1_ = @0x604000011110, a2_ = @0x7fffecef9e20}
#22 0x00007ffff38e62c6 in boost::detail::function::function_obj_invoker2<boost::_bi::bind_t<bool, boost::python::detail::translate_exception<(anonymous namespace)::import_error, void (*)((anonymous namespace)::import_error const&)>, boost::_bi::list3<boost::arg<1>, boost::arg<2>, boost::_bi::value<void (*)((anonymous namespace)::import_error const&)> > >, bool, boost::python::detail::exception_handler const&, boost::function0<void> const&>::invoke (function_obj_ptr=..., a0=..., a1=...) at /usr/include/boost/function/function_template.hpp:137
f = 0x604000011118
#23 0x00007ffff45073ad in boost::function2<bool, boost::python::detail::exception_handler const&, boost::function0<void> const&>::operator() (a1=..., a0=..., this=<optimized out>)
at ./boost/function/function_template.hpp:763
No locals.
#24 boost::python::detail::exception_handler::handle (f=..., this=<optimized out>) at ./boost/python/detail/exception_handler.hpp:41
No locals.
#25 boost::python::handle_exception_impl (f=...) at libs/python/src/errors.cpp:24
No locals.
#26 0x00007ffff44ffec2 in boost::python::handle_exception<boost::python::objects::(anonymous namespace)::bind_return> (f=...) at ./boost/python/errors.hpp:29
No locals.
#27 boost::python::objects::function_call (func=<optimized out>, args=<optimized out>, kw=<optimized out>) at libs/python/src/object/function.cpp:622
result = 0x0
#28 0x00007ffff0f7baed in _PyObject_MakeTpCall () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#29 0x00007ffff0f7d569 in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#30 0x00007ffff0f7d68e in PyObject_CallFunction () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#31 0x00007ffff0fd0439 in _PyObject_GenericGetAttrWithDict () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#32 0x00007ffff0fcf978 in PyObject_GetAttr () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#33 0x00007ffff0f0682c in _PyEval_EvalFrameDefault () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#34 0x00007ffff106a6da in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#35 0x00007ffff0f7e1cf in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#36 0x00007ffff0f7e3ea in PyObject_CallMethodObjArgs () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#37 0x00007ffff109637f in PyImport_ImportModuleLevelObject () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#38 0x00007ffff106185e in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#39 0x00007ffff0fc9c52 in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#40 0x00007ffff0f0a7d3 in _PyEval_EvalFrameDefault () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#41 0x00007ffff106a6da in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#42 0x00007ffff0f7e1cf in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#43 0x00007ffff0f7e3ea in PyObject_CallMethodObjArgs () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#44 0x00007ffff109637f in PyImport_ImportModuleLevelObject () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#45 0x00007ffff0f13378 in _PyEval_EvalFrameDefault () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#46 0x00007ffff11cc73c in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#47 0x00007ffff1068421 in PyEval_EvalCode () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#48 0x00007ffff10b6d89 in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#49 0x00007ffff10b7f3b in PyRun_StringFlags () from /usr/lib/x86_64-linux-gnu/libpython3.11.so.1.0
No symbol table info available.
#50 0x00007ffff450ae09 in boost::python::exec (
string=0x61d000142880 "from common.priorities import (\n AFTER_ALL_TARGET_MAX_METERS_PRIORITY,\n METER_OVERRIDE_PRIORITY,\n TARGET_AFTER_2ND_SCALING_PRIORITY,\n)\n\nTech(\n name=\"CON_OUTPOST\",\n description=\"CON_OUTP"..., global=..., local=...) at ./boost/python/object_core.hpp:440
s = 0x61d000142880 "from common.priorities import (\n AFTER_ALL_TARGET_MAX_METERS_PRIORITY,\n METER_OVERRIDE_PRIORITY,\n TARGET_AFTER_2ND_SCALING_PRIORITY,\n)\n\nTech(\n name=\"CON_OUTPOST\",\n description=\"CON_OUTP"...
result = <optimized out>
#51 0x00007ffff38de221 in PythonParser::ParseFileCommon (this=0x7fffecefec50, path=..., globals=...,
filename="/home/oleg/devel/build-freeorion-rel/default/scripting/techs/construction/OUTPOST.focs.py",
file_contents="from common.priorities import (\n AFTER_ALL_TARGET_MAX_METERS_PRIORITY,\n METER_OVERRIDE_PRIORITY,\n TARGET_AFTER_2ND_SCALING_PRIORITY,\n)\n\nTech(\n name=\"CON_OUTPOST\",\n description=\"CON_OUTP"...) at /home/oleg/devel/freeorion/parse/PythonParser.cpp:326
read_success = true
...
Encountered in https://github.com/freeorion/freeorion with tag
v0.5-rc1
To reproduce build it with-DBUILD_TESTING=On -DBUILD_CLIENT_GG=Off -DBUILD_SERVER=Off -DBUILD_AI=Off
and runASAN_OPTIONS=detect_leaks=0 ./fo_unittest_parse --run_test=TestPythonParser/parse_techs_full
Mininified example https://github.com/o01eg/freeorion with branch
test-python-sanitize-mini
on CI: https://github.com/o01eg/freeorion/actions/runs/4264388156/jobs/7422403144