On Sun, 4 Mar 2012, Xuhao Chen wrote:

I compile the application with -static -static-libgcc options but there is 
still error:

(none) home # ./hello
hello[840]: segfault at 000000000000000c rip 000000000805cd10 rsp 
00000000ffff3f34 error 4
Segmentation fault
(none) home #

If I want to create a disk image which is the same as my host platform, I should firstly create an empty image, and then copy all the files into this image, right? But the file system in the host platform is too large, I wonder how you prune it (such as the linux-x86.img in x86-system.tar) but still keep the same compiling and runtime environment. Thanks.


I think the disk image can be created using virtual machine environment. Anyways, from the printed rip value, you can try to figure out which instruction is causing the segmentation fault and why. Looking through the trace of executed instructions should help.

--
Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to