Hi,
I think I found my problem. Both Valgrind-3.7.0-SVN and
Valgrind-3.6.0 works well for syscall 330 and the dup3 program on my
platform. It was Valgrind-3.5.0 which causes the problem. Here is the
story of this problem:
Valgrind-3.5.0 was distributed with Fedora12, so I installed the
software in /usr/bin when the Operating System was installed. Latter,
I installed the new version(3.7.0) in /usr/local/valgrind, I just add
the location to the user's $PATH envrionment so that I could find the
command easily. The problem is when I use the command "sudo valgrind
...", it switch the current user to the root, and the environment
variables change. So each time when I typed "valgrind --version",
which prints "valgrind-3.7.0", I thought I was using the new version.
However, when I add "sudo" in the front, I switched to the old version
again.
Thanks for your help.
2012/6/12 John Reiser <[email protected]>:
>> So running valgrind on the following complete program should give the same
>> error
>> as running valgrind on your httpd:
>> ----- dup3.c
>> #include <unistd.h>
>>
>> int main()
>> {
>> return dup3(0, 5, 0);
>> }
>> -----
>> [This follows the general debugging principle of trying to reproduce
>> the error using a test program that is a short and simple as possible.]
>>
>> However it works for me on Fedora 14 with valgrind-3.8.0.SVN; see below.
>> Does it work for you on Fedora 12 with valgrind-3.7.0.SVN ?
>
> valgrinding ./dup3 also works for me on Fedora 12 i686 using valgrind-3.5.0-14
> which was installed from .rpm via "yum install valgrind" [yes, even today
> from a Fedora mirror.]
>
> --
>
> ------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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