Hello Ayaz and Everyone, I would like to run gdb tool within the image while restoring from the checkpoint in x86 O3CPU. I get a "segmentation fault error " when I restore from the checkpoint. The segmentation fault I get is in "system.pc.com_1.device" and simulation exits normally. I do not get any such error when I run on AtomicSimpleCPU or restore with AtomicSimpleCPU. I cannot use this method " http://www.gem5.org/Debugging_Simulated_Code"
Best regards, Abhishek On Sun, Sep 1, 2019 at 9:16 PM Ayaz Akram <yazak...@ucdavis.edu> wrote: > Hi Abhishek, > > You can use gdb's remote debugger interface to debug simulated code in > gem5. See details here: http://www.gem5.org/Debugging_Simulated_Code. > > Regards, > -Ayaz > > On Sun, Sep 1, 2019 at 5:56 PM Abhishek Singh < > abhishek.singh199...@gmail.com> wrote: > >> Hello Everyone, >> >> I am running the persistent benchmarks (tatp, vacation), which is a >> single thread benchmark. >> I can correctly run the benchmark on AtomicSimpleCPU and generate >> checkpoint. >> When I am trying to restore it with O3CPU, I can see "Segmentation Fault >> (core dumped)" in "system.pc.com_1.device" file. >> I want to know the reason why the benchmark could not run in O3CPU. >> I am using gem5 commit "def0a4c6fdefd9458bc15ccf7c36efdd79204821". I am >> using X86 ISA. >> I do not make changes in gem5 source codes. >> My restoring command line is >> """ >> >> ./build/X86/gem5.opt >> --outdir=/home/abs218/gem5_latest/gem5_bl_fs/tatp_pi_cgl_lazy_chkpt >> --stats-file=tatp_pi_cgl_lazy_chkpt.simout >> --dump-config=tatp_pi_cgl_lazy_chkpt.ini --redirect-stderr >> --stderr-file=tatp_pi_cgl_lazy_chkpt.e configs/example/fs.py >> --checkpoint-dir=/home/abs218/gem5_latest/gem5_bl_fs/tatp_pi_cgl_lazy_chkpt >> --disk-image=/home/abs218/gem5_latest/gem5_bl_fs/intel.img >> --kernel=/home/abs218/new_fs/gem5/linux-4.8.13/vmlinux >> --script=./tatp_pi_cgl_lazy.rcS --caches --l2cache >> >> """ >> Is there any way, I can run gdb with the application and see the problem >> with the application? >> >> Best regards, >> >> Abhishek >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users