, 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
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
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
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
?
--
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 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
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.
--
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
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
//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
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...
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
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
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
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
.)
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
/
___
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
, 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
' 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
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
. 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
. 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
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
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
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
, 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
.
--
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
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
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
':
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
@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
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
47 matches
Mail list logo