Re: [Valgrind-users] 3.5.0, macosx snow leopard, stdin

2010-04-12 Thread tom fogal
ajit gunge peacepan...@yahoo.com writes: I wanted to know are there any good programs which I can refer too to get the real feel of valgrind.I want to use this tool and see exactly how this works and I ant to know all the options.Is it used only for mem leak issues or any thing apart from

Re: [Valgrind-users] Problem with installing valgrind

2010-04-05 Thread tom fogal
ajit gunge peacepan...@yahoo.com writes: I am trying to install valgrind on one of my servers which is running RHEL.It is asking password for me to install.I dotn know what password I have to give for running valgri nd.Can anyone suggest what am I doing wrong. You do not need a password to

[Valgrind-users] massif -- vector allocated in main?

2010-04-04 Thread tom fogal
Massif is saying that I have allocated a (quite large) std::vector inside my `main' function [1]. The vector template is not used at all in the file which declares the main function. Is this vector coming from a static initializer, then? How can I identify the location of the allocation? This

Re: [Valgrind-users] minimise massif overhead

2010-03-09 Thread tom fogal
maxime louvel m.lou...@gmail.com writes: The problem is that decoders have real-time constraints and thus monitoring an overwhelmed application may lead to false information. I don't think anything akin to valgrind is the right tool for the job. Just try running your program through the null

Re: [Valgrind-users] stderr and stdio

2010-02-02 Thread tom fogal
Kenneth Simpson cin...@altos-da.com writes: When I run a program with stderr to the screen and stdio to a file, valgrind and gdb work fine. But when I run the same program with stderr and stdio to the same file, gdb c an't attach to the process (which results in a defunct process.)

Re: [Valgrind-users] suppression files

2010-01-30 Thread tom fogal
Matt Funk matze...@gmx.net writes: { insert_a_suppression_name_here Memcheck:Param write(buf) fun:__write_nocancel fun:ibv_cmd_create_cq fun:mthca_create_cq fun:ibv_create_cq@@IBVERBS_1.1 fun:rdma_iba_hca_init fun:MPIDI_CH3I_RMDA_init fun:MPIDI_CH3_Init

Re: [Valgrind-users] Pointer check with FORTRAN

2010-01-26 Thread tom fogal
writes: I've a simple FORTRAN code that does some operation (no more than addition and multiplication) with complex number. I've compiled my code with the -g option and with the -o3. And some of the resulting values are different. So I started inserting some WRITE statements in the

[Valgrind-users] valgrind 3.5.0 libstdc++ memory leak

2010-01-22 Thread tom fogal
I'm seeing leaks such as [1] and [2] in an application I work on. A potential caveat is that I am compiling with _GLIBCXX_DEBUG, and thus I should be getting a debug STL -- though by the internal names I see in the symbols here, I don't appear to be getting any sort of debug bits for std::string.

Re: [Valgrind-users] valgrind installed on busybox

2010-01-12 Thread tom fogal
Zvi Vered vered...@gmail.com writes: When I ran 'valgrind ln -l' I got: valgrind: failed to start tool 'memcheck' for platform 'x86-linux': no such file or directory What can be the reason for such an error ? AFAIK, valgrind is only a thin wrapper whose job it is to effectively or exactly

Re: [Valgrind-users] clone() Related Problems

2010-01-12 Thread tom fogal
Nathan Rittenhouse nath...@csail.mit.edu writes: Currently, I'm running the Catchconv Valgrind extension against an application to generate a path constraint. The application in question clones() several times and even has a clone() from inside of a clone()'d thread/process. I added some

Re: [Valgrind-users] Multicore/multithreading and memory trace

2010-01-06 Thread tom fogal
interact with many people that use even posix shared memory anyway. -tom [1] http://valgrind.org/docs/manual/dist.news.html On Thu, Jan 7, 2010 at 6:06 AM, tom fogal tfo...@alumni.unh.edu wrote: Milind kmil...@gmail.com writes: [snip] I am writing an application that will run on a system

Re: [Valgrind-users] best methodology to debug a Linux daemon written in C++

2009-12-27 Thread tom fogal
writes: Hi All, I have a bunch of C++ application which runs as daemons in Linux. Another reason for it to crash might be corrupted input data that it processes. I used --leak-check=yes and --log-file=foo.txt options with Valgrind. However, Valgrind did not report any invalid write/read

Re: [Valgrind-users] undefined reference to `vgPlain_tool_info'

2009-09-15 Thread tom fogal
waseem shaukat exactlypinpo...@hotmail.com writes: For your help=2C i have tried make clean and make distclean but st= ill i got the same error. Is there another way to get rid of this corrupt l= ibrary. Just rm the whole directory and re-extract from a tarball. -tom From:

Re: [Valgrind-users] uninitialized value error and track-origins switch

2009-08-13 Thread tom fogal
Christopher Kuhlman ckuhl...@vbi.vt.edu writes: The internet pages say that for uninitialized value errors, it is helpful to specify the --track-origins=yes option. Yet when I do, I get: valgrind: Bad option '--track-origins=yes'; aborting. Check the version fo valgrind you've got.

Re: [Valgrind-users] Terse description of errors with valgrind 3.4.1

2009-08-13 Thread tom fogal
Michel Audette michel.aude...@kitware.com writes: See example below. I don't recall details of offending instructions being replaced by ??? in the past. Is this a new option that I should be setting, or an indication of a spurious error? ==27271== Use of uninitialised value of size 8

Re: [Valgrind-users] assert on memory exception?

2009-08-11 Thread tom fogal
Jonathon thejunk...@gmail.com writes: Thanks Tom for the help. The --db-attach command is very cool :) np. So with the invalid read, it is trying to read an address that is not valid. Would you happen to know what the line 16 bytes inside a block 24 free'd means? I think it's telling you

Re: [Valgrind-users] Ho to track memory allocation/deallocation using Valgrind ?

2009-07-22 Thread tom fogal
Ivan Ivanov barberis...@gmail.com writes: Just in case: the purpose why I need that is that I'd like to quickly find the source line where the allocation (and possible deallocation if this is a dangling pointer) of memory for some problematic object occurred. The point is when there are a lot

Re: [Valgrind-users] install question: how to build for multiple architectures?

2009-05-14 Thread tom fogal
Russell E. Owen ro...@u.washington.edu writes: I'm trying to install Valgrid 3.4.1 on a shared disk in such a way that all of our users can use it, though we have a mix of various flavors of linux box (x86 64-bit, 32-bit and AMD64). [snip] `cd' to the directory where you want the object

Re: [Valgrind-users] Valgrind malloc problem

2009-05-14 Thread tom fogal
patrick.al...@noaa.gov writes: I am using valgrind 3.4.1 to try to find a memory leak. My program has an initial routine which allocates a lot of memory - around 1 GB. When I run the program by itself it runs fine, however when I run it under valgrind, one of the many malloc calls in the

Re: [Valgrind-users] Valgrind malloc problem

2009-05-14 Thread tom fogal
-blah -m64 -moreblah something.c you can also check if the binary under test is 64bit with `file'. -tom Patrick On Thu, May 14, 2009 at 03:03:37PM -0600, tom fogal wrote: patrick.al...@noaa.gov writes: I am using valgrind 3.4.1 to try to find a memory leak. My program has an initial

Re: [Valgrind-users] Strange stack traces with libraries not in use

2009-04-30 Thread tom fogal
Colin Miller colin.mil...@picsel.com writes: tom fogal wrote: I'm seeing valgrind stack traces that point to errors from libraries which shouldn't be relevant to the given error messages. Here's an example: snipped Any idea what's going on, or how I might debug this further

[Valgrind-users] Strange stack traces with libraries not in use

2009-04-29 Thread tom fogal
I'm seeing valgrind stack traces that point to errors from libraries which shouldn't be relevant to the given error messages. Here's an example: Conditional jump or move depends on uninitialised value(s) at 0x4C230A8: strlen (mc_replace_strmem.c:242) by 0x402702:

Re: [Valgrind-users] Errors that don't seem to make any sense...

2009-02-13 Thread tom fogal
Micah N Gorrell valgrindus...@minego.net writes: On Thu, 12 Feb 2009, valgrind-users-boun...@lists.sourceforge.net wrote: On Thu, 12 Feb 2009, valgrind-users-boun...@lists.sourceforge.net wrote: So, if SocketReceive returned an uninitialised value then it can cause this? So that

Re: [Valgrind-users] Pthread error not detected by DRD and Helgrind

2009-02-05 Thread tom fogal
Christoph Bartoschek bartosc...@or.uni-bonn.de writes: Am Donnerstag, 5. Februar 2009 schrieb Julian Seward: On Thursday 05 February 2009, Christoph Bartoschek wrote: Hi, today I had to learn that the attached program is incorrect. It is not allowed to destroy the barrier while not

Re: [Valgrind-users] Enc: Re: Memory leak undetected (yes, I read the FAQ)

2009-01-23 Thread tom fogal
Fernando Coelho fgmcoe...@yahoo.com.br writes: [snip] For a final question, is there any log option that I am missing or it just = write the result on the screen? $ valgrind --log-file=myprog.vg.%p /path/to/your/program --options the `%p' gets replace with the process ID, which is nice

Re: [Valgrind-users] Conditional jump or move depends on uninitialised value(s)

2008-12-11 Thread tom fogal
Burlen Loring burlen.lor...@kitware.com writes: Hi all, Hi Burlen! Hope all is well. Valgrind identifies uninitialized memory when it's used in a conditional. It's very smart and can tell when one uninitialized value is assigned to another. I'd like to be able to see is a trace of all of

Re: [Valgrind-users] threads to queue

2008-11-03 Thread tom fogal
Julian Seward [EMAIL PROTECTED] writes: Darryl (I think) wants to see is something like: while in T1's C.S. `x', the variable `abc': saw a write from T1 of size whatever saw a write from T4 of size whatever saw a read from T3 of size whatever

Re: [Valgrind-users] threads to queue [long]

2008-11-02 Thread tom fogal
Darryl Miles [EMAIL PROTECTED] writes: tom fogal wrote: One thing I neglected to think about earlier is how one would do a `Can I still run?' check. There is no notification to a user process when a context switch comes back. Remember that valgrind instruments instructions. [snip