Re: [Valgrind-users] Cross compilation issue for Android

2022-06-23 Thread Dallman, John
NDK23c does not provide any libgcc libraries. This is reasonable, since it also does not provide a gcc: it uses clang instead. I’ve never tried to build Valgrind for Android, but hopefully someone else can tell you how to do it with a modern NDK. -- John Dallman From: $rik@nth Sent: 23 June 2

Re: [Valgrind-users] detecting uninitialized values in debug builds

2020-03-03 Thread Dallman, John
> However, I've also been told that the g++ compiler will initialize all stack > objects to zero when compiling for debug (the -g option). Yet, valgrind > still detects the un-init condition. I think whoever told you that was confusing it with Microsoft Visual Studio. The default debug-build c

Re: [Valgrind-users] What is the memory ( RAM ) requirement for running valgrind

2019-01-25 Thread Dallman, John
The memory requirement for Valgrind is “several times as much memory as the application you’re testing needs without Valgrind.” How much memory does your application use normally? -- John Dallman From: Padala Dileep [mailto:padala.dil...@gmail.com] Sent: 25 January 2019 10:00 To: valgrind-users

Re: [Valgrind-users] Program in valgrind behaves slightly different comparing to normal run

2018-10-15 Thread Dallman, John
> As a Valgrind user, I see few ways to get different results with valgrind : Another possibility is that the OP has a memory management bug, and the inevitably slightly different memory layout when running under Valgrind can trigger it. I have not seen this with Valgrind, but I have seen it whe

Re: [Valgrind-users] [Valgrind-developers] Request For Comments: Verrou, a Valgrind tool for floating-point debugging

2017-06-02 Thread Dallman, John
man Siemens Industry Sector Siemens Industry Software Limited Francis House, 112 Hills Road, Cambridge CB2 1PH, United Kingdom Tel. :+44 (1223) 371554 Fax :+44 (1223) 371700 john.dall...@siemens.com www.siemens.com/plm -Original Message- From: FEVOTTE Francois [mailto:francois.fe

Re: [Valgrind-users] [Valgrind-developers] Request For Comments: Verrou, a Valgrind tool for floating-point debugging

2017-06-01 Thread Dallman, John
use, 112 Hills Road, Cambridge CB2 1PH, United Kingdom Tel. :+44 (1223) 371554 Fax :+44 (1223) 371700 john.dall...@siemens.com <mailto:john.dall...@siemens.com> www.siemens.com/plm From: [ext] Dallman, John [mailto:john.dall...@siemens.com] Sent: Thursday, June 01, 2017 12:29 PM To: &#

Re: [Valgrind-users] [Valgrind-developers] Request For Comments: Verrou, a Valgrind tool for floating-point debugging

2017-06-01 Thread Dallman, John
This is potentially interesting for what I do. Is the documentation at http://edf-hpc.github.io/verrou/vr-manual.html up to date? Something that would be very useful would be control of the seed of the random number generator, so that we could repeat and debug cases that gave strange results.

Re: [Valgrind-users] Valgrind-3.12.0 is available

2016-10-24 Thread Dallman, John
> Whilst 3.12.0 continues to support the 32-bit x86 instruction set, we would > prefer users to migrate to 64-bit x86 (a.k.a amd64 or x86_64) where possible. Sound move. I was able to give up shipping 32-bit x86 Mac and Linux software earlier this year, and our customers tend to be quite conservat

[Valgrind-users] Fuzz testing with Valgrind?

2015-12-01 Thread Dallman, John
I'm starting to look at fuzz testing the mathematical modelling library I work on, which reads complicated data files that are produced by end-users, and could plausibly be used to stage buffer overflow attacks. The basics obviously come first: use -fstack-protector, take care with string manipu

Re: [Valgrind-users] Working directory

2015-09-10 Thread Dallman, John
> I've got a program which seems to cause heap corruption so I thought valgrind > would be > able to tell me where this occurs. The trouble is the program uses data files > from the > running directory for configuration purposes and running the program under > valgrind > seems to prevent it find

Re: [Valgrind-users] Mismatched free/delete with GCC 4.8.3 std::string

2015-06-11 Thread Dallman, John
Julian Seward wrote: > One other option is to play around with optimisation settings for your app, > to see if it changes g++'s inline/no-inline decisions. g++'s -fno-inline option may help, although it has the same limitation of not applying to libraries. -- John Dallman - Sie

Re: [Valgrind-users] Callgrind: where do I find the list of event names?

2014-02-13 Thread Dallman, John
> I have a lot of calls to functions with names that I recognise, > but which have a '2 appended to their names. These don't exist > in the source: any idea what they signify? They're in the callgrind documentation; they're about recursion, and I clearly need to accumulate their call counts into t

Re: [Valgrind-users] Callgrind: where do I find the list of event names?

2014-02-13 Thread Dallman, John
Philippe Waroquiers wrote: > Starting callgrind with default options, and then using > kcachegrind on the resulting callgrind.out file, kcachegrind > shows the nr of calls to the functions. I'm trying to avoid using kcachegrind, because I need to automate this process. We have tens of thousands

Re: [Valgrind-users] Callgrind: where do I find the list of event names?

2014-02-12 Thread Dallman, John
Julian Seward wrote: > I suspect not. In any case counting insns is not terribly expensive, > so the gain you'd get would be modest. OK. > I suspect the names are present in the callgrind.out file, and so > callgrind_annotate just slices out those that you list. It doesn't > itself know the na

[Valgrind-users] Callgrind: where do I find the list of event names?

2014-02-12 Thread Dallman, John
I'm looking at using callgrind to replace an expensive Windows coverage tool, and for some other work where the ideas are only part-formed. The default callgrind run and callgrind_annonate display shows Ir events, but I only need to count function entries. Is there a way to only collect those and

Re: [Valgrind-users] valgrind breaks any long double operation on x86-64

2014-01-23 Thread Dallman, John
> Do any common platforms, other than x86/x86_64, offer more-than-64-bit "long > double"? Not that they support as full speed hardware operations, AFAIK. SPARC has defined registers and instructions for 128-bit floating point, but implements them as sequences of operations on 64-bit floats, so t

Re: [Valgrind-users] Floating point DATA CORRUPTION with 80bit long long double!! (Re: floating point print error in ada)

2013-03-07 Thread Dallman, John
Julian Seward [mailto:jsew...@acm.org] wrote: > Even then it's not simple. The x87 control word has a bit-pair that > controls the default x87 FP precision. Currently V ignores all attempts to > change it, and just does its thing at 64 bits. If 80-bit arithmetic > becomes supported, and V ignor

Re: [Valgrind-users] Fw:Re:Re: Fw:Re:Re: program degradation

2012-06-01 Thread Dallman, John
> Because the recompilation time of one patched php is nearly 20 seconds, so if > the > sum of degradation time is more than 20 seconds, then our method of > indirecting > function will perorm worse than native regression > testing. You must expect performance under Valgrind to be worse than an

Re: [Valgrind-users] Perfect set of options for memcheck

2012-03-01 Thread Dallman, John
John Reiser [mailto:jrei...@bitwagon.com] wrote: > > I'm having an issue with valgrind - mine regression takes 4 hours instead > > of 45 mins when run in valgrind. > An elapsed time ratio of 240:45 (5.3 : 1) is not unusual, and may be better > than average. That's definitely better than I see: I'

Re: [Valgrind-users] hello, I have some question about compilation

2011-11-24 Thread Dallman, John
> there is a multicore platform named tile64 http://en.wikipedia.org/wiki/TILE64 > Now, I want to let valgrind execute onto this platform, does anyone know the > exact way? TILE64 uses a MIPS-based instruction set. The platforms page on the Valgrind website, http://valgrind.org/info/platforms.ht

Re: [Valgrind-users] Backtrace size

2011-01-18 Thread Dallman, John
Benjamin Schindler [mailto:bschind...@inf.ethz.ch] wrote: > ... the backtrace size used by valgrind is too small... i.e. it > just shows 10 functions. Is there a way to see more than just that Use the --num-callers= command line switch. best, -- John Dallman Parasolid Porting Engineer -O

Re: [Valgrind-users] False report

2010-12-23 Thread Dallman, John
> It appears that everything used in that line is set. Might > valgrind not recognize the values set to idx and length in > the call to sscanf()? With puzzling things like this, try simply printing the values in question with printf(). This usually clarifies the situation. -- John Dallman F

Re: [Valgrind-users] memcheck: increase number of stack frames intracked origin

2010-09-06 Thread Dallman, John
Use "--num-callers=25", or any other number. This is in valgrind --help, but isn't specific to memcheck. best, -- John Dallman Parasolid Porting Engineer Siemens Product Lifecycle Management Software Industry Sector 46 Regent Street, Cambridge, CB2 1DP United Kingdom Tel: +44-1223-371554 john.d

Re: [Valgrind-users] Different output from valgrind despite SSE

2010-06-18 Thread Dallman, John
I don't have any trouble with FP math on 32-bit x86, but I take a different strategy from you. I set the x87 FP unit to use 64-bit doubles rather than 80-bit doubles, since that makes the results far more similar to 64-bit Linux, and other platforms that use 64-bit doubles. 32-bit Linux uses 80

Re: [Valgrind-users] Valgrind tool for generating 'inputs of death'

2010-05-26 Thread Dallman, John
ndustry Sector 46 Regent Street, Cambridge, CB2 1DP United Kingdom Tel: +44-1223-371554 john.dall...@siemens.com www.siemens.com/plm > -Original Message- > From: Ildar Isaev [mailto:iis...@ispras.ru] > Sent: Wednesday, May 26, 2010 4:08 PM > To: Dallman, John > Cc: valgrin

Re: [Valgrind-users] Valgrind tool for generating 'inputs of death'

2010-05-26 Thread Dallman, John
> So if one wants to find a bug with Avalanche, one should be > better take shorter files. There's just more chance to detect > anything. This is fine with some kinds of data. One can make a smaller bitmap, or a shorter sound clip. But with what I do - accurate 3D shape representation - one can'

Re: [Valgrind-users] Valgrind tool for generating 'inputs of death'

2010-05-26 Thread Dallman, John
I'm not clear where the restriction of files to 712 bytes comes from; is that an arbitrary limit to ensure that analysis takes a sane length of time? thanks, -- John Dallman Parasolid Porting Engineer Siemens Product Lifecycle Management Software Industry Sector 46 Regent Street, Cambridge, C

Re: [Valgrind-users] Valgrind tool for generating 'inputs of death'

2010-05-26 Thread Dallman, John
Julian Seward wrote: > It sounds interesting. I would like to read more about it and > perhaps try it out, to get some idea of its effectiveness on > large programs (ability to find bugs, false error rate, speed > and memory use). Same here. I have a fairly basic question: in what terms does Av

[Valgrind-users] Valgrinding the same code on 32-bit and 64-bit x86 Linux

2009-06-12 Thread Dallman, John
We have adopted Valgrind as a periodic QA measure: every six months, we run all our tests through it. This takes a couple of months for everything to run, so we don't feel we can do it more often. What it finds for us is uninitialized variable errors; our internal memory management takes big chu

Re: [Valgrind-users] No "Use of uninitialised value" warning

2009-05-13 Thread Dallman, John
> Now back to my problem. The original code has double instead of int (I > just tried both types to be sure and forgot to change back) and on MSVC > std::swap() of uninitialised doubles triggers a floating point > exception (if enabled) as MSVC uses the FPU. > > I was really surprised that the cod

Re: [Valgrind-users] Puzzling warning messages from memcheck

2009-03-04 Thread Dallman, John
Julian Seward [mailto:jsew...@acm.org] wrote: > Harmless .. ignore it. OK, and thanks. -- John Dallman Parasolid Porting Engineer -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC

Re: [Valgrind-users] Puzzling warning messages from memcheck

2009-03-04 Thread Dallman, John
> They indicate that valgrind's memory manager was asked to > handle a block (actually a single contiguous address > interval, which could be a block or a non-block) of more > than 100,000,000 bytes ... on x86_64 with 64-bit addresses > and much more latitude for placement of PT_LOAD, this > m

[Valgrind-users] Puzzling warning messages from memcheck

2009-03-04 Thread Dallman, John
I'm running Valgrind-3.3.1 on x86-64 on SLES10sp1, memchecking some C++ code with which I'm not very familiar. I get these messages: ==4213== Warning: set address range perms: large range 102130360 (undefined) ==4213== Warning: set address range perms: large range 102130392 (noaccess) I can't fin

Re: [Valgrind-users] How to analysis valgrind

2008-12-23 Thread Dallman, John
> 1. How can I find out how much memory is used in each object in firefox? > 2. How can I find out what are the functions spent the most time during my > program execution? Valgrind is not an all-purpose tool. It does not do either of those things. ==2616== Thread 4: ==2616== Invalid read of si

Re: [Valgrind-users] Memcheck's uninitialised value errors...

2008-12-17 Thread Dallman, John
> You are right, I tried to recompile everything and the compilation of > standard c++ libraries etc. fail. Sorry for wasting your time I guess > :( If you want to persist with this idea, don't let me stop you from starting work on making everything capable of building with packed structures. It

Re: [Valgrind-users] Producer consumer race problem

2008-12-17 Thread Dallman, John
> IMHO this view is too negative. The proper approach for ensuring that > a program does not contain data races is to choose a strategy at > design time that guarantees that a program is data-race free (e.g. > protecting all shared data through locking and documenting which > synchronization object

Re: [Valgrind-users] Memcheck's uninitialised value errors...

2008-12-15 Thread Dallman, John
> Oh yes, I forgot about those :) You have a good point, but still, the > effort for recompiling the libraries and other required code for this > purpose might be much less than trying to find an uninitialized > variable in some cumbersome code. It might. But it seems unlikely. To the best of my k

Re: [Valgrind-users] Memcheck's uninitialised value errors...

2008-12-15 Thread Dallman, John
Tom Hughes [mailto:t...@compton.nu] > eyurt...@abo.fi wrote: > > However it is possible to pack the structs without holes... > You're going to recompile glibc and all the other libraries that your > program uses with that option are you? And, of course, if you don't, structs passed between packed

Re: [Valgrind-users] Memcheck's uninitialized value errors...

2008-12-15 Thread Dallman, John
> However it is possible to pack the structs without holes... You will not like what this does to performance. It also means that you will be Valgrinding a different build of your software from the one that gets run in anger. -- John Dallman Parasolid Porting Engineer