[Valgrind-users] Question about Valgrind

2012-03-23 Thread Hamid Reza Khaleghzadeh
Hi, I have some questions about Valgrind tool. I would be thankful if answer me. 1- I want to know does Valgrind support Pthread and openMP programs? 2- I need a tool that traces my multi-threaded program and creates memory trace of the program. The trace must contain accessed memory address,

[Valgrind-users] disappearing line numbers

2012-03-23 Thread Peter Cogan
Hi, I have a problem running valgrind on os x that I cannot replicate on Ubuntu. The problem is as follows: I'm trying to compile a program with debugging symbols so that valgrind will give me line numbers. I have found that if I compile a simple test program in one go (with -g) then it

Re: [Valgrind-users] Question about Valgrind

2012-03-23 Thread Eliot Moss
On 3/23/2012 9:10 AM, Hamid Reza Khaleghzadeh wrote: Hi, I have some questions about Valgrind tool. I would be thankful if answer me. 1- I want to know does Valgrind support Pthread and openMP programs? 2- I need a tool that traces my multi-threaded program and creates memory trace of the

Re: [Valgrind-users] Question about Valgrind

2012-03-23 Thread Eliot Moss
On 3/23/2012 12:21 PM, Hamid Reza Khaleghzadeh wrote: Hi Dear Eliot, I added valgrind-users back so that all can follow the email thread. Thanks for your answer. You said that Valgrind does support multiple threads, but runs only one thread at a time. Suppose a two threaded application.

Re: [Valgrind-users] Question about Valgrind

2012-03-23 Thread Julian Seward
In sum, you should get one *possible* execution, but it won't necessarily be one typical of truly concurrent execution. (Just because you have threads that are *runnable* at the same time does not mean that they actually run *concurrently* in a real system, unless you guarantee multuple

[Valgrind-users] Trouble with valgrind: Unrecognised instruction

2012-03-23 Thread Valeriy Sokolov
Hello. I have a trouble using valgrind: it finds an illegal instructions in places where I use some sorts of input streams in C++ (std::ifstream, YAML-C++ streams). Here is a small example of that trouble. Could you please answer on how to fix it? Thank you in advance.