Hello, We recently updated our internal repo to be based on a recent rev of the public gem5 repo which includes PyBind. After this change, amongst others from the public repo, I noticed that the simulator was exiting with return code 1, although the simulations seem to run and complete.
What I found is that gem5 seems to be calling the python interpreter to run python statements, such as "import m5" and they work fine, but when it gets to "m5.main()", this fails to execute for some reason and PyErr_Print() is called. This also seems to fail and thus the simulator exits with error code 1. This happens after the simulation completes and the simulated application returns. Below is the stack trace: #0 __GI__exit (status=status@entry=1) at ../sysdeps/unix/sysv/linux/_exit.c:28 #1 0x00007ffff66f3a0b in __run_exit_handlers (status=status@entry=1, listp=<optimized out>, run_list_atexit=run_list_atexit@entry=true) at exit.c:92 #2 0x00007ffff66f3a95 in __GI_exit (status=status@entry=1) at exit.c:99 #3 0x00007ffff74f08cf in Py_Exit (sts=sts@entry=1) at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1783 #4 0x00007ffff74f0a07 in handle_system_exit () at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1155 #5 0x00007ffff74f0ccd in handle_system_exit () at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1177 #6 PyErr_PrintEx (set_sys_last_vars=set_sys_last_vars@entry=1) at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1165 #7 0x00007ffff74f0eca in PyErr_Print () at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1068 #8 0x000000000141ed9c in m5Main (argc=argc@entry=7, argv=argv@entry=0x7fffffffb158) at build/X86/sim/init.cc:280 #9 0x0000000000b03323 in main (argc=7, argv=0x7fffffffb158) at build/X86/sim/main.cc:58 Does anyone have any insights as to why this is happening? Was there some mandatory update to execution scripts that we may have missed? Any help is appreciated. Joe _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
