Re: [Valgrind-users] Info message

2021-12-15 Thread David Chapman
, so don't worry about it.  Your code does not have a memory leak. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA EDA Software Developer, Expert Witness www.chapman-consulting-sj.com 2018-2019 Chair, IEEE Consultants' Network of Silicon Valley

Re: [Valgrind-users] [Hint]: valgrind outcome concern

2020-06-17 Thread David Chapman
error(s), ignore the report of memory still in use, then rerun valgrind.  This is a very powerful debugging method. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA EDA Software Developer, Expert Witness www.chapman-consulting-sj.com 2018-201

Re: [Valgrind-users] [Hint]: valgrind outcome concern

2020-06-16 Thread David Chapman
is correct.  Coverage of all code paths requires a set of test cases that execute all code paths.  valgrind executes the tested program and reports on memory problems during that execution. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA EDA Software Developer

Re: [Valgrind-users] Help understanding some valgrind output

2020-06-04 Thread David Chapman
under valgrind), fix it, then rerun valgrind.  If your program is writing outside of buffers, it is possible that valgrind won't catch it and thus the assertion failure later. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA EDA Software Developer, Expert

Re: [Valgrind-users] seemingly bogus error reports

2019-09-14 Thread David Chapman
? -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA EDA Software Developer, Expert Witness www.chapman-consulting-sj.com 2018-2019 Chair, IEEE Consultants' Network of Silicon Valley ___ Valgrind-users mailing

Re: [Valgrind-users] How to find memory leaks from an running application

2019-06-20 Thread David Chapman
re the crash, divide that number by 100 or 1000, then replace the infinite loop with a "for (i = 0; i < count; ++i)" loop. Remember, your program will run slower under valgrind, so if your embedded system has strict real-time constraints it might not work properly. -- Dav

Re: [Valgrind-users] Please leave Sorceforge

2018-05-20 Thread David Chapman
d we start a discussion about moving to sourceware? (sourceware is where our current git repository lives) I forget whether the Sourceforge newsletter arrives once per month or twice per month.  It's rare enough that I don't pay much attention.  I really don't think it's a problem.  YMMV. --

Re: [Valgrind-users] Bug or feature - reported memory leak

2017-12-08 Thread David Chapman
se positive" (as far as your program is concerned) but I've never bothered; I simply learn to ignore them. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA EDA Software Developer, Expert Witness www.chapman-c

Re: [Valgrind-users] Many false positives "Mismatched free() / delete / delete []"

2016-12-22 Thread David Chapman
g. If it's inlined, the call stack might point fingers at the calling function rather than the true offender. Does the QVBoxLayout constructor allocate any memory inside? -- David Chapman dcchap...@acm

Re: [Valgrind-users] Understand valgrind output when checking a fortran code for memory leaks

2016-02-04 Thread David Chapman
//pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software D

Re: [Valgrind-users] pthread - sem_post problem...

2015-11-16 Thread David Chapman
s to try to reduce the problem to a program small enough to post to the list. Since no one else has (to my limited knowledge) reported a similar problem, there may be something unique about your code. Hopefully someone on the list would spot it. -- David Chapman dcchap...

Re: [Valgrind-users] pthread - sem_post problem...

2015-11-13 Thread David Chapman
t; > What happens if you compile without "-static"? Valgrind wants to replace system libraries with its own versions so that it can trace memory allocation and release. It does so at runtime, so static linking is not good for it. -- David Chapman dcchap...@acm.org

Re: [Valgrind-users] Uninitialized access findings on non-static file scope variables that's been initialized?

2015-08-13 Thread David Chapman
On 8/12/2015 10:18 PM, Jeffrey Walton wrote: On Wed, Aug 12, 2015 at 6:02 PM, David Chapman dcchap...@acm.org wrote: On 8/12/2015 1:09 PM, Dan Kegel wrote: ... So even though I just told you how to guarantee that global variables in C++ are initialized before they are used, don't do

Re: [Valgrind-users] Uninitialized access findings on non-static file scope variables that's been initialized?

2015-08-13 Thread David Chapman
of them ask for priority 101? What if priorities 101 to 1 are all taken, and one more variable needs to be added in the middle? My code simply existed and it had initialization order problems. I rewrote it. That cost money, but I have never regretted it. -- David Chapman dcchap

Re: [Valgrind-users] Uninitialized access findings on non-static file scope variables that's been initialized?

2015-08-12 Thread David Chapman
but in the long run it is cheaper than debugging interactions between global variables. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] uninitialised value(s) - after explicit memset to 0 ??

2015-03-10 Thread David Chapman
.) -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com -- Dive into the World of Parallel Programming The Go Parallel

Re: [Valgrind-users] suppress warning repetition

2015-01-01 Thread David Chapman
where I would fix that one error and start over. Repetition detection can be tricky and the valgrind developers may have other priorities. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] Why doesn't valgrind detect a memory leak for my application

2013-06-13 Thread David Chapman
here ? Thanks, Sanjay -Original Message- From: Philippe Waroquiers [mailto:philippe.waroqui...@skynet.be] Sent: Thursday, June 13, 2013 1:38 AM To: David Chapman Cc: Sanjay Kumar (sanjaku5); valgrind-users@lists.sourceforge.net Subject: Re: [Valgrind-users] Why doesn't valgrind detect

Re: [Valgrind-users] Why doesn't valgrind detect a memory leak for my application

2013-06-13 Thread David Chapman
to the Makefile structure even when debugging, you will need to follow the directions pointed out by Philippe (which I have never used; my applications are dynamically linked). -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right

Re: [Valgrind-users] Why doesn't valgrind detect a memory leak for my application

2013-06-12 Thread David Chapman
of Valgrind you are using, and on what platform. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com -- This SF.net email

Re: [Valgrind-users] Why doesn't valgrind detect a memory leak for my application

2013-06-12 Thread David Chapman
if the program seems to work fine without any changes. Fix the errors that Valgrind reports now and let us know if there are still problems with leak reporting. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right

Re: [Valgrind-users] phantom new at call leads to definitely lost

2013-05-30 Thread David Chapman
that Valgrind cannot follow its stack trace? And of course, what version of Valgrind are you using? -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] Helgrind doesn't handle bit field correctly

2013-03-23 Thread David Chapman
has an old value. The question then becomes why does Helgrind think your code has an old value somewhere? -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] Helgrind doesn't handle bit field correctly

2013-03-22 Thread David Chapman
the entire word. This is very definitely a race in your situation. Thread 1 would write the old value of thread_2_data with the new value of thread_1_data, or vice versa. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right

Re: [Valgrind-users] Helgrind doesn't handle bit field correctly

2013-03-22 Thread David Chapman
without a mutex. Try an experiment: remove the field widths, so that each integer will be in a separate memory word. Helgrind should no longer report an error. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right

Re: [Valgrind-users] Show where a reference was lost in addition to where it was allocated

2013-02-28 Thread David Chapman
a standalone test program and I can run leak checks on these too. int* g() { int* x = new int[256]; -- allocated here ... return x; } int f() { int* x = g(); ... return 0; -- leaked here } -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose

Re: [Valgrind-users] Valgrind Error Message on standard if statement

2013-02-10 Thread David Chapman
and you are dereferencing it - first a read and then a write. Very definitely you are going to have problems with this code. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] closing bracket of destructor

2012-10-02 Thread David Chapman
is truly redundant. But I still find can't delete 0 in Zortech comments in some of my oldest C++ code. And now back to your regularly scheduled programming... -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman

Re: [Valgrind-users] Is VG_REGPARM inlining?

2012-10-01 Thread David Chapman
is complex or if the program is being compiled debuggable with optimization disabled. There is no guarantee that either flag will speed up your code; they are experiments to try. You may find that adding the flags will slow down some portions of your code. -- David Chapman dcchap

Re: [Valgrind-users] uninitialised value

2012-08-18 Thread David Chapman
/sfrnl04242012/114/50122263/ ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA

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

2012-06-01 Thread David Chapman
that they will take substantially more than 20 minutes? 在 2012-06-01 14:03:14,David Chapman dcchap...@acm.org 写道: On 5/31/2012 10:18 PM, 齐玉华 wrote: Thanks for your quick reply. Here is the detailed information: The good2.php is attached

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

2012-06-01 Thread David Chapman
/ ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] (Callgrind/kcachegrind) help with D1mr interpretation...

2012-05-12 Thread David Chapman
, at 12:43 AM, David Chapman dcchap...@acm.org mailto:dcchap...@acm.org wrote: On 5/11/2012 8:04 PM, Michael Andronov wrote: I'm looking for some help/hint to explain the results I'm observing with the following peace of code: … struct CmpIndexValue { static SListOp compare(const

Re: [Valgrind-users] Architecture Issue for Installation

2012-03-15 Thread David Chapman
' for platform 'amd64-linux': No such file or directory ian@IanMallettU86:~/Desktop/C++/glLibC2/build$ -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] Are these series bugs?

2012-01-18 Thread David Chapman
so many errors. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com -- Keep Your Developer Skills Current

Re: [Valgrind-users] Are these series bugs?

2012-01-18 Thread David Chapman
. If you fix all of those then the memory leaks might not be a big deal. Tolerating memory leaks is not a good idea, IMO. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com

Re: [Valgrind-users] What does this mean: malloc with N1 bytes inside a block of size N2 alloc'd

2011-12-02 Thread David Chapman
. The stack chain you printed is incomplete; it should go all the way up to main(). You've only showed us the stack up to the allocator routine in the standard C llibrary routine. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA

Re: [Valgrind-users] Memcheck and on-the-fly memory leak detection.

2011-11-28 Thread David Chapman
every time you return from a function, restart a loop iteration, etc. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA -- All the data continuously generated in your IT infrastructure

Re: [Valgrind-users] Query about Invalid reads

2011-10-03 Thread David Chapman
to the two strlen() calls when calculating newsize. Are these errors indicating a supposed bug in my code, or are they complaining about something in the __GI_strlen replaced code. If so, does this mean there is a bug in __GI_strlen ? Thanks in advance, -- David Chapman dcchap

Re: [Valgrind-users] binary debugging and generate source of which that running

2011-07-07 Thread David Chapman
the program is run. There is no need to tell it which pieces of code to test; it looks at all of them. This of course makes the program run slower. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA

Re: [Valgrind-users] Memcheck not behave as expected : Overlapping src and dst pointers in memcpy

2011-04-12 Thread David Chapman
, 10); free(arr); This is correct; memcpy() does not perform this check. Look at the man page for it and memmove(). -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA -- Forrester

Re: [Valgrind-users] Problem resolving a Valgrind reported error

2011-03-28 Thread David Chapman
. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers

Re: [Valgrind-users] newbie with problems: some errors do not seem like errors

2010-10-06 Thread David Chapman
of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Chapman dcchap...@acm.org Chapman Consulting

Re: [Valgrind-users] newbie with problems: some errors do not seem like errors

2010-10-06 Thread David Chapman
of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Chapman dcchap...@acm.org Chapman

Re: [Valgrind-users] Problem installing Valgrind in Xeon E5506 machine

2010-05-19 Thread David Chapman
': Permission denied You need to have a privileged account (e.g. root) perform the installation in /usr/local; the account allanos does not have permission to add files to system directories. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA

Re: [Valgrind-users] Interpretations of valgrind output

2010-02-28 Thread David Chapman
@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA -- Download Intel#174; Parallel Studio Eval

Re: [Valgrind-users] fatal error: unsupported CPU on Via C7 Esther processor

2009-12-05 Thread David Chapman
Julian Seward wrote: Trying to avoid doing real work, I searched for unsupported CPU and found it in coregrind/m_main.c. I then found VG_(machine_get_hwcaps)() in m_machine.c. Putting a few VG_(printf)() calls into this routine, I found that it fails this test: /* cmpxchg8b is a