Re: [Valgrind-users] Valgrind changing inline function result

2008-10-24 Thread Paul Floyd
Saurabh T wrote: > >>On Fri, Oct 24, 2008 at 7:21 PM, Saurabh T wrote: >> >>>I am seeing different results from running an executable on its own vs with >>>valgrind. The culprit is a simple C++ function that returns the square of >>>the double passed to it (the double value is exactly the same

Re: [Valgrind-users] configure: error: build/install requires that 'sed' is GNU sed

2009-06-09 Thread Paul Floyd
Quoting Edward King : > My OS is Solaris 10,I install valgrind-3.4.1,like follows: > $./configure > > checking for gdb... /no/gdb/was/found/at/configure/time > ehecking for GNU sed... sed:illegal option --version > note: GNU sed is only required at build/install time > configure: error: build

[Valgrind-users] suppression files with valgrind 3.5.0

2009-08-20 Thread Paul Floyd
IR) export VALGRIND_OPTS="$VALGRIND_OPTS --suppressions=$VGBASEDIR/lib/valgrind/glibc-2.${GLIBCMINOR}.supp" Of course, we can still manually copy the suppression files. A+ Paul -- Paul Floyd http://paulf.free.fr --

Re: [Valgrind-users] suppression files with valgrind 3.5.0

2009-08-20 Thread Paul Floyd
through the release notes, but that paragraph didn't catch my attention. Does this mean that building Valgrind on one OS, installing it on an NFS mount and using it from later OSes isn't really supported? A+ P

Re: [Valgrind-users] merge valgrind results

2009-10-30 Thread Paul Floyd
Osman, Ahmed wrote: > Hi All, > > Is there a way to merge all runs of valgrind for the same executable in > one file? I use cat. A+ Paul -- Paul Floyd http://paulf.free.fr -- Come build

Re: [Valgrind-users] merge valgrind results

2009-10-30 Thread Paul Floyd
e with in the suppression file format to make it easier to add suppressions. I keep the summaries so that I can perform diffs on the numbers of errors and which testcases they appeared in (or disappeared from). A+ Paul -- Paul Floyd http:/

Re: [Valgrind-users] valgrind newbie

2011-01-31 Thread Paul Floyd
robert...@aol.com wrote: > I am trying to track down a memory leak in my fcgi process. I have > used a bit valgrind before but the scenario was a bit less complex. In > the current scenario, the fcgi process is started by a lighttpd script > using the following command. > > daemon $FCGI_DAEMO

[Valgrind-users] Unhandled instruction

2011-03-09 Thread Paul Floyd
Hi I'm getting this error: ==9395== Use of uninitialised value of size 8 ==9395==at 0x5445E28: array_dyn_resize (vassign.c:1368) ==9395==by 0x1E92D537: ??? ==9395==by 0x1E830057: ??? ==9395==by 0x5A7A2E7F: ??? ==9395==by 0x1E7F030F: ??? ==9395== Uninitialised value was create

[Valgrind-users] Errors in strncasecmp

2012-06-03 Thread Paul Floyd
Hi We just switched our reference platform to RHEL 6.2, using Valgrind 3.7.0 Now we're getting loads of errors in __GI___strncasecmp_l I see that in "memcheck/mc_replace_strmem.c" line 680 of 1585 [head svn version] there is STRCASECMP_L(VG_Z_LIBC_SONAME, strcasecmp_l) STRCASECMP_L(VG_Z_LI

Re: [Valgrind-users] posix_memalign on Mac results in an apparent leak

2012-07-26 Thread Paul Floyd
John Reiser wrote: > There is a dispute about the meaning of memory allocation when > the requested size is 0. The recipient must not access any memory > there; after all, the requested size is zero. Also, NULL strings > occur *everywhere*, so *any* address ought to be satisfactory > for a zero-

Re: [Valgrind-users] Memcheck fails to find error

2013-04-11 Thread Paul Floyd
On 11 Apr 2013, at 21:20, Milian Wolff wrote: > Hey there, > > a friend of mine is starting C++ and asked me this apparently simple question: > > Why does the following program not show me an error? Hi memcheck is a heap checker, not a stack checker. Try --tool=exp-sgcheck (where sg is sta

Re: [Valgrind-users] there is no callgrind.out

2013-04-18 Thread Paul Floyd
On 18 Apr 2013, at 19:15, Mahmood Naderan wrote: > Dear all, > I want to use kcachegrind and callgrind to profile my program and find the > hotspot. The problem is, I use --tool=callgrind but there is no calgrind > output file. > > Here is the detail: > My program at the top level uses a tcl s

Re: [Valgrind-users] Adding suppressions generates significantly more errors

2013-07-03 Thread Paul Floyd
On 2 Jul 2013, at 19:01, Kevin Lee wrote: > I had a relatively simple suppression file that generated ~500 errors. I > wrote a script to select certain errors for suppression and generate an > additional suppression file. When I run with this additional suppression > file, my errors explode to

Re: [Valgrind-users] Making valgrind output diff-friendly

2013-12-20 Thread Paul Floyd
On 20 Dec 2013, at 19:16, Nick Savoiu wrote: > Hi all, > > Valgrind's typical output > > ==19182== Invalid write of size 4 > ==19182==at 0x804838F: f (example.c:6) > ==19182==by 0x80483AB: main (example.c:11) > ==19182== Address 0x1BA45050 is 0 bytes after a block of size 40 alloc'd

Re: [Valgrind-users] Building valgrind on solaris x86

2015-10-19 Thread Paul Floyd
On 19 Oct 2015, at 20:25, Matthew Wozniczka wrote: > X86/Solaris is listed as supported @ http://valgrind.org/info/platforms.html, > so I grabbed a copy of valgrind-3.11.0.tar.bz2 and followed the instructions > @ http://valgrind.org/docs/manual/dist.install.html, but I got the following > err

Re: [Valgrind-users] -m32

2016-10-15 Thread Paul Floyd
Shiva wrote: > Hi Tom, > I am trying to run valgrind on my executable which is of 32-bit. I am > getting the following error: > valgrind > valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit) > valgrind: : cannot execute binary file > > Couple of other logs which are useful: > > fi

Re: [Valgrind-users] [Valgrind-developers] Valgrind-3.13.0.RC1 is available for testing

2017-06-11 Thread Paul Floyd
On 10 Jun 2017, at 12:57, Julian Seward wrote: > On 02/06/17 17:57, Julian Seward wrote: >> An RC1 tarball for 3.13.0 is now available at [..] > > Thank you to everybody who tried out the RC1 tarball. There's now > an RC2 available for testing at > > ftp://sourceware.org/pub/valgrind/valgrind-

Re: [Valgrind-users] Valgrind hangs when generating supression for Qt5 menus

2017-07-14 Thread Paul Floyd
On 14 Jul 2017, at 21:10, Nathan Bahr wrote: > Hi, > > I made a simple Qt5 application with a single menu item and valgrind is > configured to print suppression code. > > If I open and close a menu, valgrind holds onto the QMenu object and prompts > to print supression code. This causes the w

[Valgrind-users] rodata warning

2018-02-11 Thread Paul Floyd
Hi I’m getting this warning: --18142-- WARNING: Serious error when reading debug info --18142-- When reading debug info from /export/home/paulf/tools/gcc/lib/libstdc++.so.6.0.25: --18142-- Can't make sense of .rodata section mapping (GCC SVN head, Solaris 11.3, Valgrind git head). Is it signif

Re: [Valgrind-users] rodata warning

2018-02-11 Thread Paul Floyd
> On 11 Feb 2018, at 21:36, John Reiser wrote: > >> --18142-- WARNING: Serious error when reading debug info >> --18142-- When reading debug info from >> /export/home/paulf/tools/gcc/lib/libstdc++.so.6.0.25: >> --18142-- Can't make sense of .rodata section mapping >> (GCC SVN head, Solaris 11.

Re: [Valgrind-users] rodata warning

2018-02-12 Thread Paul FLOYD
    Hi John   My first attempt to post the output failed as it was too long.   Here it is on a paste site   https://zerobin.net/?0bf6ea80afca0924#PT/yP+KTPOXYx/+IKUC+wwhm/UCF+S2fccpHQB9Cf7Q=     Here's an extract:   ELF Header:   Magic:   7f 45 4c 46 01 01 01 06 01 00 00 00 00 00 00 00    Class:   

Re: [Valgrind-users] rodata warning

2018-02-12 Thread Paul Floyd
> On 11 Feb 2018, at 21:36, John Reiser wrote: > >> --18142-- WARNING: Serious error when reading debug info >> --18142-- When reading debug info from >> /export/home/paulf/tools/gcc/lib/libstdc++.so.6.0.25: >> --18142-- Can't make sense of .rodata section mapping >> (GCC SVN head, Solaris 11.

Re: [Valgrind-users] rodata warning

2018-02-13 Thread Paul Floyd
> On 13 Feb 2018, at 01:03, John Reiser wrote: > >> https://zerobin.net/?0bf6ea80afca0924#PT/yP+KTPOXYx/+IKUC+wwhm/UCF+S2fccpHQB9Cf7Q= > > [That "paste" site says that the page expires in 6 days.] It’s the first time I’ve used such a site. I don’t know if there are ones that have free persi

[Valgrind-users] Massif xtree

2018-03-19 Thread Paul Floyd
Hi I’ve been using Massif recently and I gave the xtree output a go (using the callgrind format output). Am I right in saying that, by default, the stats given are for the entire run? This means that the total allocs/frees give a good idea of the memory churn for the run. However, the ‘current

Re: [Valgrind-users] Valgrind Solaris port - current and future shape

2018-06-29 Thread Paul Floyd
> On 18 Jun 2018, at 15:39, Ivo Raisr wrote: > > Dear Valgrind'ers, > > I have been maintaining the Valgrind Solaris (and partly also illumos) > port for nearly three years, > ensuring it builds and runs on the latest Solaris 11.1, 11.2, 11.3 > (and 11.4 until April 2018). > > > I am still a

Re: [Valgrind-users] [Valgrind-developers] valgrind-3.14.0.RC2 is available for testing

2018-10-06 Thread Paul Floyd
> On 6 Oct 2018, at 01:05, Roger Light wrote: > > Hello, > > I built and tested on a Mac with OS X version 10.13.6. I have the same > problem with the tarball, but the git checkout built just fine. > > make regtest produced: > > == 643 tests, 328 stderr failures, 83 stdout failures, 1 stder

Re: [Valgrind-users] HELP/Hint: valgrind error message

2020-05-15 Thread Paul FLOYD
  > Message du 15/05/20 10:22 > De : "Kunal Chauhan" > ==6660== Warning: Can't execute setuid/setgid/setcap executable: ./lte_tr069 > ==6660== Possible workaround: remove --trace-children=yes, if in effect > ==6660== > valgrind: ./lte_tr069: Permission denied Hi The problem is that your appl

[Valgrind-users] DHAT speed

2020-05-26 Thread Paul FLOYD
Hi   I'm running DHAT on what I consider to be a relatively small example. Standalone the executable runs in a bit under 10 minutes. Based on the CPU time that we print after every 10% of progress, under DHAT the same executable is going to take about 422 hours - about two and a half weeks.   Do

Re: [Valgrind-users] DHAT speed

2020-05-26 Thread Paul FLOYD
On 5/26/20, Paul FLOYD wrote: > > I'm running DHAT on what I consider to be a relatively small example. > > Standalone the executable runs in a bit under 10 minutes. Based on the CPU > > time that we print after every 10% of progress, under DHAT the same executable is

Re: [Valgrind-users] DHAT speed

2020-05-26 Thread Paul FLOYD
 > That doesn't sound right. I use DHAT extensively and expect a slowdown of> perhaps 50:1, maybe less. What you're describing is a slowdown factor of> at least several thousand.>> Bear in mind though that (1) V sequentialises thread execution, which wil> make a big difference if the program is

Re: [Valgrind-users] DHAT speed

2020-05-26 Thread Paul FLOYD
> Message du 26/05/20 13:19> De : "John Reiser" the ratio is about 1:50. So > right away, that's a hardware slowdown of 4X.Maybe more. The machine has > 12Mbyte of cache according to cpuinfo.> Valgrind runs every tool > single-threaded. So if your app averages 5 active threads,> then that is a

Re: [Valgrind-users] DHAT speed

2020-05-27 Thread Paul FLOYD
[snip - perf] Well, no real surprises. This is with a testcase that runs standalone in about 5 seconds and under DHAT in about 200 seconds (so a reasonable slowdown of 40x). # Overhead Command Shared Object

Re: [Valgrind-users] MySQL related messages

2020-06-05 Thread Paul FLOYD
Hi If you want to be certain then you will need to run with debug information. There may be something like a "mysql-debuginfo" package that you could install. That said, "still reachable" memory is often harmless, caused by libraries caching information. Similar questions have been asked on Sta

Re: [Valgrind-users] MySQL related messages

2020-06-07 Thread Paul FLOYD
On 6/7/20 16:11 UTC, James Read wrote: > I found the FAQ https://dev.mysql.com/doc/refman/8.0/en/faqs.html but > couldn't find the answer you were referring to. > Any clues as to which part of the FAQ I should be looking in? I think that John was referring to the Valgrind FAQ https://www.valgri

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

2020-06-17 Thread Paul FLOYD
> Hi Team, > Q.As for a valgrind usage , is valgrind only checks the memory leakage of > code which hits only? > Q As for a can valgrind checks the all the code of binary without hitting rhe > scenerio. In code? Kunal Broadly speaking, there are two categories of software analysis tools. 1.

Re: [Valgrind-users] Print summary before exec

2020-06-25 Thread Paul FLOYD
> De : "François-Xavier Carton via Valgrind-users" > Hi, I have a program that calls exec without forking. I would like to run > that program under valgrind > and get a summary report for the code before the call to exec. > I don't want to trace the exec'ed program, so the --trace-children optio

Re: [Valgrind-users] Generation of report

2020-07-17 Thread Paul FLOYD
De : "Shemin Aboobacker" > > if we are using automated gui testing tool with valgrind and automated > testing tool kills > the application after GUI testing ,valgrind gives incomplete report.Is there > any solution for this?  On Linux I suppose? Which signal is being used for the kill? SIGTER

Re: [Valgrind-users] Generation of report

2020-07-17 Thread Paul Floyd
Hi again OK, a few more details. There is nothing that you can do about SIGKILL. Your process gets terminated and you get no chance to do anything about it. Valgrind cannot do it’s final resource leak checks and your log is probably truncated. SIGTERM, on the other hand, gives you a chance to

Re: [Valgrind-users] compat_ioctl cmd does not match even if it shows same value

2020-08-17 Thread Paul FLOYD
> This is incorrect for C99 and indeed any compiler that supports "long long". > On such systems, the integer constant 3222829167 > has type "long long", and it is absolutely guaranteed to preserve that value > when cast to unsigned. Assuming 32-bit int, of course. It is also incorrect for C90

Re: [Valgrind-users] Please give me advises: How to use the snapshot parameter used in VALGRIND's massif in external applications like Python or ROS/ROS2

2021-01-19 Thread Paul Floyd
On 19/01/2021 17:52, Koki Nagahama wrote: Hi VALGRIND developers and users, I'm planning to modify a part of your product, VALGRIND,to integrate it with a middleware for robots called ROS. In order to do this, I'm considering two ways to implement the massif component of VALGRIND: (1) to imp

Re: [Valgrind-users] [valgrind]: mem leaks

2021-01-23 Thread Paul Floyd
On 1/22/21 9:31 PM, Kunal Chauhan wrote: Hi Team, As on my linux  board ,one of process showing some run time memory increase as seen by pmap command. So how valgrind can be useful to search such mem leaks in big code. Or is there is way to attached valgrind and see where and which instruc

Re: [Valgrind-users] [valgrind]: mem leaks

2021-01-24 Thread Paul Floyd
> On 24 Jan 2021, at 18:29, Kunal Chauhan wrote: > > Hi paul, > > thanks for info, > 1.Like in trailing mail you said process under completion what do you mean > exactly, > 2. Also for running a process under valgrind my binary should be strip or > unstrip.? > > 3. Memcheck tool where it

Re: [Valgrind-users] [valgrind]: mem leaks

2021-01-27 Thread Paul Floyd
> On 25 Jan 2021, at 11:49, Kunal Chauhan wrote: > > Thanks for clarifications > ++ if the binary is crashed or may be not crashed when it runs with valgrind, > but in both case valgrind is able to give the report. ? Hi If your application causes a segmentation fault, the OS will send it a

Re: [Valgrind-users] Valgrind-3.17.0.RC1 is available for testing

2021-03-16 Thread Paul Floyd
On 3/15/21 1:33 PM, Mark Wielaard wrote: Greetings. A first release candidate for 3.17.0 is available at https://sourceware.org/pub/valgrind/valgrind-3.17.0.RC1.tar.bz2 (md5 = 9df201b3461a1709993ffc50d0920bd7) Please give it a try on platforms that are important for you. If no serious issues

Re: [Valgrind-users] Valgrind musl 1.2.2 bug

2021-04-27 Thread Paul Floyd
On 4/26/21 8:23 PM, Kyryl Melekhin wrote: Hello valgrind community! This is my first message ever to this mailing list. I am currently experiencing a weird bug in valgrind, where it mistakenly does not recognize malloc/free/realloc function and also produces weird warnings. But only on musl l

Re: [Valgrind-users] how to attach valgrind to more than one process at a time

2021-06-01 Thread Paul Floyd
> On 1 Jun 2021, at 06:46, gangadhara reddy chavva > wrote: > > Hi, > > I am working on network routers where there will be multiple protocols > running as different processes. if i want to attach the valgrind for more > than one process at the same time what is the command/option to use.

Re: [Valgrind-users] No "by" message in memcheck output

2021-07-13 Thread Paul FLOYD
> De : "Michael Ortiz" > Objet : [Valgrind-users] No "by" message in memcheck output Hi It's possible that the call to malloc is before the start of main (either from your libc or for the initialization of some static or global object). I know next to nothing about the ARM ABI, but on amd64

Re: [Valgrind-users] valgrind-3.18.0.RC1 is available for testing

2021-10-13 Thread Paul Floyd
On 10/12/21 10:13 PM, Mark Wielaard wrote: An RC1 tarball for 3.18.0 is now available at https://sourceware.org/pub/valgrind/valgrind-3.18.0.RC1.tar.bz2 (md5sum = 6babaf9e145055a2c9b50cbd2ddfefc0) (sha1sum = ccc73895097cba83cf7664b02edc66866e98a31b) Please give it a try in configurations that

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Paul FLOYD
> Message du 20/10/21 17:14 > De : "Vladislav Yaglamunov" > A : valgrind-users@lists.sourceforge.net > Copie à : > Objet : [Valgrind-users] Cubic root of zero gives wrong result with clang > 64-bit > >Hi, >I am using Valgrind 3.17.0 and noticed a strange behavior while running a code >compile

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Paul Floyd
On 10/20/21 16:16, Paul FLOYD wrote: Message du 20/10/21 17:14 De : "Vladislav Yaglamunov" A : valgrind-users@lists.sourceforge.net Copie à : Objet : [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit I am using Valgrind 3.17.0 and noticed a strange behavior whi

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-20 Thread Paul Floyd
On 20/10/2021 20:13, Paul Floyd wrote: On 10/20/21 16:16, Paul FLOYD wrote: Message du 20/10/21 17:14 De : "Vladislav Yaglamunov" A : valgrind-users@lists.sourceforge.net Copie à : Objet : [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit I am usin

Re: [Valgrind-users] Cubic root of zero gives wrong result with clang 64-bit

2021-10-21 Thread Paul Floyd
On 21/10/2021 20:45, Florian Weimer wrote: * Paul Floyd: Unless someone else has an Idea this is going to need some debugging inside Valgrind. It's probably the glibc implementation that is incorrectly executed by valgrind. “g++ -fno-builtin” reproduces the issue with the original so

Re: [Valgrind-users] Using Valgrind with custom memory management

2021-11-18 Thread Paul FLOYD
  > Could you please suggest if Valgrind has provisions to help detect memory > leaks, for applications such as ours. Hi Abhijit Yes, Valgrind has provisions for this. It will, however, require you to modify your code. The procedure is documented in the manual here https://valgrind.org/doc

Re: [Valgrind-users] 'make check' for valgrind-3.18.1

2021-12-19 Thread Paul Floyd
On 18/12/2021 21:07, John Crow wrote: Fwiw I'm seeing a failure, snippet below, when running `make check` on valgrind-3.18.1. The package configures, makes, installs, and, as far as I can tell, executes successfully. $ uname -a Linux foo-Inspiron-3583 5.4.0-91-generic #102-Ubuntu SMP Fri Nov

Re: [Valgrind-users] 'make check' for valgrind-3.18.1

2021-12-19 Thread Paul Floyd
Hi John On 12/19/21 16:16, John Crow wrote: I ought to have said at first how much I appreciate having Valgrind available. It's invaluable, and thank you for your attention. 'You are building with the same compiler that was used at configure time?' Yes. I verified by doing a configure>>make>

Re: [Valgrind-users] [SGCheck][Array overrun detection] seems found nothing in multiple version

2022-08-03 Thread Paul Floyd
Hi Sgcheck never got beyond experimental and was removed from Valgrind a few versions ago. My advice is simply to not use it. A+ Paul > On 4 Aug 2022, at 07:45, Pahome Chen via Valgrind-users > wrote: > >  > Dear all, > > I read the sgcheck’s doc and know it’s a experimental tool, but it

Re: [Valgrind-users] Valgrind trace Memory Addresses while running?

2022-08-05 Thread Paul Floyd
> On 5 Aug 2022, at 20:53, G N Srinivasa Prasanna > wrote: > >  > This is the first time we are using Valgrind, and we want to know if we can > get a list of all the physical addresses the program used, in the order the > program accessed them, and whether read/write. > > Please let us kno

Re: [Valgrind-users] tond...@yahoo.co.uk compiling Valgrind 3.19.0 on Solaris 11

2022-09-08 Thread Paul Floyd
On 8 Sept 2022 15:27, Shane Bishop wrote: Hi, I am trying to compile Valgrind 3.19.0 on Solaris  Is there an earlier release of Valgrind that is known to successfully compile on Solaris 11 that I could try building instead?If you have Oracle support I believe that they have a version avai

Re: [Valgrind-users] compiling Valgrind 3.19.0 on Solaris 11

2022-09-14 Thread Paul Floyd
Can you try https://github.com/oracle/solaris-userland/tree/master/components/valgrind One day I’ll get round to contacting the Oracle support team that produced this with a view to merging it upstream. A+ Paul ___ Valgrind-users mailing list Valgr

Re: [Valgrind-users] Valgrind-3.20.0.RC1 is available for testing

2022-10-20 Thread Paul Floyd
On 10/20/22 01:52, Mark Wielaard wrote: Greetings. A first release candidate for 3.20.0 is available at https://sourceware.org/pub/valgrind/valgrind-3.20.0.RC1.tar.bz2 (md5 = 981b9276536843090700c1268549186e) Please give it a try on platforms that are important for you. If no serious issues

Re: [Valgrind-users] Valgrind-3.20.0.RC1 is available for testing

2022-10-20 Thread Paul Floyd
On 10/20/22 01:52, Mark Wielaard wrote: Greetings. A first release candidate for 3.20.0 is available at https://sourceware.org/pub/valgrind/valgrind-3.20.0.RC1.tar.bz2 (md5 = 981b9276536843090700c1268549186e) Please give it a try on platforms that are important for you. If no serious issues

Re: [Valgrind-users] Timer delete

2022-11-11 Thread Paul Floyd
On 11/11/22 17:47, Domenico Panella wrote: Hi, I am getting a memory leak in my program about timer_delete function. According valgrind output, It seems that the timer_delete function doesn't release the memory. ==18483== HEAP SUMMARY: ==18483== in use at exit: 272 bytes in 1 blocks ==1

Re: [Valgrind-users] Timer delete

2022-11-12 Thread Paul Floyd
On 11/12/22 01:46, John Reiser wrote: It's a bug (or implementation constraint) in glibc timer. When I run it under valgrind-3.19.0 with glibc-debuginfo and glibc-debugsource installed (2.35-17.fc36.x86_64): [Notice the annotation "LOOK HERE"] ==281161== Command: ./a.out ==281161== --28

Re: [Valgrind-users] Timer delete

2022-11-12 Thread Paul Floyd
Yes, the cache disabling is quite hacky, as mentionnd in the doc: "Valgrind disables the cache using some internal knowledge of the glibc stack cache implementation and by examining the debug information of the pthread library. This technique is thus somewhat fragile and might not work f

Re: [Valgrind-users] Timer delete

2022-11-13 Thread Paul Floyd
Hi I've done most of the work to get the pthread stack cache turned off with glibc >= 2.34. (see https://bugs.kde.org/show_bug.cgi?id=88). This doesn't help with this example, and it looks to me that this is a problem with libc / rtld. A+ Paul

Re: [Valgrind-users] memory leak reported many times, but only one instance should be possible

2023-01-16 Thread Paul Floyd
On 16-01-23 22:02, Gordon Messmer wrote: Can anyone suggest why valgrind prints so many loss records for this particular leak?  Links for the two functions that I mentioned follow, along with one of the loss records printed by valgrind. In my experience the most likely reason that you are

Re: [Valgrind-users] Cache conflict detection support in cachegrind

2023-01-29 Thread Paul Floyd
On 29-01-23 14:31, Ivica B wrote: Hi! I am looking for a tool that can detect cache conflicts, but I am not finding any. There are a few that are mostly academic, and thus not maintained. I think it is important for the performance analysis community to have a tool that to some extent can det

Re: [Valgrind-users] Cache conflict detection support in cachegrind

2023-02-08 Thread Paul Floyd
On 29-01-23 20:50, Ivica B wrote: Hi Paul! I read the info you provided, but none of the programs actually support detecting cache conflicts. Hi No, the tools I suggested would only give an indication, you would then have to use your code knowledge and maybe some trial and error to make

Re: [Valgrind-users] Need Help

2023-02-15 Thread Paul Floyd
> On 16 Feb 2023, at 00:37, Anand K R wrote: > > 0x66 0xF 0x3A 0x22 > I can’t see what that disassembles to. Can you tell us what CPU exactly this is for, and which OS and compiler you are using? Do you get any call stacks (for Valgtind itself or the test exe)? Lastly, can you provide a

Re: [Valgrind-users] Compilation fails on ARM

2023-02-27 Thread Paul Floyd
On 27-02-23 22:11, Leon Pollak wrote: Hello, all. I am trying to compile Valgrind 3.20.0 on ARMv7 Linux 2.6.37 (not cross!). At first, compilation produced a lot of errors with binary constants in the form 0b, but I replaced them with normal numbers and compilation continued. It failed w

Re: [Valgrind-users] about a stack fill option (as for malloc-fill and free-fill)

2023-03-28 Thread Paul Floyd
On 28-03-23 11:40, Julien Allali wrote: Hi, Sometimes, valgrind detects error like "Conditional jump or move depends" or "Use of uninitialized value" related to a variable in heap. When using with gdb (--vgdb-error=1), a newbie (i.e. my students) can have difficulties to understand as

Re: [Valgrind-users] about a stack fill option (as for malloc-fill and free-fill)

2023-03-30 Thread Paul Floyd
On 29-03-23 04:41, John Reiser wrote:  Could it be possible to add an option like --heap-up-fill --heap-down-fill (like for stack with malloc), that fills heap memory with a specified values (when entering a function and leave a function)? tl;dr 2 See https://www.open-std.org/jtc1/sc22

Re: [Valgrind-users] Valgrind-3.21.0.RC2 is available for testing

2023-04-22 Thread Paul Floyd
Nothing bad to report. I'll do one more test on Solaris 11.3 tomorrow. FreeBSD 13.1 amd64 No change FreeBSD 13.2 amd64 I get a hang in drd/tests/pth_cancel_locked and a few more fails, most likely related to switching from clang 13 to 14. FreedBSD 13.2 x86 As for amd64 but also a new han

Re: [Valgrind-users] Valgrind-3.21.0.RC2 is available for testing

2023-04-22 Thread Paul Floyd
On 22-04-23 23:41, Paul Floyd wrote: OpenIndiana 22.10 Everything builds. All the gdbserver tests hang. And I should have said the hangs aren't new. A+ Paul ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net

Re: [Valgrind-users] Valgrind-3.21.0.RC2 is available for testing

2023-04-23 Thread Paul Floyd
On 04/22/23 11:41 PM, Paul Floyd wrote: Nothing bad to report. I'll do one more test on Solaris 11.3 tomorrow. Solaris 11.3 amd64 No python3, and I only have python3.4 (and no 'python3' metapackage either) on my machine that is long out of service contract. So I got s

Re: [Valgrind-users] Valgrind-3.21.0.RC2 is available for testing

2023-04-23 Thread Paul Floyd
On 23-04-23 13:58, Paul Floyd wrote: Still to come: Alpine/musl. It configures. It all builds. It's not great. == 619 tests, 102 stderr failures, 27 stdout failures, 1 stderrB failure, 2 stdoutB failures, 4 post failures == But that's good enough for me :-

Re: [Valgrind-users] Suspect "uninitialised value(s)" error

2023-10-12 Thread Paul Floyd
On 11/10/2023 23:47, Karl Robillard via Valgrind-users wrote: I'm getting the following error on struct members which should absolutely be initialized: Conditional jump or move depends on uninitialised value(s) To begin investigating I did a memset of zero on the entire struct and the error

Re: [Valgrind-users] Suspect "uninitialised value(s)" error

2023-10-12 Thread Paul Floyd
On 12/10/2023 10:06, Tom Hughes wrote: That's not any part of the problem code though, so it's not really relevant to the original problem. There's no way we can comment on the original problem though because we can't actually see any of the code, only a few top level highlights which is nowh

Re: [Valgrind-users] [Valgrind-developers] Valgrind-3.22.0.RC2 is available for testing

2023-10-26 Thread Paul Floyd
> On 27 Oct 2023, at 00:54, Mark Wielaard wrote: > > Thanks. > > = I ran make regtest on Fedora 38 POWER9 ppc64le and got: > > == 732 tests, 2 stderr failures, 0 stdout failures, 0 stderrB failures, 0 > stdoutB failures, 0 post failures == > memcheck/tests/bug340392 (stderr) >

Re: [Valgrind-users] Valgrind-3.22.0.RC2 is available for testing

2023-10-30 Thread Paul Floyd
On 26-10-23 14:48, Mark Wielaard wrote: An RC2 tarball for 3.22.0 is now available at https://sourceware.org/pub/valgrind/valgrind-3.22.0.RC2.tar.bz2 (md5sum = 07bb18b0fd1c7347b350d8d71dc940f6) (sha1sum = 61c29e47efdc933ea3f23cb2f0fcebcd6d96dab1) https://sourceware.org/pub/valgrind/valgrind-3.

Re: [Valgrind-users] thread not created when program executed with valgrind

2024-01-16 Thread Paul Floyd
On 16/01/2024 20:17, JD Silence wrote: Hello, I'm looking for some hints, advice and any other things that could help me figure this out. I have a big program which I wanted to debug some memory issues. This program internally creates and runs several threads. [snip] The program is writt

Re: [Valgrind-users] Uninitialized variable detection in Fortran

2024-10-24 Thread Paul Floyd via Valgrind-users
On 24-10-24 14:33, Daniel Feenberg via Valgrind-users wrote: I am a bit inexperienced with Valgrind which reports an uninitialized variable in my 34,000 line program. But the message comes from a branch deep in libgfortran. After some experimentation, I created the following example program

Re: [Valgrind-users] Uninitialized variable detection in Fortran

2024-10-27 Thread Paul Floyd via Valgrind-users
On 26-10-24 13:36, Daniel Feenberg wrote: This is very disappointing. Such moves may be frequent in other languages, but I don't see it happening to much in my Fortran 95 code. I suppose if subroutine arguments are copy-in/copy-out, that would be a source of spurious messages, as could

Re: [Valgrind-users] Possibly Lost Error

2024-11-13 Thread Paul Floyd via Valgrind-users
On 12-11-24 22:22, William Chan (BLOOMBERG/ 919 3RD A) wrote: Hi, I have a program that induces a possibly lost warning via an interior pointer but I deallocate the pointer properly. Is Valgrind supposed to be able to know that an interior pointer is freed? I'm trying to determine whether

Re: [Valgrind-users] Docker Support

2024-03-04 Thread Paul Floyd via Valgrind-users
On 04-03-24 11:42, jinesh gada wrote: Hi Everyone, I am working on integrating a docker based application on a virtual machine with Valgrind. I have bind the Valgrind libraries and required folder structure with the container. But on running my app with Valgrind I'm facing an issue sayi

Re: [Valgrind-users] Always investigate valgrind memcheck errors [rjo...@redhat.com: Re: xz backdoor]

2024-03-31 Thread Paul Floyd via Valgrind-users
On 30-03-24 11:43, Mark Wielaard wrote: For those of you tracking the xz backdoor: https://lwn.net/Articles/967180/ valgrind plays a little role in the discovery. "Then recalled that I had seen an odd valgrind complaint in my automated testing of postgres, a few weeks earlier, after some pac

Re: [Valgrind-users] Valgrind-3.23.0.RC1 is available for testing

2024-04-23 Thread Paul Floyd via Valgrind-users
> On 22 Apr 2024, at 20:40, Carl Love via Valgrind-users > wrote: > > Mark: > > The PowerPC test results for Valgrind 3.23.0.RC1 > > --- > Power 10, Fedora release 38 : > > memcheck/tests/linux/rfcomm (stderr) also fail

Re: [Valgrind-users] Valgrind-3.23.0.RC2 is available for testing

2024-04-25 Thread Paul Floyd via Valgrind-users
On 25-04-24 14:39, Simon Sobisch wrote: 1. Several failing tests because of sed and ps usage. With 2.  Two failing tests on Debian with AMD Ryzen: 3. compile warnings with clang on arm64 (in multiple files/positions with different arguments to the macros CALL_FN_W_W, CALL_FN_W_WW, CALL_FN_

Re: [Valgrind-users] Valgrind-3.23.0.RC2 is available for testing

2024-04-25 Thread Paul Floyd via Valgrind-users
On 25-04-24 08:50, Simon Sobisch wrote: I've compiled and tried to run the RC2 on some environments, using 1. Find just a minor patch for configure.ac to improve help output and keep the style of the file (two missing spaces visible in "configure --help"; tabs/line breaks). 2. One thing th

Re: [Valgrind-users] Valgrind-3.23.0.RC2 is available for testing

2024-04-25 Thread Paul Floyd via Valgrind-users
On 24-04-24 23:33, Mark Wielaard wrote: An RC2 tarball for 3.23.0 is now available at FreeBSD amd64 and arm64 both still fine. A+ Paul ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/lis

Re: [Valgrind-users] Valgrind-3.23.0.RC2 is available for testing

2024-04-27 Thread Paul Floyd via Valgrind-users
On 25-04-24 19:09, Simon Sobisch wrote: Am 25.04.2024 um 20:55 schrieb Paul Floyd via Valgrind-users: On 25-04-24 14:39, Simon Sobisch wrote: 3. compile warnings with clang on arm64 (in multiple files/positions with different arguments to the macros CALL_FN_W_W, CALL_FN_W_WW

Re: [Valgrind-users] Semaphore error on Helgrind and Drd?

2024-05-29 Thread Paul Floyd via Valgrind-users
On 25/05/2024 12:29, Paulo Ferreira wrote: > Error message from Helgrind: > > $ valgrind --tool=helgrind ./prog > ... > ==6587== Thread #1: Bug in libpthread: sem_wait succeeded on semaphore > without prior sem_post > ==6587==at 0x4850069: sem_wait_WRK (hg_intercepts.c:3155) > ==6587==

Re: [Valgrind-users] Semaphore error on Helgrind and Drd?

2024-06-12 Thread Paul Floyd via Valgrind-users
On 25/05/2024 12:29, Paulo Ferreira wrote: > Error message from Helgrind: > > $ valgrind --tool=helgrind ./prog > ... > ==6587== Thread #1: Bug in libpthread: sem_wait succeeded on semaphore > without prior sem_post > ==6587==at 0x4850069: sem_wait_WRK (hg_intercepts.c:3155) > ==6587==

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

2024-06-15 Thread Paul Floyd via Valgrind-users
On 15-06-24 17:38, Thomas Wollenzin wrote: Hi, I'm not too familiar with valgrind yet so excuse a potentially dumb question. I'm trying to fix an issue in our code base that valgrind reported as 'Conditional jump or move depends on uninitialised value(s)'. In particular I have a hard tim

Re: [Valgrind-users] question regarding mismatching free/delete

2024-06-17 Thread Paul Floyd via Valgrind-users
On 17-06-24 08:45, Thomas Wollenzin wrote: Hi, I have a questing regarding Valgrind report 'Mismatched free() / delete / delete []'. I understand that Valgrind is redirecting calls to new/delete and so on to its own. On the allocation side I see: operator new(unsigned long) (vg_repl

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

2024-06-19 Thread Paul Floyd via Valgrind-users
On 19-06-24 08:15, Thomas Wollenzin wrote: Thanks for the hint, Sean. While that might work perfectly fine, I'm personally not a big fan of these types of tools. They're fine for proofing a theory but shouldn't be used to 'cover up' developer mistakes. Code should be written as solidly as p

Re: [Valgrind-users] [Valgrind-developers] A thousand bugs

2024-06-23 Thread Paul Floyd via Valgrind-users
On 23-06-24 15:43, Mark Wielaard wrote: Hi all, On Thu, Nov 16, 2023 at 08:22:33PM +0100, Mark Wielaard wrote: Valgrind is more than 20 years old and we have been collecting bugs slightly faster than we have been able to close them. Which means we now have around a thousand bugs open. This i

Re: [Valgrind-users] alternative ways of communication

2024-07-05 Thread Paul Floyd via Valgrind-users
On 04-07-24 14:26, Thomas Wollenzin wrote: Hi, I was wondering whether there are other ways of communication for the Valgrind community. In particular I'm thinking Slack or Discord? The main problem that I see with these platforms is that the perceived ease of access means that there are

Re: [Valgrind-users] Simple list of functions ever called

2024-08-17 Thread Paul Floyd via Valgrind-users
On 06-06-24 15:43, Byron Hawkins wrote: For the purposes of studying dead-code elimination in LLVM, I'd like to generate a simple list of all the functions that are ever called by the target program. There's no need for any timing or frequency reports or backtraces or any other details. So fa

Re: [Valgrind-users] Query regarding Valgrind mailer list

2024-09-05 Thread Paul Floyd via Valgrind-users
> On 5 Sep 2024, at 11:18, Isharat Mahmood wrote: > > Dear Team, > > We have a query regarding Valgrind working model. > Is it the right mailer list to ask? If it is a Valgrind User question then this is the right list. Otherwise there is a mailing list for Valgrind developers. A+ Paul

  1   2   >