Hi,
 
I run a command on x86 as below:
strace -f -o ./strace-valg-hello valgrind ./hello
(hello.c is just printf hello world.)
 
And then "vi ./strace-valg-hello", I find there is a Segmentation fault in 
strace-valg-hello (as follows).
Why there is a "Segmentation fault" ? And why it doesn't display Segmentation 
fault when I run dmesg ?
 
3212  mmap2(0x64672000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x64672000
3212  uname({sys="Linux", node="linux-ym6x", ...}) = 0
3212  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
3212  gettid()                          = 3212
3212  mmap2(0xbea35000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0xbea35000
3212  rt_sigreturn(0xbea36234)          = -1096589392
3212  getpid()                          = 3212

Thank you!
Best wishes to you!
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to