> 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" ?
>

if valgrind ./hello gives Segmentation fault, so of course strace will show
it too. Can you run ./hello alone?

And why it doesn't display Segmentation fault when I run dmesg ?
>
>
>
afaik, dmesg is for kernel messages.

-- 
Wan Mohd Fairuz WAN ISMAIL
------------------------------------------------------------------------------
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