Re: [Valgrind-users] compilation issue

2011-05-24 Thread Dave Goodell
On May 24, 2011, at 12:02 PM CDT, John Reiser wrote:

 Those are probably the most labor-intensive ways that you can do it.  It's 
 usually easier to just pass --without-mpicc to configure and use the 
 normal build process in all other respects.
 
 1. No documentation: no mention of MPI in README*, no explicit list of 
 packages
   that might be eligible for --without-*, etc.
 
 2. The default -with-mpicc does not work (it fails to detect the unusable
   state on the original poster's machine), so the override --without-mpicc
   should be regarded with suspicion.

I didn't mean it as any kind of personal slight, and I completely agree that 
this is both under-documented and slightly buggy.  I just wanted to get the 
easiest solution that I know actually works into the mail archives.

I've got ~1/2 of a patch to fix the mpicc detection already written that has 
been shelved for a while, perhaps I should resume work on it.  If I can get 
that working then none of these solutions should be necessary.

-Dave


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


[Valgrind-users] Using setrlimit within memcheck

2011-05-24 Thread Scott Kuhn
Hi,
 
While running a program within the memcheck tool, the code calls
setrlimit to increase the number of file descriptors available:
 
rl.rlim_cur = 65535;
rl.rlim_max = 65535;
int retval = setrlimit (RLIMIT_NOFILE, rl);
 
This runs OK when executing the program outside of valgrind but when run
within, it fails and errno is set to EPERM. The process is being run as
root on RHEL5
 
Anyone know a way around this? 
 
Thx,
Scott

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


[Valgrind-users] Possible Error: C​allgrind Version 3.6.1 cg_annotat​​e : Line 1 Missing command line

2011-05-24 Thread Frank Chang
 Good afternoon, We are running callgrind and
cg_annotate version 3.6.1
on Centos Linux Version 5.5 x86_32. One month ago  Mr. Josef Weidenorfer
issued a special patch that fixed callgrind on Centos Linux Version
5.5 x86_32. We can now profile complex C++ programs which use our own
shared library libmdMatchup.so.
However, when we use version 3.6.1 cg_annotate
callgrind.out.22533 --auto = yes
-I/home/frankc/DQTTest6/MatchUpLib/Source, we obtain the error.  Line
1 Missing command line. callgrind.out.22533 was
created using the command line:
/home/frankc/DQTTest2/valgrind-3.6.1/coregrind/valgrind
--tool=callgrind --dump-instr=yes --simulate-cache=yes
--collect-jumps=yes ./MatchUpAccurate.exe. MatchUpAccurate.exe uses a
special shared library libmdMatchup.so
 Could some engineer or programmer please tell us what we are
doing wrong in using
callgrind and cg_annotate? Please let us know ifother
programmers/developers have been able to use cg_annotate version 3.6.1
on Centos Linux Version 5.5 x86_32. I am including the top 50 lines of
Callgrind.out.22533 below in case you have time to look at our
problem.
Thank you.

version: 1
creator: callgrind-3.6.1
pid: 22533
cmd:  ./MatchUpAccurate.exe
part: 1


desc: I1 cache: 16384 B, 32 B, 8-way associative
desc: D1 cache: 8192 B, 64 B, 4-way associative
desc: LL cache: 524288 B, 64 B, 8-way associative

desc: Timerange: Basic block 0 - 1024808
desc: Trigger: Program termination

positions: instr line
events: Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw
summary: 51414468282 24200786461 13006654839 651776228 364795898
154843814 202585 5324012 59432151


ob=(10) /home/frankc/DQTTest6/MatchUpTest/lirh5g_deb/MatchUpAccurate.exe
fl=(20) 
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iostream
fn=(8384) __tcf_0
0x804e2d8 76 1 0 1 1 0 0 1
+1 * 1
+2 * 1 0 1
+1 * 1
+3 * 1 0 1 1
cfi=(14) ???
cfn=(1026) 0x0804f422
calls=1 0x804f422 -76
* * 2 2
+5 * 1
+6 * 1
+6 * 1 0 1
+3 * 1 0 1
cob=(7) /usr/lib/libstdc++.so.6.0.8
cfi=(7) ???
cfn=(8390) std::ios_base::Init::~Init()
calls=1 0x3e30b70 -76
* * 26 12 8 5 3 0 4 3
cob=(1) /lib/ld-2.5.so
cfi=(1) ???
cfn=(176) _dl_runtime_resolve
calls=1 0xae7440 -76
* * 1428 508 202 3 40 5 0 16 3
* * 5 3 2 1 2
+5 * 1
+3 * 1 1
+1 * 1 1
+1 * 1 1

fl=(27) /usr/include/sys/stat.h
fn=(1290) fstat
0x80517e8 448 18 0 18 18 0 0 3
+1 * 18
+2 * 18 0 18

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users