Hi all, I finally could find the options I needed for valgrind to behave as I wanted. I redirected valgrind's input and output to another console as follows: valgrind --input-fd=3 --log-fd=4 myapp 3</dev/tty2 4>/dev/tty2 And now, valgind does what I need and let's my app work correctly with its own input and output. Have a nice day. ChD -----Original Message----- From: Delaunay Christophe Sent: mercredi 3 décembre 2008 17:55 To: 'programmingblind@xxxxxxxxxxxxx' Subject: Problem using valgrind Hi all, I noticed a strange instability in one of my apps running on a Fedora 9 box. Since the app's behaviour let me suspect a memory corruption problem, I'm running it through valgrind to track the bug down. However, the app links with OpenSSL, a library which is known not to run fairly in valgrind. This can be worked around by launching valgrind with --gen-suppressions and this is what I did. Problem: My app also needs sometimes to read from stdin and when it does, it always take precedence over valgrind. How can I change this behaviour please? i.e. I'd like to manage the input such as valgrind takes it in priority when it needs some and the app takes it if and only if valgrind doesn't need it. Many thanks in advance for any advice. Have a nice day. ChD __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind