Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-16 Thread Adishesh M
Hi Philippe, After applying patch shmat is working fine. Does this patch will be included in the next valgrind release? Thanks and regards, Adishesh On Wed, Aug 15, 2012 at 11:17 PM, Adishesh M adishes...@gmail.com wrote: Hi, i will test using patch and update the test results soon.

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-16 Thread Philippe Waroquiers
On Thu, 2012-08-16 at 12:51 +0530, Adishesh M wrote: Hi Philippe, After applying patch shmat is working fine. Does this patch will be included in the next valgrind release? Patch has been committed (revision 12874), so will be in next release. Philippe

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-15 Thread Adishesh M
Hi, i will test using patch and update the test results soon. Since previous mail was mangled, resending it. I have used below program for testing. Below are the steps I have followed. Compile: gcc -g3 test_shm.c -o test_shm Create shared memory: ./test_shm –c Get shared memory without

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-14 Thread Adishesh
Hi, I have used below program for testing. Below are the steps I have followed. Compile: gcc -g3 test_shm.c -o test_shm Create shared memory: ./test_shm –c Get shared memory without valgrind: ./test_shm –g ( this works fine) Get with valgrind: /usr/bin/valgrind --tool=memcheck

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-14 Thread John Reiser
The code was mangled by posting in HTML. Instead, use plain text (or an attachment, if the mailing list allows them.) I [attempt to] attach the code I used: -rw-rw-r--. 1 jreiser jreiser 3125 Aug 14 09:30 shmtest.c On my system, /usr/include/linux/shm.h says: - #define SHMMAX 0x200

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-14 Thread Philippe Waroquiers
On Tue, 2012-08-14 at 10:20 +, Adishesh wrote: Hi, I have used below program for testing. Below are the steps I have followed. Compile: gcc -g3 test_shm.c -o test_shm Create shared memory: ./test_shm –c Get shared memory without valgrind: ./test_shm –g ( this works fine) Get with

[Valgrind-users] shmat parameters are modified by valgrind

2012-08-13 Thread Adishesh
Hi, I am a program which will do many shmat. This program when executed without valgrind it works as expected. But when same program is executed under valgrind shmat parameters are getting modified and shmat is failing with errno 22. without valgrind ( taken using strace command)

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-13 Thread John Reiser
But when same program is executed under valgrind shmat parameters are getting modified and shmat is failing with errno 22. without valgrind ( taken using strace command) -- shmat(281542719, 0, 0) = ? with valgrind ( taken using strace

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-13 Thread Adishesh
Hi, I am using RHEL6.2 OS. 'uname -a' output is Linux mercury05 2.6.32-220.17.1.el6.x86_64 #1 SMP Thu Apr 26 13:37:13 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux using valgrind version 3.8.0 also shmat is failing with errno 22. Thanks and regards, Adishesh On Mon, 13 Aug 2012 21:46:34

Re: [Valgrind-users] shmat parameters are modified by valgrind

2012-08-13 Thread John Reiser
I am using RHEL6.2 OS. 'uname -a' output is Linux mercury05 2.6.32-220.17.1.el6.x86_64 #1 SMP Thu Apr 26 13:37:13 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux using valgrind version 3.8.0 also shmat is failing with errno 22. Thank you for that information. Is the process running in native