[Valgrind-users] valgrind + LLVM/clang 2.9: line information, client requests

2011-04-20 Thread Patrick Ohly
Hello! Has anyone else tried valgrind in combination with LLVM/clang as compiler? I use valgrind-3.6.0.SVN-Debian on Debian Stable/Testing in 64 bit mode, with C/C++ code compiled with LLVM/clang 2.9. There are some kinks: * Line information is missing in valgrind report. That works when

Re: [Valgrind-users] Valgrind for Android on ARM

2011-04-20 Thread Julian Seward
On Tuesday, April 19, 2011, Wan Mohd Fairuz Wan Ismail wrote: Hi, I see that there are efforts to make Valgrind works on Android as referred in https://bugs.kde.org/show_bug.cgi?id=266035 .. Will these patches make it to the next release of Valgrind? See

Re: [Valgrind-users] valgrind + LLVM/clang 2.9: line information, client requests

2011-04-20 Thread Julian Seward
* Line information is missing in valgrind report. That works when compiling with gcc. Yes, I noticed that too. I haven't investigated. btw, you should have a look at https://bugs.kde.org/show_bug.cgi?id=242137, which is also related to a LLVM+Valgrind issue. * clang

Re: [Valgrind-users] valgrind + LLVM/clang 2.9: line information, client requests

2011-04-20 Thread Bart Van Assche
On Wed, Apr 20, 2011 at 10:35 AM, Julian Seward jsew...@acm.org wrote:       * Line information is missing in valgrind report. That works when         compiling with gcc. Yes, I noticed that too.  I haven't investigated.  btw, you should have a look at

[Valgrind-users] Collecting information about particular array

2011-04-20 Thread Вадим Воеводин
Hello! Can anyone tell me, is it possible to collect number of fetches and cache misses for a particular array using Callgrind/Cachegrind? For example, I have such fragment: for (j = 0; j length; j++) { for (i = ip[j]; i = ip[j+1]-1; i++) {

Re: [Valgrind-users] valgrind + LLVM/clang 2.9: line information, client requests

2011-04-20 Thread Julian Seward
On Wednesday, April 20, 2011, Patrick Ohly wrote: I use valgrind-3.6.0.SVN-Debian on Debian Stable/Testing in 64 bit mode, with C/C++ code compiled with LLVM/clang 2.9. There are some kinks: * Line information is missing in valgrind report. That works when compiling with gcc.

[Valgrind-users] Valgrind errors with log4cxx

2011-04-20 Thread Chatterjee, Shash
I was trying to use valgrind on one of my applications. The program runs fine on its own, but valgrind reports a SIGSEGV and exits without running any of my application, as far as I can tell. I have been able to reproduce the issue with a simple test. The test does not even use log4cxx, but

Re: [Valgrind-users] Valgrind errors with log4cxx

2011-04-20 Thread John Reiser
I am on Fedora Core 14, kernel 2.6.35.12-88, g++ 4.5.1, glibc-2.13.1. int main(const int argc, const char** argv) { return (0); } g++ -g -Wall -o Test.o -c Test.cpp ### Note no src/ g++-g Test.o -o test -llog4cxx It works for me on Fedora 14:

Re: [Valgrind-users] Valgrind errors with log4cxx

2011-04-20 Thread Chatterjee, Shash
Thanks a bunch for trying it out John. I have valgrind 3.5.0, and LD_LIBRARY_PATH points to /usr/local/lib, which is where log4cxx libs are. That's all I can think of in the env. Different from yours, mine is not 64-bit Fedora. Are your gcc etc. versions the same? Wonder where I should look?

Re: [Valgrind-users] Collecting information about particular array

2011-04-20 Thread Josef Weidendorfer
On Wednesday 20 April 2011, Вадим Воеводин wrote: Can anyone tell me, is it possible to collect number of fetches and cache misses for a particular array using Callgrind/Cachegrind? Unfortunately not possible at the moment. The ideal thing would be to add a command line option for please

Re: [Valgrind-users] Valgrind errors with log4cxx

2011-04-20 Thread Chatterjee, Shash
Thanks, John. Since the last message, I removed valgrind-3.5.0 (seems like the latest available RPM for Fedora-14), built and installed valgrind-3.6.1. Still no go, same results! -Original Message- From: John Reiser [mailto:jrei...@bitwagon.com] Sent: Wed 4/20/2011 4:34 PM To:

Re: [Valgrind-users] Valgrind errors with log4cxx

2011-04-20 Thread John Reiser
On 04/20/2011 02:51 PM, Chatterjee, Shash wrote: ... Still no go, same results! In an earlier message Shash wrote: - Here's ldd output: libapr-1.so.0 = /usr/local/lib/libapr-1.so.0 (0x0080e000) libaprutil-1.so.0 = /usr/local/lib/libaprutil-1.so.0 (0x002c4000)

Re: [Valgrind-users] Valgrind errors with log4cxx

2011-04-20 Thread Chatterjee, Shash
John, Had to leave, will post the ldd list in the morning. I deleted my locally built log4cxx, apt and apt-util from /usr/local/lib, and reinstalled using yum. Now the ldd list is bigger and more like yours, except for differences like gcc-4.5.1 versus 4.6, etc. Thanks for your help! On

Re: [Valgrind-users] Collecting information about particular array

2011-04-20 Thread Julian Seward
Can anyone tell me, is it possible to collect number of fetches and cache misses for a particular array using Callgrind/Cachegrind? For example, I have such fragment: for (j = 0; j length; j++) { for (i = ip[j]; i = ip[j+1]-1; i++) {

[Valgrind-users] Callgrind does not generate a profile but reports a error.

2011-04-20 Thread Frank Chang
Good evening, I am trying to use the callgrind profiler to profile my C++ program. I am using Valgrind version 3.6,1 on Linux Centos Version 5.5 on a Intel 32-bit processor. I keep getting the following error(shown below) when I try to profile my program. I already used Linux gprof but

Re: [Valgrind-users] Collecting information about particular array

2011-04-20 Thread Вадим Воеводин
21.04.2011 1:00, Josef Weidendorfer пишет: On Wednesday 20 April 2011, Вадим Воеводин wrote: Can anyone tell me, is it possible to collect number of fetches and cache misses for a particular array using Callgrind/Cachegrind? Unfortunately not possible at the moment. The ideal thing would be

Re: [Valgrind-users] Collecting information about particular array

2011-04-20 Thread Вадим Воеводин
21.04.2011 4:16, Julian Seward пишет: Can anyone tell me, is it possible to collect number of fetches and cache misses for a particular array using Callgrind/Cachegrind? For example, I have such fragment: for (j = 0; j length; j++) { for (i =