Please give this a try: https://gem5-review.googlesource.com/c/public/gem5/+/49183
On Tue, Aug 10, 2021 at 9:37 PM Deric Cheung via gem5-users < gem5-users@gem5.org> wrote: > Host OS: Ubuntu 12.04 LTS > Host CPU: Intel i7-2600 3.40 GHz > > I'm trying to debug an x86 application on an O3CPU using syscall > emulation, but static_inst.cc panics or runs into an assertion error. Ideas > for how I can debug or solve this issue? > > Example command 1 (causing panic): build/X86/gem5.opt --debug-flags=Exec > --debug-file=debug.txt configs/example/se.py --cpu-type=O3CPU --caches -c > tests/test-progs/hello/bin/x86/linux/hello > > Terminal output: > >> $build/X86/gem5.opt --debug-flags=Exec --debug-file=debug.txt >>> configs/example/se.py --cpu-type=O3CPU --caches -c >>> tests/test-progs/hello/bin/x86/linux/hello >> >> gem5 Simulator System. http://gem5.org >> >> gem5 is copyrighted software; use the --copyright option for details. >> >> >>> gem5 version 21.1.0.0 >> >> gem5 compiled Aug 10 2021 19:50:47 >> >> gem5 started Aug 10 2021 22:07:52 >> >> gem5 executing on uc12, pid 1240379 >> >> command line: build/X86/gem5.opt --debug-flags=Exec >>> --debug-file=debug.txt configs/example/se.py --cpu-type=O3CPU --caches -c >>> tests/test-progs/hello/bin/x86/linux/hello >> >> >>> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.master is deprecated. `master` is now called `mem_side_ports` >> >> warn: membus.master is deprecated. `master` is now called `mem_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> Global frequency set at 1000000000000 ticks per second >> >> warn: No dot file generated. Please install pydot to generate the dot >>> file and pdf. >> >> build/X86/mem/mem_interface.cc:791: warn: DRAM device capacity (8192 >>> Mbytes) does not match the address range assigned (512 Mbytes) >> >> 0: system.remote_gdb: listening for remote gdb on port 7000 >> >> **** REAL SIMULATION **** >> >> build/X86/sim/simulate.cc:107: info: Entering event queue @ 0. Starting >>> simulation... >> >> build/X86/arch/x86/insts/static_inst.cc:252: panic: Unrecognized register >>> class. >> >> Memory Usage: 630156 KBytes >> >> Program aborted at tick 1281000 >> >> --- BEGIN LIBC BACKTRACE --- >> >> build/X86/gem5.opt(+0x10743b0)[0x5647381dc3b0] >> >> build/X86/gem5.opt(+0x10939ae)[0x5647381fb9ae] >> >> /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7fa5889d33c0] >> >> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fa587f7618b] >> >> /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fa587f55859] >> >> build/X86/gem5.opt(+0x30e015)[0x564737476015] >> >> build/X86/gem5.opt(+0x7a6964)[0x56473790e964] >> >> build/X86/gem5.opt(+0x85464b)[0x5647379bc64b] >> >> build/X86/gem5.opt(+0xe9146d)[0x564737ff946d] >> >> build/X86/gem5.opt(+0xe838c9)[0x564737feb8c9] >> >> build/X86/gem5.opt(+0xfa9fcd)[0x564738111fcd] >> >> build/X86/gem5.opt(+0xfaadc1)[0x564738112dc1] >> >> build/X86/gem5.opt(+0xfac6c0)[0x5647381146c0] >> >> build/X86/gem5.opt(+0xfaca78)[0x564738114a78] >> >> build/X86/gem5.opt(+0xfbd4d9)[0x5647381254d9] >> >> build/X86/gem5.opt(+0x1081666)[0x5647381e9666] >> >> build/X86/gem5.opt(+0x10af3a4)[0x5647382173a4] >> >> build/X86/gem5.opt(+0x10afbf2)[0x564738217bf2] >> >> build/X86/gem5.opt(+0xc7d362)[0x564737de5362] >> >> build/X86/gem5.opt(+0x680583)[0x5647377e8583] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x2a8738)[0x7fa588c89738] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x8dd8)[0x7fa588a5ef48] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)[0x7fa588babe3b] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x94)[0x7fa588c89114] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)[0x7fa588a55d6d] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x7d86)[0x7fa588a5def6] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x8006b)[0x7fa588a6106b] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)[0x7fa588a55d6d] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x12fd)[0x7fa588a5746d] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)[0x7fa588babe3b] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x94)[0x7fa588c89114] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)[0x7fa588a55d6d] >> >> --- END LIBC BACKTRACE --- >> >> Aborted >> >> > Example command 2 (causing assertion error): build/X86/gem5.opt > --debug-flags=Exec --debug-file=debug.txt --debug-start=10000000 > configs/example/se.py --cpu-type=O3CPU --caches -c > tests/test-progs/threads/bin/x86/linux/threads > > $build/X86/gem5.opt --debug-flags=Exec --debug-file=debug.txt >>> --debug-start=10000000 configs/example/se.py --cpu-type=O3CPU --caches -c >>> tests/test-progs/threads/bin/x86/linux/threads >> >> gem5 Simulator System. http://gem5.org >> >> gem5 is copyrighted software; use the --copyright option for details. >> >> >>> gem5 version 21.1.0.0 >> >> gem5 compiled Aug 10 2021 19:50:47 >> >> gem5 started Aug 10 2021 22:15:44 >> >> gem5 executing on uc12, pid 1241464 >> >> command line: build/X86/gem5.opt --debug-flags=Exec >>> --debug-file=debug.txt --debug-start=10000000 configs/example/se.py >>> --cpu-type=O3CPU --caches -c tests/test-progs/threads/bin/x86/linux/threads >> >> >>> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> warn: membus.master is deprecated. `master` is now called `mem_side_ports` >> >> warn: membus.master is deprecated. `master` is now called `mem_side_ports` >> >> warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` >> >> Global frequency set at 1000000000000 ticks per second >> >> warn: No dot file generated. Please install pydot to generate the dot >>> file and pdf. >> >> build/X86/mem/mem_interface.cc:791: warn: DRAM device capacity (8192 >>> Mbytes) does not match the address range assigned (512 Mbytes) >> >> 0: system.remote_gdb: listening for remote gdb on port 7000 >> >> **** REAL SIMULATION **** >> >> build/X86/sim/simulate.cc:107: info: Entering event queue @ 0. Starting >>> simulation... >> >> build/X86/arch/x86/cpuid.cc:180: warn: x86 cpuid family 0x0000: >>> unimplemented function 13 >> >> gem5.opt: build/X86/arch/x86/insts/static_inst.cc:144: static void >>> gem5::X86ISA::X86StaticInst::printReg(std::ostream&, gem5::RegId, int): >>> Assertion `size == 1 || size == 2 || size == 4 || size == 8' failed. >> >> Program aborted at tick 10277500 >> >> --- BEGIN LIBC BACKTRACE --- >> >> build/X86/gem5.opt(+0x10743b0)[0x5642ab4a03b0] >> >> build/X86/gem5.opt(+0x10939ae)[0x5642ab4bf9ae] >> >> /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7fdc4238b3c0] >> >> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fdc4192e18b] >> >> /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fdc4190d859] >> >> /lib/x86_64-linux-gnu/libc.so.6(+0x25729)[0x7fdc4190d729] >> >> /lib/x86_64-linux-gnu/libc.so.6(+0x36f36)[0x7fdc4191ef36] >> >> build/X86/gem5.opt(+0x7a68da)[0x5642aabd28da] >> >> build/X86/gem5.opt(+0xb1e9d9)[0x5642aaf4a9d9] >> >> build/X86/gem5.opt(+0xe9146d)[0x5642ab2bd46d] >> >> build/X86/gem5.opt(+0xe838c9)[0x5642ab2af8c9] >> >> build/X86/gem5.opt(+0xfa9903)[0x5642ab3d5903] >> >> build/X86/gem5.opt(+0xfaadc1)[0x5642ab3d6dc1] >> >> build/X86/gem5.opt(+0xfac6c0)[0x5642ab3d86c0] >> >> build/X86/gem5.opt(+0xfaca78)[0x5642ab3d8a78] >> >> build/X86/gem5.opt(+0xfbd4d9)[0x5642ab3e94d9] >> >> build/X86/gem5.opt(+0x1081666)[0x5642ab4ad666] >> >> build/X86/gem5.opt(+0x10af3a4)[0x5642ab4db3a4] >> >> build/X86/gem5.opt(+0x10afbf2)[0x5642ab4dbbf2] >> >> build/X86/gem5.opt(+0xc7d362)[0x5642ab0a9362] >> >> build/X86/gem5.opt(+0x680583)[0x5642aaaac583] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x2a8738)[0x7fdc42641738] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x8dd8)[0x7fdc42416f48] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)[0x7fdc42563e3b] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x94)[0x7fdc42641114] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)[0x7fdc4240dd6d] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x7d86)[0x7fdc42415ef6] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x8006b)[0x7fdc4241906b] >> >> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)[0x7fdc4240dd6d] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x12fd)[0x7fdc4240f46d] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)[0x7fdc42563e3b] >> >> >>> /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x94)[0x7fdc42641114] >> >> --- END LIBC BACKTRACE --- >> >> Aborted >> >> _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s