Re: [Valgrind-users] Help

2023-09-07 Thread Floyd, Paul
On 07/09/2023 16:52, John Reiser wrote: ==17348== Warning: invalid file descriptor 1024 in syscall close() Your exe is probably trying to ensure all file descriptors are closed. You should probably use getrlimit() to query the upper limit rather than assume anything. Exes under Valgrind

Re: [Valgrind-users] Help

2023-09-07 Thread Floyd, Paul
On 07/09/2023 15:52, Domenico Panella wrote: Hi, I attached a valgrind log for my program. I'd want an help to read it to understand if any error are there or not. I don't think so but a confirm is much better. Hi There's not a lot to see in your log. ==17348== Warning: invalid file

Re: [Valgrind-users] Issues in the callgrind output report

2023-08-22 Thread Floyd, Paul
On 12/07/2023 15:26, Pavankumar S V wrote: 1. Running my application with this command: *valgrind --tool=callgrind -q --collect-systime=yes --trace-children=yes taskset 0x1 application_name* Hi Sorry for the late answer. Does it help if you use higher resolution

Re: [Valgrind-users] unhandled instruction bytes

2023-04-18 Thread Floyd, Paul
On 18/04/2023 17:46, folkert wrote: The 2 calls it does are: print_char: movb (%esi), %al movb %al, buffer movl $4, %eax movl $1, %ebx movl $buffer, %ecx movl $1, %edx int $0x80 ret exit: movl $1, %eax movl $0, %ebx int $0x80 Valgrind

Re: [Valgrind-users] valgrind exits with an error when using mmap (mmap mdev device)

2023-03-16 Thread Floyd, Paul
On 15/03/2023 02:22, 骤变成玄武 via Valgrind-users wrote: 2  Problem description: -- source code:   mmap a mdev device What i usually do is run pmap -x on the guest exe running standalong (adding a "sleep" if ncessary) and then running valgrind -d. That should give you memory maps that you can

Re: [Valgrind-users] client program compiled with pie

2022-11-23 Thread Floyd, Paul
On 17/11/2022 19:22, Mark Roberts wrote: How do I find the loaded address of a client program that was compiled with -pie? I.e., how to I map the current execution address - such as 0x4021151 - to the address in the elf file - such as 0x1193? With -nopie the two are identical. Hi Do

Re: [Valgrind-users] A weird memory leak with openmp task depend

2022-11-22 Thread Floyd, Paul
Hi You need to tell us more details Which OS? Which version of Valgrind? What CPU? Which compiler? Which version of OMP? A+ Paul ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net

Re: [Valgrind-users] callgrind.out file size is zero

2022-10-18 Thread Floyd, Paul
On 18/10/2022 14:54, Mahin Pandya wrote: Hi All, I am tying to use Valgrind to generate code profiling, generated callgrind.out.2199511 file is of zero size. After enabling the debug log below message is displayed: ... SB 2759 (evchecks 30598) [tid 1] 0x415b170 execve

Re: [Valgrind-users] Valgrind crash on Texas Instrument AM3352 (armv7le) and QNX

2022-07-11 Thread Floyd, Paul
On 2022-07-11 09:43, Cédric Perles wrote: Hi Valgrind community, I have 2 different boards running QNX 6.5 and mounting the exact same file system. One board is based on an NXP iMX53 SoC and the other one on a Texas Instrument AM3352. Since both SoC share the same instruction set (Cortex A8

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

2022-06-24 Thread Floyd, Paul
On 2022-06-24 05:41, $rik@nth wrote: Hello Paul, Seems even after removing -lgcc from Makefile.tool.am compilation is still failing because of other dependencies on libgcc. ../coregrind/libgcc-sup-arm64-linux.a ld: error: undefined symbol: __aeabi_uidivmod >>>

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

2022-06-23 Thread Floyd, Paul
On 2022-06-23 12:04, $rik@nth wrote:   Hello Valgrind Users, I am trying to cross compile the valgrind for Android using NDK. But I am seeing the compilation error. Has anyone faced a similar issue? Hi I did touch this recently (on FreeBSD which uses clang as system compiler). I did try

Re: [Valgrind-users] Question: bug in user code, valgrind or glibc?

2022-05-20 Thread Floyd, Paul
Hi Chiaki Debugging redirection issues isn't normally too slow. Redirection is done when Valgrind loads the guest executable and libraries. Run Valgrind with --trace-redir=yes and you should see Valgrind printing what it finds in * ld.so, the link loader * the client executable * the

Re: [Valgrind-users] Question: bug in user code, valgrind or glibc?

2022-05-11 Thread Floyd, Paul
Hi Can you give us the source of the small reproducer the versions of Valgrind, Debian, GCC and glibc? As you mention, functions like strncmp are often optimized to work on multiple bytes at a time and to take advantage of the fact that memory will always be allocated in a multiple of say 8

Re: [Valgrind-users] *** SPAM *** Helgrind and Meyers' singletons

2022-03-01 Thread Floyd, Paul
On 2022-02-22 17:28, Norbert Reher wrote: So I was searching the mailing list for a possible work around to reduce the number of false/positives reported and found a mail (with identical subject) from Adriaan Schmidt dated 2016-11-28 14:42:43. Not an answer, but just for reference the

Re: [Valgrind-users] Application doesn't leak memory running valgrind

2022-02-28 Thread Floyd, Paul
On 2022-02-28 17:28, Stefano Antonelli wrote: Hello list, I have a Qml application that leaks memory when run normally. I've reduced it to a very simple Qml app and it still leaks. And the leak is visible with pmap almost immediately. The application runs on an embedded device (armhf).

Re: [Valgrind-users] pthread_mutex_destroy with invalid argument

2021-12-22 Thread Floyd, Paul
On 2021-12-21 20:07, Casey Waldren via Valgrind-users wrote: Hello, I am running into the following errors when running helgrind on a C++ binary built with googletest. The host is Ubuntu 20.04. The invocation is: valgrind --tool=helgrind --error-exitcode=100 ./tests/google_tests The

Re: [Valgrind-users] Info message

2021-12-15 Thread Floyd, Paul
Could you help me to understand if I'm wronging something ? Hi This probably just means that libgcrypt is allocating some memory that it doesn't free. It's called in _dl_init, when the library is loaded) so it is most likely a one-off allocation and not dangerous. You have 2 choices.