Hi Jason,
Thank you for reply me. 
I am trying to run a program which mainly map "/dev/shm" and do some read write 
on it.  It works without gem5 but crash in gem5.

“
./build/X86/gem5.opt configs/example/se.py -c 
"/home/ubuntu/taiyu/whisper_se/nstore/src/nstore" -o "-x10000 -k1000 -w -p0.2 
-e1 --ycsb" --mem-size=8GB --cpu-type=DerivO3CPU --caches -n 4
“

And gem5 error report :

Global frequency set at 1000000000000 ticks per second
0: system.remote_gdb: listening for remote gdb on port 7000
0: system.remote_gdb: listening for remote gdb on port 7001
0: system.remote_gdb: listening for remote gdb on port 7002
0: system.remote_gdb: listening for remote gdb on port 7003
**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall set_robust_list(...)
warn: ignoring syscall rt_sigaction(...)
      (further warnings will be suppressed)
warn: ignoring syscall rt_sigprocmask(...)
      (further warnings will be suppressed)
info: Increasing stack size by one page.
warn: mmap: writing to shared mmap region is currently unsupported. The write 
succeeds on the target, but it will not be propagated to the host or shared 
mappings
num_txns: 10000
num_keys: 1000
opt_wal_enable 
per_writes: 0.2
num_executors: 1
ycsb_benchmark 
num_keys :: 1000
num_txns :: 10000
num_exec :: 1
Initialization Mode
info: Increasing stack size by one page.
LOADING...
warn: ignoring syscall mprotect(...)
warn: ClockedObject: Already in the requested power state, request ignored
warn: ignoring syscall set_robust_list(...)
warn: ignoring syscall mprotect(...)
*** Error in `/home/ubuntu/taiyu/whisper_se/nstore/src/nstore': munmap_chunk(): 
invalid pointer: 0x00007fff79fb8d80 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ffff715f7e5]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7ffff716c698]
/home/ubuntu/taiyu/whisper_se/nstore/src/nstore[0x437b42]
/home/ubuntu/taiyu/whisper_se/nstore/src/nstore[0x45d03b]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xd0b10)[0x7ffff7cc1b10]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7ffff74b96ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffff71ef41d]
======= Memory map: ========
gem5.opt: build/X86/sim/fd_array.cc:322: std::shared_ptr<FDEntry> 
FDArray::getFDEntry(int): Assertion `0 <= tgt_fd && tgt_fd < _fdArray.size()' 
failed.
Program aborted at tick 278059722500
--- BEGIN LIBC BACKTRACE ---
./build/X86/gem5.opt(_Z15print_backtracev+0x28)[0x1171d78]
./build/X86/gem5.opt(_Z12abortHandleri+0x46)[0x1183796]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f20a2d5d390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f20a1702428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f20a170402a]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7)[0x7f20a16fabd7]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7f20a16fac82]
./build/X86/gem5.opt[0x11b4262]
./build/X86/gem5.opt(_Z8readFuncI10X86Linux64E13SyscallReturnP11SyscallDesciP13ThreadContextimi+0x46)[0xe2bb46]
./build/X86/gem5.opt(_ZNSt17_Function_handlerIF13SyscallReturnP11SyscallDesciP13ThreadContextimiEPS5_E9_M_invokeERKSt9_Any_dataOS2_OiOS4_SC_OmSC_+0x4a)[0xe2280a]
./build/X86/gem5.opt(_ZNSt17_Function_handlerIF13SyscallReturnP13ThreadContextimiEZZN14SyscallDescABII17DefaultSyscallABIE13buildExecutorIIimiEEESt8functionIFS0_P11SyscallDesciS2_EES8_IFS0_SA_iS2_DpT_EEENKUlSA_iS2_E_clESA_iS2_EUlS2_imiE_E9_M_invokeERKSt9_Any_dataOS2_OiOmSO_+0x7a)[0xe240ba]
./build/X86/gem5.opt[0x997c89]
./build/X86/gem5.opt[0x99756f]
./build/X86/gem5.opt[0x997b83]
./build/X86/gem5.opt[0x99a2ae]
./build/X86/gem5.opt[0x99a490]
./build/X86/gem5.opt[0x99a62e]
./build/X86/gem5.opt(_ZNSt17_Function_handlerIF13SyscallReturnP11SyscallDesciP13ThreadContextEZN14SyscallDescABII17DefaultSyscallABIE13buildExecutorIIimiEEESt8functionIS5_ESA_IFS0_S2_iS4_DpT_EEEUlS2_iS4_E_E9_M_invokeERKSt9_Any_dataOS2_OiOS4_+0x103)[0xe413d3]
./build/X86/gem5.opt(_ZN11SyscallDesc9doSyscallEiP13ThreadContextPSt10shared_ptrI9FaultBaseE+0xc8)[0x11c2d48]
./build/X86/gem5.opt(_ZN7Process9doSyscallElP13ThreadContextPSt10shared_ptrI9FaultBaseE+0x59)[0x11b27a9]
./build/X86/gem5.opt(_ZN9FullO3CPUI9O3CPUImplE7syscallEsPSt10shared_ptrI9FaultBaseE+0xec)[0x1343c2c]
./build/X86/gem5.opt(_ZN13BaseO3DynInstI9O3CPUImplE7syscallEPSt10shared_ptrI9FaultBaseE+0x42)[0x1355072]
./build/X86/gem5.opt(_ZNK10X86ISAInst7Syscall7executeEP11ExecContextPN5Trace10InstRecordE+0x27)[0xdc4ac7]
./build/X86/gem5.opt(_ZN13BaseO3DynInstI9O3CPUImplE7executeEv+0x45)[0x1355525]
./build/X86/gem5.opt(_ZN10DefaultIEWI9O3CPUImplE12executeInstsEv+0x114b)[0x1370ffb]
./build/X86/gem5.opt(_ZN10DefaultIEWI9O3CPUImplE4tickEv+0x173)[0x13757f3]
./build/X86/gem5.opt(_ZN9FullO3CPUI9O3CPUImplE4tickEv+0x146)[0x1342e16]
./build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xc5)[0x1179975]
./build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x50)[0x1197460]
./build/X86/gem5.opt(_Z8simulatem+0xd1b)[0x119854b]
./build/X86/gem5.opt[0x8b1d49]
./build/X86/gem5.opt[0x89431b]
--- END LIBC BACKTRACE ---
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to