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

2024-06-15 Thread Thomas Wollenzin
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 time understanding what the exact item is that's bein

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

2024-06-15 Thread David Chapman via Valgrind-users
On 6/15/2024 10:38 AM, 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 ti

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

2024-06-15 Thread Nicholas Nethercote
Hi, Re-run with the *--track-origins=yes *flag enabled and it will give you more detail about where the uninitialized value comes from. (That option isn't on by default because it makes Valgrind run more slowly.) Nick On Sun, 16 Jun 2024 at 06:13, Thomas Wollenzin wrote: > Hi, > > I'm not too

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

2024-06-15 Thread John Reiser
Is there a way to have Valgrind tell me what type exactly has the uninitialised field or at best break at the time this exact incident occurs? For over two decades I have asked for a mode which complains at the instant that an uninit bit is fetched from memory. The usual excuse of valgrind impl

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

2024-06-15 Thread John Reiser
Also note that malloc()+memset() can choose byte values other than 0; . A value such as 0xA5 can increase visual effectiveness of memory dumps. Also note that there is a feature of glibc malloc() such that the shell environment variable MALLOC_PERTURN_=NNN (note the trailing underscore) MALLO

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