I am trying to run a simple program in gem5.opt for X86 architecture using
the configurations files from the examples. The total command line is -

build/X86/gem5.opt --debug-flags=O3PipeView --debug-file=pipeview.txt
--debug-start=0 configs/learning_gem5/part1/two_level.py spectre

where spectre is a binary which works properly without the debug flags.
The problem is, whenever the debug start clocktick is passed, I am getting
a segmentation fault. I can run my code otherwise with or without any other
debug flags. But if I turn on O3PipeView then the simulator is facing
segmentation fault. If I set the debug start to be at 5000000 then the
program runs till 5000000 without any problems.

What can be done here to resolve this?




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
info: Entering event queue @ 0.  Starting simulation...
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
./build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x5583feaa973c]
./build/X86/gem5.opt(+0x4b896f)[0x5583feabb96f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f1f61a2b890]
./build/X86/gem5.opt(_ZN7LSQUnitI9O3CPUImplE13completeStoreEN13CircularQueueINS1_7SQEntryEE8iteratorE+0xf0)[0x5583ff8d31c0]
./build/X86/gem5.opt(_ZN7LSQUnitI9O3CPUImplE18completeDataAccessEP6Packet+0x251)[0x5583ff8d3951]
./build/X86/gem5.opt(_ZN3LSQI9O3CPUImplE17SingleDataRequest14recvTimingRespEP6Packet+0x5d)[0x5583ff8c864d]
./build/X86/gem5.opt(_ZN3LSQI9O3CPUImplE14recvTimingRespEP6Packet+0xbd)[0x5583ff8cdddd]
./build/X86/gem5.opt(+0x10a4ede)[0x5583ff6a7ede]
./build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xd9)[0x5583feab1519]
./build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x87)[0x5583feacca67]
./build/X86/gem5.opt(_Z8simulatem+0xcaa)[0x5583feacdaaa]
./build/X86/gem5.opt(+0x1457cbe)[0x5583ffa5acbe]
./build/X86/gem5.opt(+0x51830c)[0x5583feb1b30c]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x64d7)[0x7f1f61ce5697]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1f61e17278]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7f1f61ce4db6]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1f61e17278]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f1f61cdf029]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ac0)[0x7f1f61ce5c80]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1f61e17278]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7f1f61ce4db6]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f1f61e17278]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f1f61cdf029]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[0x7f1f61d82546]
./build/X86/gem5.opt(_Z6m5MainiPPc+0x83)[0x5583feaba713]
./build/X86/gem5.opt(main+0x38)[0x5583fea602c8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f1f6021cb97]
./build/X86/gem5.opt(_start+0x2a)[0x5583fea883ca]
--- END LIBC BACKTRACE ---

-- 
S.M.Farabi Mahmud
Graduate Student
Department of Computer Science & Engineering
Texas A&M University
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to