Can you describe what your python run script is doing?

It looks like the error is happening when dumping stats. To do this, gem5
does python->C++->python, which may be causing the problem. Though, that's
just a guess.

Can you create a minimal example that causes the error so we can reproduce
it?

Thanks,
Jason

On Wed, Oct 19, 2022 at 3:18 AM Yuan Yao <yuan....@it.uu.se> wrote:

>
> Hi,
>
>      We encountered the following error when I am using X86KvmCPU and
> TimingSimpleCPU to make checkpoints in FS.
>
>      "pybind11::object_api<>::operator() PyGILState_Check() failure."
>
>      The same problem is reproduced in Ubuntu 20.04 and 22.04.
>
>      My guess is some simobjects grabbed the lock without releasing it.
> But I am not sure.
>      Can someone hint us on how to debug such exceptions?
>
>
> == GDB stack ===
>
> #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
> #1  0x00007ffff6bc8859 in __GI_abort () at abort.c:79
> #2  0x00007ffff6fa0911 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
> #3  0x00007ffff6fac38c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
> #4  0x00007ffff6fac3f7 in std::terminate() () from
> /lib/x86_64-linux-gnu/libstdc++.so.6
> #5  0x00007ffff6fac6a9 in __cxa_throw () from
> /lib/x86_64-linux-gnu/libstdc++.so.6
> #6  0x000055555577ef75 in pybind11::pybind11_fail (reason=0x55555737f9b8
> "pybind11::object_api<>::operator() PyGILState_Check() failure.") at
> ext/pybind11/include/pybind11/detail/common.h:838
> #7  0x000055555621f640 in
>
> pybind11::detail::object_api<pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr>
>  >::operator()<(pybind11::return_value_policy)1> (this=0x7fff2f91cb20)
> at ext/pybind11/include/pybind11/cast.h:1397
> #8  0x00005555562175a5 in gem5::statistics::pythonDump () at
> build/X86_MESI_Two_Level/python/pybind11/stats.cc:94
> #9  0x00005555566cf5fa in gem5::statistics::dump () at
> build/X86_MESI_Two_Level/base/statistics.cc:304
> #10 0x00005555567e6355 in gem5::statistics::StatEvent::process
> (this=0x555575ed0000) at build/X86_MESI_Two_Level/sim/stat_control.cc:92
> #11 0x00005555567c64ef in gem5::GlobalEvent::BarrierEvent::process
> (this=0x55555b865300) at build/X86_MESI_Two_Level/sim/global_event.cc:134
> #12 0x00005555567bb412 in gem5::EventQueue::serviceOne
> (this=0x555558b997a0) at build/X86_MESI_Two_Level/sim/eventq.cc:223
>
>
>
>
>
>
>
>
>
> När du har kontakt med oss på Uppsala universitet med e-post så innebär
> det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör
> det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/
>
> E-mailing Uppsala University means that we will process your personal
> data. For more information on how this is performed, please read here:
> http://www.uu.se/en/about-uu/data-protection-policy
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to