Hello All

I am trying to build a new tool using valgrind. I'm also trying to use mmap 
system call to get huge memory block in my tool. When I use do_syscall in my 
tool I get an error message like this. I tried several other calls (getpid, 
etc) and every time I get this segmentation fault error.


===================================================================================================

--24479-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - 
exiting
--24479-- si_code=1;  Faulting address: 0x52;  sp: 0x629a2dc0

valgrind: the 'impossible' happened:
   Killed by fatal signal
==24479==    at 0x38059A25: vgPlain_do_syscall (m_syscall.c:72)
==24479==    by 0x3808E5E1: handle_syscall (scheduler.c:1057)


===================================================================================================

I tried to search for examples using system call in tools but it seems 
they(memcheck, massif, lackey) don't use it.

My question is, is it allowed to use system call in a valgrind tool? Is it 
recommended not to use system call? If it is allowed to use system call in a  
tool, what should I do to make this thing work?

I use valgrind-3.8.0.SVN, and 32 bit Ubuntu 12.04, which is a VM.

Thank you,
Wonjoon Song
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to