Debian Codegraph @

NEWS

raw
1 Release 3.25.1 (20 May 2025)
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
4 This point release contains only bug fixes.
5
6 * ==================== FIXED BUGS ====================
7
8 The following bugs have been fixed or resolved in this point release.
9
10 503098 Incorrect NAN-boxing for float registers in RISC-V
11 503641 close_range syscalls started failing with 3.25.0
12 503914 mount syscall param filesystemtype may be NULL
13 504177 FILE DESCRIPTORS banner shows when closing some inherited fds
14 504265 FreeBSD: missing syscall wrappers for fchroot and setcred
15 504466 Double close causes SEGV
16
17 To see details of a given bug, visit
18 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
19 where XXXXXX is the bug number as listed above.
20
21
22 Release 3.25.0 (25 Apr 2025)
23 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
25 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
26 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
27 MIPS64/Linux, RISCV64/Linux, ARM/Android, ARM64/Android, MIPS32/Android,
28 X86/Android, X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD,
29 AMD64/FreeBSD and ARM64/FreeBSD There is also preliminary support for
30 X86/macOS 10.13, AMD64/macOS 10.13 and nanoMIPS/Linux.
31
32 * ==================== CORE CHANGES ===================
33
34 * The valgrind gdbserver now supports the GDB remote protocol packet
35 'x addr,len' (available in GDB release >= 16).
36 The x packet can reduce the time taken by GDB to read memory from valgrind.
37
38 * Valgrind now supports zstd compressed debug sections.
39
40 * The Linux Test Project (ltp) is integrated in the testsuite try
41 'make ltpchecks' (this will take a while and will point out various
42 missing syscalls and valgrind crashes!)
43
44 * ================== PLATFORM CHANGES =================
45
46 * Added RISCV64 support for Linux. Specifically for the RV64GC
47 instruction set.
48
49 * Numerous bug fixes for Illumos, in particular fixed a Valgrind crash
50 whenever a signal handler was called.
51
52 * On FreeBSD, a change to the libc code that runs atexit handlers was
53 causing Helgrind to produce an extra error about exiting threads
54 still holding locks for. This applied to every multithreaded application.
55 The extra error is now filtered out. A syscall wrapper had been added
56 for getrlimitusage.
57
58 * On Linux various new syscalls are supported (landlock*, io_pgetevents,
59 open_tree, move_mount, fsopen, fsconfig, fsmount, fspick, userfaultfd).
60
61 * s390x has support for various new instructions (BPP, BPRP, PPA and NIAI).
62
63 * ==================== TOOL CHANGES ===================
64
65 * The --track-fds=yes and --track-fds=all options now treat all
66 inherited file descriptors the same as 0, 1, 2 (stdin/out/err).
67 And when the stdin/out/err descriptors are reassigned they are
68 now treated as normal (non-inherited) file descriptors.
69
70 * A new option --modify-fds=high can be used together with
71 --track-fds=yes to create new file descriptors with the highest
72 possible number (and then decreasing) instead of always using the
73 lowest possible number (which is required by POSIX). This will help
74 catch issues where a file descriptor number might normally be reused
75 between a close and another open call.
76
77 * Helgrind:
78 There is a change to warnings about calls to pthread_cond_signal and
79 pthread_cond_broadcast when the associated mutex is unlocked. Previously
80 Helgrind would always warn about this. Now this error is controlled by
81 a command line option, --check-cond-signal-mutex=yes|no. The default is
82 no. This change has been made because some C and C++ standard libraries
83 use pthread_cond_signal/pthread_cond_broadcast in this way. Users are
84 obliged to use suppressions if they wish to avoid this noise.
85
86 * ==================== FIXED BUGS ====================
87
88 The following bugs have been fixed or resolved. Note that "n-i-bz"
89 stands for "not in bugzilla" -- that is, a bug that was reported to us
90 but never got a bugzilla entry. We encourage you to file bugs in
91 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
92 than mailing the developers (or mailing lists) directly -- bugs that
93 are not entered into bugzilla tend to get forgotten about or ignored.
94
95 290061 pie elf always loaded at 0x108000
96 396415 Valgrind is not looking up $ORIGIN rpath of shebang programs
97 420682 io_pgetevents is not supported
98 468575 Add support for RISC-V
99 469782 Valgrind does not support zstd-compressed debug sections
100 487296 --track-fds=yes and --track-fds=all report erroneous information
101 when fds 0, 1, or 2 are used as non-std
102 489913 WARNING: unhandled amd64-linux syscall: 444 (landlock_create_ruleset)
103 493433 Add --modify-fds=[no|high] option
104 494246 syscall fsopen not wrapped
105 494327 Crash when running Helgrind built with #define TRACE_PTH_FNS 1
106 494337 All threaded applications cause still holding lock errors
107 495488 Add FreeBSD getrlimitusage syscall wrapper
108 495816 s390x: Fix disassembler segfault for C[G]RT and CL[G]RT
109 495817 s390x: Disassembly to match objdump -d output
110 496370 Illumos: signal handling is broken
111 496571 False positive for null key passed to bpf_map_get_next_key syscall.
112 496950 s390x: Fix hardware capabilities and EmFail codes
113 497130 Recognize new DWARF5 DW_LANG constants
114 497455 Update drd/scripts/download-and-build-gcc
115 497723 Enabling Ada demangling breaks callgrind differentiation between
116 overloaded functions and procedures
117 498037 s390x: Add disassembly checker
118 498143 False positive on EVIOCGRAB ioctl
119 498317 FdBadUse is not a valid CoreError type in a suppression
120 even though it's generated by --gen-suppressions=yes
121 498421 s390x: support BPP, BPRP and NIAI insns
122 498422 s390x: Fix VLRL and VSTRL insns
123 498492 none/tests/amd64/lzcnt64 crashes on FreeBSD compiled with clang
124 498629 s390x: Fix S[L]HHHR and S[L]HHLR insns
125 498632 s390x: Fix LNGFR insn
126 498942 s390x: Rework s390_disasm interface
127 499183 FreeBSD: differences in avx-vmovq output
128 499212 mmap() with MAP_ALIGNED() returns unaligned pointer
129 501119 memcheck/tests/pointer-trace fails when run on NFS filesystem
130 501194 Fix ML_(check_macho_and_get_rw_loads) so that it is correct for
131 any number of segment commands
132 501348 glibc built with -march=x86-64-v3 does not work due to ld.so memcmp
133 501479 Illumos DRD pthread_mutex_init wrapper errors
134 501365 syscall userfaultfd not wrapped
135 501846 Add x86 Linux shm wrappers
136 501850 FreeBSD syscall arguments 7 and 8 incorrect.
137 501893 Missing suppression for __wcscat_avx2 (strcat-strlen-avx2.h.S:68)?
138 502126 glibc 2.41 extra syscall_cancel frames
139 502288 s390x: Memcheck false positives with NNPA last tensor dimension
140 502324 s390x: Memcheck false positives with TMxx and TM/TMY
141 502679 Use LTP for testing valgrind
142 502871 Make Helgrind "pthread_cond_{signal,broadcast}: dubious: associated
143 lock is not held by any thread" optional
144
145 To see details of a given bug, visit
146 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
147 where XXXXXX is the bug number as listed above.
148
149 (3.25.0.RC1: 18 Apr 2025)
150 (3.25.0.RC2: 23 Apr 2025)
151
152 Release 3.24.0 (31 Oct 2024)
153 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154
155 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
156 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
157 MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
158 X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD, AMD64/FreeBSD
159 and ARM64/FreeBSD There is also preliminary support for X86/macOS 10.13,
160 AMD64/macOS 10.13 and nanoMIPS/Linux.
161
162 * ==================== CORE CHANGES ===================
163
164 * Bad file descriptor usage now generates a real error with
165 --track-fds=yes that is suppressible and shows up in the xml output
166 with full execution backtrace. The warnings shown without using the
167 option are deprecated and will be removed in a future valgrind
168 version.
169
170 * Ada name demangling is now supported in error messages.
171
172 * ================== PLATFORM CHANGES =================
173
174 * S390X added support for the DFLTCC instruction provided by the
175 deflate-conversion facility (z15/arch13).
176
177 * S390X added support for the instructions provided by the MSA facility
178 and MSA extensions 1-9.
179
180 * ==================== TOOL CHANGES ===================
181
182 * ==================== FIXED BUGS ====================
183
184 The following bugs have been fixed or resolved. Note that "n-i-bz"
185 stands for "not in bugzilla" -- that is, a bug that was reported to us
186 but never got a bugzilla entry. We encourage you to file bugs in
187 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
188 than mailing the developers (or mailing lists) directly -- bugs that
189 are not entered into bugzilla tend to get forgotten about or ignored.
190
191 202770 open fd at exit --log-socket=127.0.0.1:1500 with --track-fds=yes
192 276780 An instruction in fftw (Fast Fourier Transform) is unhandled by
193 valgrind: vex x86->IR: unhandled instruction bytes:
194 0x66 0xF 0x3A 0x2
195 311655 --log-file=FILE leads to apparent fd leak
196 317127 Fedora18/x86_64 --sanity-level=3 : aspacem segment mismatch
197 337388 fcntl works on Valgrind's own file descriptors
198 377966 arm64 unhandled instruction dc zva392146 aarch64: unhandled
199 instruction 0xD5380001 (MRS rT, midr_el1)
200 391148 Unhandled AVX instruction vmovq %xmm9,%xmm1
201 392146 aarch64: unhandled instruction 0xD5380001 (MRS rT, midr_el1)
202 412377 SIGILL on cache flushes on arm64
203 417572 vex amd64->IR: unhandled instruction bytes: 0xC5 0x79 0xD6 0xED 0xC5
204 440180 s390x: Failed assertion in disassembler
205 444781 MIPS: wrong syscall numbers used
206 447989 Support Armv8.2 SHA-512 instructions
207 445235 Java/Ada/D demangling is probably broken
208 453044 gbserver_tests failures in aarch64
209 479661 Valgrind leaks file descriptors
210 486180 [Valgrind][MIPS] 'VexGuestArchState' has no member named
211 'guest_IP_AT_SYSCALL'
212 486293 memccpy false positives
213 486569 linux inotify_init syscall wrapper missing POST entry in syscall_table
214 487439 SIGILL in JDK11, JDK17
215 487993 Alignment error when using Eigen with Valgrind and -m32
216 488026 Use of `sizeof` instead of `strlen
217 488379 --track-fds=yes errors that cannot be suppressed with --xml-file=
218 488441 Add tests for --track-fds=yes --xml=yes and fd suppression tests
219 489040 massif trace change to show the location increasing the stack
220 489088 Valgrind throws unhandled instruction bytes: 0xC5 0x79 0xD6 0xE0 0xC5
221 489338 arm64: Instruction fcvtas should round 322.5 to 323, but result is 322.
222 489676 vgdb handle EINTR and EAGAIN more consistently
223 490651 Stop using -flto-partition=one
224 491394 (vgModuleLocal_addDiCfSI): Assertion 'di->fsm.have_rx_map &&
225 di->fsm.rw_map_count' failed
226 492210 False positive on x86/amd64 with ZF taken directly from addition
227 492214 statx(fd, NULL, AT_EMPTY_PATH) is supported since Linux 6.11
228 but not supported in valgrind
229 492422 Please support DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD
230 492663 Valgrind ignores debug info for some binaries
231 493418 Add bad fd usage errors for --track-fds in ML_(fd_allowed)
232 493454 Missing FUSE_COMPATIBLE_MAY_BLOCK markers
233 493507 direct readlink syscall from PRE handler is incompatible with
234 FUSE_COMPATIBLE_MAY_BLOCK
235 493959 s390x: Fix regtest failure for none/tests/s390x/op00
236 493970 s390x: Store/restore FPC upon helper call causes slowdown
237 494218 Remove FREEBSD_VERS from configure and build
238 494252 s390x: incorrect disassembly for LOCHI and friends
239 494960 Fixes and tweaks for gsl19test
240 495278 PowerPC instruction dcbf should allow the L field values of 4, 6 on
241 ISA 3.0 and earlier, just ignore the value
242 495469 aligned_alloc and posix_memalign missing MALLOC_TRACE with returned
243 pointer
244 495470 s390x: 3.24.0.RC1 missing file and regtest failure
245 n-i-bz Improve messages for sigaltstack errors, use specific
246 stack_t member names
247
248 To see details of a given bug, visit
249 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
250 where XXXXXX is the bug number as listed above.
251
252 (3.24.0.RC1: 27 Oct 2024)
253
254
255 Release 3.23.0 (26 Apr 2024)
256 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
257
258 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
259 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
260 MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
261 X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD, AMD64/FreeBSD
262 and ARM64/FreeBSD There is also preliminary support for X86/macOS 10.13,
263 AMD64/macOS 10.13 and nanoMIPS/Linux.
264
265 * ==================== CORE CHANGES ===================
266
267 * --track-fds=yes will now also warn about double closing of file
268 descriptors. Printing the context where the file descriptor was
269 originally opened and where it was previously closed.
270
271 * --track-fds=yes also produces "real" errors now which can be
272 suppressed and work with --error-exitcode. When combined with
273 --xml the xml-output now also includes FdBadClose and FdNotClosed
274 error kinds (see docs/internals/xml-output-protocol5.txt).
275
276 * The option --show-error-list=no|yes now accepts a new value all.
277 This indicates to also print the suppressed errors.
278 This is useful to analyse which errors are suppressed by which
279 suppression entries.
280 The valgrind monitor command 'v.info all_errors' similarly now
281 accepts a new optional argument 'also_suppressed' to show
282 all errors including the suppressed errors.
283
284 * ================== PLATFORM CHANGES =================
285
286 * Added ARM64 support for FreeBSD.
287
288 * ARM64 now supports dotprod instructions (sdot/udot).
289
290 * AMD64 better supports code build with -march=x86-64-v3.
291 fused-multiple-add instructions (fma) are now emulated more
292 accurately. And memcheck now handles __builtin_strcmp using 128/256
293 bit vectors with sse4.1, avx/avx2.
294
295 * S390X added support for NNPA (neural network processing assist)
296 facility vector instructions VCNF, VCLFNH, VCFN, VCLFNL, VCRNF and
297 NNPA (z16/arch14).
298
299 * X86 recognizes new binutils-2.42 nop patterns.
300
301 * ==================== TOOL CHANGES ===================
302
303 * The none tool now also supports xml output.
304
305 * ==================== FIXED BUGS ====================
306
307 The following bugs have been fixed or resolved. Note that "n-i-bz"
308 stands for "not in bugzilla" -- that is, a bug that was reported to us
309 but never got a bugzilla entry. We encourage you to file bugs in
310 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
311 than mailing the developers (or mailing lists) directly -- bugs that
312 are not entered into bugzilla tend to get forgotten about or ignored.
313
314
315 283429 ARM leak checking needs CLEAR_CALLER_SAVED_REGS
316 281059 Cannot connect to Oracle using valgrind
317 328563 make track-fds support xml output
318 362680 --error-exitcode not honored when file descriptor leaks are found
319 369723 __builtin_longjmp not supported in clang/llvm on Android arm64 target
320 390269 unhandled amd64-darwin syscall: unix:464 (openat_nocancel)
321 401284 False positive "Source and destination overlap in strncat"
322 428364 Signals inside io_uring_enter not handled
323 437790 valgrind reports "Conditional jump or move depends on uninitialised
324 value" in memchr of macOS 10.12-10.15
325 460616 disInstr(arm64): unhandled instruction 0x4E819402 (dotprod/ASIMDDP)
326 463458 memcheck/tests/vcpu_fnfns fails when glibc is built for x86-64-v3
327 463463 none/tests/amd64/fma fails when executed on a x86-64-v3 system
328 466762 Add redirs for C23 free_sized() and free_aligned_sized()
329 466884 Missing writev uninit padding suppression for _XSend
330 471036 disInstr_AMD64: disInstr miscalculated next %rip on RORX imm8, m32/64, r32/6
331 471222 support tracking of file descriptors being double closed
332 474160 If errors-for-leak-kinds is specified, exit-on-first-error should only exit
333 on one of the listed errors.
334 475498 Add reallocarray wrapper
335 476025 Vbit expected test results for Iop_CmpGT64Ux2 are wrong
336 476320 Build failure with GCC
337 476331 clean up generated/distributed filter scripts
338 476535 Difference in allocation size for massif/tests/overloaded-new between
339 clang++/libc++ and g++/libstdc++
340 476548 valgrind 3.22.0 fails on assertion when loading debuginfo file
341 produced by mold
342 476708 valgrind-monitor.py regular expressions should use raw strings
343 476780 Extend strlcat and strlcpy wrappers to GNU libc
344 476787 Build of Valgrind 3.21.0 fails when SOLARIS_PT_SUNDWTRACE_THRP is
345 defined
346 476887 WARNING: unhandled amd64-freebsd syscall: 578
347 477198 Add fchmodat2 syscall on linux
348 477628 Add mremap support for Solaris
349 477630 Include ucontext.h rather than sys/ucontext.h in Solaris sources
350 477719 vgdb incorrectly replies to qRcmd packet
351 478211 Redundant code for vgdb.c and Valgrind core tools
352 478624 Valgrind incompatibility with binutils-2.42 on x86 with new nop patterns
353 (unhandled instruction bytes: 0x2E 0x8D 0xB4 0x26
354 478837 valgrind fails to read debug info for rust binaries
355 479041 Executables without RW sections do not trigger debuginfo reading
356 480052 WARNING: unhandled amd64-freebsd syscall: 580
357 480126 Build failure on Raspberry Pi 5 / OS 6.1.0-rpi7-rpi-v8
358 480405 valgrind 3.22.0 "m_debuginfo/image.c:586 (set_CEnt):
359 Assertion '!sr_isError(sr)' failed."
360 480488 Add support for FreeBSD 13.3
361 480706 Unhandled syscall 325 (mlock2)
362 481127 amd64: Implement VFMADD213 for Iop_MAddF32
363 481131 [PATCH] x86 regtest: fix clobber lists in generated asm statements
364 481676 Build failure on Raspberry Pi 5 Ubuntu 23.10 with clang
365 481874 Add arm64 support for FreeBSD
366 483786 Incorrect parameter indexing in FreeBSD clock_nanosleep syscall wrapper
367 484002 Add suppression for invalid read in glibc's __wcpncpy_avx2() via wcsxfrm()
368 484426 aarch64: 0.5 gets rounded to 0
369 484480 False positives when using sem_trywait
370 484935 [patch] Valgrind reports false "Conditional jump or move depends on
371 uninitialised value" errors for aarch64 signal handlers
372 485148 vfmadd213ss instruction is instrumented incorrectly (the remaining
373 part of the register is cleared instead of kept unmodified)
374 485487 glibc built with -march=x86-64-v3 does not work due to ld.so strcmp
375 485778 Crash with --track-fds=all and --gen-suppressions=all
376 n-i-bz Add redirect for memccpy
377
378 To see details of a given bug, visit
379 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
380 where XXXXXX is the bug number as listed above.
381
382 (3.23.0.RC1: 19 Apr 2024)
383 (3.23.0.RC2: 24 Apr 2024)
384
385 Release 3.22.0 (31 Oct 2023)
386 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
387
388 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
389 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
390 MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
391 X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD and
392 AMD64/FreeBSD. There is also preliminary support for X86/macOS 10.13,
393 AMD64/macOS 10.13 and nanoMIPS/Linux.
394
395 * ==================== CORE CHANGES ===================
396
397 * A new configure option --with-gdbscripts-dir lets you install
398 the gdb valgrind python monitor scripts in a specific location.
399 For example a distro could use it to install the scripts in a
400 safe load location --with-gdbscripts-dir=%{_datadir}/gdb/auto-load
401 It is also possible to configure --without-gdb-scripts-dir so no
402 .debug_gdb_scripts section is added to the vgpreload library and
403 no valgrind-monitor python scripts are installed at all.
404
405 * ================== PLATFORM CHANGES =================
406
407 * Support has been added for FreeBSD 14 and FreeBSD 15.
408 * Add support for the folllowing FreeBSD system calls:
409 close_range, kqueuex, membarrier, timerfd_create,
410 timerfd_settime and timerfd_gettime (all added in FreeBSD 15).
411
412 * ==================== TOOL CHANGES ===================
413
414 * Memcheck now tests and warns about the values used for
415 alignment and size. These apply to various functions: memalign,
416 posix_memalign and aligned_alloc in C and various overloads
417 of operators new and delete in C++. The kinds of error that can
418 be detected are
419 - invalid alignment, for instance the alignment is usually required
420 to be a power of 2
421 - mismatched alignment between aligned allocation and aligned
422 deallocation
423 - mismatched size when sized delete is used
424 - bad size for functions that have implementation defined behaviour
425 when the requested size is zero
426
427 * Cachegrind:
428 - You can now profile part of a program's execution using the new
429 `CACHEGRIND_START_INSTRUMENTATION` and `CACHEGRIND_STOP_INSTRUMENTATION`
430 client requests, along with the new `--instr-at-start` option. The
431 behaviour is the same as Callgrind's equivalent functionality.
432
433 * ==================== FIXED BUGS ====================
434
435 The following bugs have been fixed or resolved. Note that "n-i-bz"
436 stands for "not in bugzilla" -- that is, a bug that was reported to us
437 but never got a bugzilla entry. We encourage you to file bugs in
438 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
439 than mailing the developers (or mailing lists) directly -- bugs that
440 are not entered into bugzilla tend to get forgotten about or ignored.
441
442 390871 ELF debug info reader confused with multiple .rodata* sections
443 417993 vbit-test fail on s390x with Iop_Add32: spurious dependency on uninit
444 426751 Valgrind reports "still reachable" memory using musl
445 (alpine running inside docker)
446 432801 Valgrind 3.16.1 reports a jump based on uninitialized memory somehow
447 related to clang and signals
448 433857 Add validation to C++17 aligned new/delete alignment size
449 433859 Add mismatched detection to C++ 17 aligned new/delete
450 460192 Add epoll_pwait2
451 461074 DWARF2 CFI reader: unhandled DW_OP_ 0x11 (consts) DW_OP_ 0x92 (bregx)
452 465782 s390x: Valgrind doesn't compile with Clang on s390x
453 466105 aligned_alloc problems, part 2
454 467441 Add mismatched detection to C++ 14 sized delete
455 469049 link failure on ppc64 (big endian) valgrind 3.20
456 469146 massif --ignore-fn does not ignore inlined functions
457 469768 Make it possible to install gdb scripts in a different location
458 470121 Can't run callgrind_control with valgrind 3.21.0 because of perl errors
459 470132 s390x: Assertion failure on VGM instruction
460 470520 Multiple realloc zero errors crash in MC_(eq_Error)
461 470713 Failure on the Yosys project: valgrind: m_libcfile.c:1802
462 (Bool vgPlain_realpath(const HChar *, HChar *)):
463 Assertion 'resolved' failed
464 470830 Don't print actions vgdb me ... continue for vgdb --multi mode
465 470978 s390x: Valgrind cannot start qemu-kvm when "sysctl vm.allocate_pgste=0"
466 471311 gdb --multi mode stdout redirecting to stderr
467 471807 Add support for lazy reading and downloading of DWARF debuginfo
468 472219 Syscall param ppoll(ufds.events) points to uninitialised byte(s)
469 472875 none/tests/s390x/dfp-1 failure
470 472963 Broken regular expression in configure.ac
471 473604 Fix bug472219.c compile failure with Clang 16
472 473677 make check compile failure with Clang 16 based on GCC 13.x
473 473745 must-be-redirected function - strlen
474 473870 FreeBSD 14 applications fail early at startup
475 473944 Handle mold linker split RW PT_LOAD segments correctly
476 474332 aligned_alloc under Valgrind returns nullptr when alignment is not a multiple of sizeof(void *)
477 475650 DRD does not work with C11 threads
478 475652 Missing suppression for __wcsncpy_avx2 (strncpy-avx2.S:308)?
479 476108 vg_replace_malloc DELETE checks size
480 n-i-bz Allow arguments with spaces in .valgrindrc files
481 n-i-bz FreeBSD fixed reading of Valgrind tools own debuginfo
482
483 To see details of a given bug, visit
484 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
485 where XXXXXX is the bug number as listed above.
486
487 (3.22.0.RC1: 17 Oct 2023)
488 (3.22.0.RC2: 26 Oct 2023)
489
490 Release 3.21.0 (28 Apr 2023)
491 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
492
493 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
494 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
495 MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
496 X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD and
497 AMD64/FreeBSD. There is also preliminary support for X86/macOS 10.13,
498 AMD64/macOS 10.13 and nanoMIPS/Linux.
499
500 * ==================== CORE CHANGES ===================
501
502 * When GDB is used to debug a program running under valgrind using
503 the valgrind gdbserver, GDB will automatically load some
504 python code provided in valgrind defining GDB front end commands
505 corresponding to the valgrind monitor commands.
506 These GDB front end commands accept the same format as
507 the monitor commands directly sent to the Valgrind gdbserver.
508 These GDB front end commands provide a better integration
509 in the GDB command line interface, so as to use for example
510 GDB auto-completion, command specific help, searching for
511 a command or command help matching a regexp, ...
512 For relevant monitor commands, GDB will evaluate arguments
513 to make the use of monitor commands easier.
514 For example, instead of having to print the address of a variable
515 to pass it to a subsequent monitor command, the GDB front end
516 command will evaluate the address argument. It is for example
517 possible to do:
518 (gdb) memcheck who_points_at &some_struct sizeof(some_struct)
519 instead of:
520 (gdb) p &some_struct
521 $2 = (some_struct_type *) 0x1130a0 <some_struct>
522 (gdb) p sizeof(some_struct)
523 $3 = 40
524 (gdb) monitor who_point_at 0x1130a0 40
525
526 * The vgdb utility now supports extended-remote protocol when
527 invoked with --multi. In this mode the GDB run command is
528 supported. Which means you don't need to run gdb and valgrind
529 from different terminals. So for example to start your program
530 in gdb and run it under valgrind you can do:
531 $ gdb prog
532 (gdb) set remote exec-file prog
533 (gdb) set sysroot /
534 (gdb) target extended-remote | vgdb --multi
535 (gdb) start
536
537 * The behaviour of realloc with a size of zero can now
538 be changed for tools that intercept malloc. Those
539 tools are memcheck, helgrind, drd, massif and dhat.
540 Realloc implementations generally do one of two things
541 - free the memory like free() and return NULL
542 (GNU libc and ptmalloc).
543 - either free the memory and then allocate a
544 minimum sized block or just return the
545 original pointer. Return NULL if the
546 allocation of the minimum sized block fails
547 (jemalloc, musl, snmalloc, Solaris, macOS).
548 When Valgrind is configured and built it will
549 try to match the OS and libc behaviour. However
550 if you are using a non-default library to replace
551 malloc and family (e.g., musl on a glibc Linux or
552 tcmalloc on FreeBSD) then you can use a command line
553 option to change the behaviour of Valgrind:
554 --realloc-zero-bytes-frees=yes|no [yes on Linux glibc, no otherwise]
555
556 * ================== PLATFORM CHANGES =================
557
558 * Make the address space limit on FreeBSD amd64 128Gbytes
559 (the same as Linux and Solaris, it was 32Gbytes)
560
561 * ==================== TOOL CHANGES ===================
562
563 * Memcheck:
564 - When doing a delta leak_search, it is now possible to only
565 output the new loss records compared to the previous leak search.
566 This is available in the memcheck monitor command 'leak_search'
567 by specifying the "new" keyword or in your program by using
568 the client request VALGRIND_DO_NEW_LEAK_CHECK.
569 Whenever a "delta" leak search is done (i.e. when specifying
570 "new" or "increased" or "changed" in the monitor command),
571 the new loss records have a "new" marker.
572 - Valgrind now contains python code that defines GDB memcheck
573 front end monitor commands. See CORE CHANGES.
574 - Performs checks for the use of realloc with a size of zero.
575 This is non-portable and a source of errors. If memcheck
576 detects such a usage it will generate an error
577 realloc() with size 0
578 followed by the usual callstacks.
579 A switch has been added to allow this to be turned off:
580 --show-realloc-size-zero=yes|no [yes]
581
582 * Helgrind:
583 - The option ---history-backtrace-size=<number> allows to configure
584 the number of entries to record in the stack traces of "old"
585 accesses. Previously, this number was hardcoded to 8.
586 - Valgrind now contains python code that defines GDB helgrind
587 front end monitor commands. See CORE CHANGES.
588
589 * Cachegrind:
590 - `--cache-sim=no` is now the default. The cache simulation is old and
591 unlikely to match any real modern machine. This means only the `Ir`
592 event are gathered by default, but that is by far the most useful
593 event.
594 - `cg_annotate`, `cg_diff`, and `cg_merge` have been rewritten in
595 Python. As a result, they all have more flexible command line
596 argument handling, e.g. supporting `--show-percs` and
597 `--no-show-percs` forms as well as the existing `--show-percs=yes`
598 and `--show-percs=no`.
599 - `cg_annotate` has some functional changes.
600 - It's much faster, e.g. 3-4x on common cases.
601 - It now supports diffing (with `--diff`, `--mod-filename`, and
602 `--mod-funcname`) and merging (by passing multiple data files).
603 - It now provides more information at the file and function level.
604 There are now "File:function" and "Function:file" sections. These
605 are very useful for programs that use inlining a lot.
606 - Support for user-annotated files and the `-I`/`--include` option
607 has been removed, because it was of little use and blocked other
608 improvements.
609 - The `--auto` option is renamed `--annotate`, though the old
610 `--auto=yes`/`--auto=no` forms are still supported.
611 - `cg_diff` and `cg_merge` are now deprecated, because `cg_annotate`
612 now does a better job of diffing and merging.
613 - The Cachegrind output file format has changed very slightly, but in
614 ways nobody is likely to notice.
615
616 * Callgrind:
617 - Valgrind now contains python code that defines GDB callgrind
618 front end monitor commands. See CORE CHANGES.
619
620 * Massif:
621 - Valgrind now contains python code that defines GDB massif
622 front end monitor commands. See CORE CHANGES.
623
624 * DHAT:
625 - A new kind of user request has been added which allows you to
626 override the 1024 byte limit on access count histograms for blocks
627 of memory. The client request is DHAT_HISTOGRAM_MEMORY.
628
629 * ==================== FIXED BUGS ====================
630
631 The following bugs have been fixed or resolved. Note that "n-i-bz"
632 stands for "not in bugzilla" -- that is, a bug that was reported to us
633 but never got a bugzilla entry. We encourage you to file bugs in
634 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
635 than mailing the developers (or mailing lists) directly -- bugs that
636 are not entered into bugzilla tend to get forgotten about or ignored.
637
638 170510 Don't warn about ioctl of size 0 without direction hint
639 241072 List tools in --help output
640 327548 false positive while destroying mutex
641 382034 Testcases build fixes for musl
642 351857 confusing error message about valid command line option
643 374596 inconsistent RDTSCP support on x86_64
644 392331 Spurious lock not held error from inside pthread_cond_timedwait
645 397083 Likely false positive "uninitialised value(s)" for __wmemchr_avx2 and __wmemcmp_avx2_movbe
646 400793 pthread_rwlock_timedwrlock false positive
647 419054 Unhandled syscall getcpu on arm32
648 433873 openat2 syscall unimplemented on Linux
649 434057 Add stdio mode to valgrind's gdbserver
650 435441 valgrind fails to interpose malloc on musl 1.2.2 due to weak symbol name and no libc soname
651 436413 Warn about realloc of size zero
652 439685 compiler warning in callgrind/main.c
653 444110 priv/guest_ppc_toIR.c:36198:31: warning: duplicated 'if' condition.
654 444487 hginfo test detects an extra lock inside data symbol "_rtld_local"
655 444488 Use glibc.pthread.stack_cache_size tunable
656 444568 drd/tests/pth_barrier_thr_cr fails on Fedora 38
657 445743 "The impossible happened: mutex is locked simultaneously by two threads"
658 while using mutexes with priority inheritance and signals
659 449309 Missing loopback device ioctl(s)
660 459476 vgdb: allow address reuse to avoid "address already in use" errorsuse" errors
661 460356 s390: Sqrt32Fx4 -- cannot reduce tree
662 462830 WARNING: unhandled amd64-freebsd syscall: 474
663 463027 broken check for MPX instruction support in assembler
664 464103 Enhancement: add a client request to DHAT to mark memory to be histogrammed
665 464476 Firefox fails to start under Valgrind
666 464609 Valgrind memcheck should support Linux pidfd_open
667 464680 Show issues caused by memory policies like selinux deny_execmem
668 464859 Build failures with GCC-13 (drd tsan_unittest)
669 464969 D language demangling
670 465435 m_libcfile.c:66 (vgPlain_safe_fd): Assertion 'newfd >= VG_(fd_hard_limit)' failed.
671 466104 aligned_alloc problems, part 1
672 467036 Add time cost statistics for Regtest
673 467482 Build failure on aarch64 Alpine
674 467714 fdleak_* and rlimit tests fail when parent process has more than
675 64 descriptors opened
676 467839 Gdbserver: Improve compatibility of library directory name
677 468401 [PATCH] Add a style file for clang-format
678 468556 Build failure for vgdb
679 468606 build: remove "Valgrind relies on GCC" check/output
680 469097 ppc64(be) doesn't support SCV syscall instruction
681 n-i-bz FreeBSD rfork syscall fail with EINVAL or ENOSYS rather than VG_(unimplemented)
682
683 To see details of a given bug, visit
684 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
685 where XXXXXX is the bug number as listed above.
686
687 * ==================== KNOWN ISSUES ===================
688
689 * configure --enable-lto=yes is know to not work in all setups.
690 See bug 469049. Workaround: Build without LTO.
691
692 (3.21.0.RC1: 14 Apr 2023)
693 (3.21.0.RC2: 21 Apr 2023)
694
695 Release 3.20.0 (24 Oct 2022)
696 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
697
698 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
699 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
700 MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
701 X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD and
702 AMD64/FreeBSD. There is also preliminary support for X86/macOS 10.13,
703 AMD64/macOS 10.13 and nanoMIPS/Linux.
704
705 * ==================== CORE CHANGES ===================
706
707 * The option "--vgdb-stop-at=event1,event2,..." accepts the new value abexit.
708 This indicates to invoke gdbserver when your program exits abnormally
709 (i.e. with a non zero exit code).
710 * Fix Rust v0 name demangling.
711 * The Linux rseq syscall is now implemented as (silently) returning ENOSYS.
712 * Add FreeBSD syscall wrappers for __specialfd and __realpathat.
713 * Remove FreeBSD dependencies on COMPAT10, which fixes compatibility with
714 HardenedBSD
715 * The option --enable-debuginfod=<no|yes> [default: yes] has been added on
716 Linux.
717 * More DWARF5 support as generated by clang14.
718
719 * ==================== FIXED BUGS ====================
720
721 The following bugs have been fixed or resolved. Note that "n-i-bz"
722 stands for "not in bugzilla" -- that is, a bug that was reported to us
723 but never got a bugzilla entry. We encourage you to file bugs in
724 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
725 than mailing the developers (or mailing lists) directly -- bugs that
726 are not entered into bugzilla tend to get forgotten about or ignored.
727
728 131186 writev reports error in (vector[...])
729 434764 iconv_open causes ld.so v2.28+ to use optimised strncmp
730 446754 Improve error codes from alloc functions under memcheck
731 452274 memcheck crashes with Assertion 'sci->status.what == SsIdle' failed
732 452779 Valgrind fails to build on FreeBSD 13.0 with llvm-devel (15.0.0)
733 453055 shared_timed_mutex drd test fails with "Lock shared failed" message
734 453602 Missing command line option to enable/disable debuginfod
735 452802 Handle lld 9+ split RW PT_LOAD segments correctly
736 454040 s390x: False-positive memcheck:cond in memmem on arch13 systems
737 456171 [PATCH] FreeBSD: Don't record address errors when accessing the 'kern.ps_strings' sysctl struct
738 n-i-bz Implement vgdb invoker on FreeBSD
739 458845 PowerPC: The L field for the dcbf and sync instruction should be
740 3 bits in ISA 3.1.
741 458915 Remove register cache to fix 458915 gdbserver causes wrong syscall return
742 459031 Documentation on --error-exitcode incomplete
743 459477 XERROR messages lacks ending '\n' in vgdb
744 462007 Implicit int in none/tests/faultstatus.c
745
746 To see details of a given bug, visit
747 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
748 where XXXXXX is the bug number as listed above.
749
750 (3.20.0.RC1: 20 Oct 2022)
751
752
753 Release 3.19.0 (11 Apr 2022)
754 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
755
756 This release supports X86/Linux, AMD64/Linux, ARM32/Linux, ARM64/Linux,
757 PPC32/Linux, PPC64BE/Linux, PPC64LE/Linux, S390X/Linux, MIPS32/Linux,
758 MIPS64/Linux, ARM/Android, ARM64/Android, MIPS32/Android, X86/Android,
759 X86/Solaris, AMD64/Solaris, AMD64/MacOSX 10.12, X86/FreeBSD and
760 AMD64/FreeBSD. There is also preliminary support for X86/macOS 10.13,
761 AMD64/macOS 10.13 and nanoMIPS/Linux.
762
763 * ==================== CORE CHANGES ===================
764
765 * Fix Rust v0 name demangling.
766 * The Linux rseq syscall is now implemented as (silently) returning ENOSYS.
767 * Add FreeBSD syscall wrappers for __specialfd and __realpathat.
768 * Remove FreeBSD dependencies on COMPAT10, which fixes compatibility with HardenedBSD
769
770 * ================== PLATFORM CHANGES =================
771
772 * arm64:
773 - ignore the "v8.x" architecture levels, only look at actual CPU features
774 present. Fixes mismatch detected between RDMA and atomics features
775 preventing startup on some QEMU configurations.
776 - Implement LD{,A}XP and ST{,L}XP
777 - Fix incorrect code emitted for doubleword CAS.
778
779 * s390:
780 - Fix sys_ipc semtimedop syscall
781 - Fix VFLRX and WFLRX instructions
782 - Fix EXRL instruction with negative offset
783
784 * ppc64:
785 - Reimplement the vbpermq instruction support to generate less Iops and
786 avoid overflowing internal buffers.
787 - Fix checking for scv support to avoid "Facility 'SCV' unavailable (12),
788 exception" messages in dmsg.
789 - Fix setting condition code for Vector Compare quad word instructions.
790 - Fix fix lxsibzx, lxsihzx and lxsihzx instructions so they only load
791 their respective sized data.
792 - Fix the prefixed stq instruction in PC relative mode.
793
794 * ==================== TOOL CHANGES ===================
795
796 * Memcheck:
797 - Speed up --track-origins=yes for large (in the range of hundreds to
798 thousands of megabytes) mmap/munmaps.
799 * DRD/Helgrind:
800 - Several fixes for new versions of libstd++ using new posix try_lock
801 functions
802
803 * ==================== FIXED BUGS ====================
804
805 The following bugs have been fixed or resolved. Note that "n-i-bz"
806 stands for "not in bugzilla" -- that is, a bug that was reported to us
807 but never got a bugzilla entry. We encourage you to file bugs in
808 bugzilla (https://bugs.kde.org/enter_bug.cgi?product=valgrind) rather
809 than mailing the developers (or mailing lists) directly -- bugs that
810 are not entered into bugzilla tend to get forgotten about or ignored.
811
812 403802 leak_cpp_interior fails with some reachable blocks different than expected
813 435732 memcheck/tests/leak_cpp_interior fails with gcc11
814 444242 s390x: Valgrind crashes on EXRL with negative offset
815 444399 arm64: unhandled instruction 0xC87F2D89 (LD{,A}XP and ST{,L}XP).
816 == 434283
817 444481 gdb_server test failures on s390x
818 444495 dhat/tests/copy fails on s390x
819 444552 memcheck/tests/sem fails on s390x with glibc 2.34
820 444571 PPC, fix the lxsibzx and lxsihzx so they only load their respective
821 sized data.
822 444836 PPC, pstq instruction for R=1 is not storing to the correct address.
823 444925 fexecve syscall wrapper not properly implemented
824 445032 valgrind/memcheck crash with SIGSEGV when SIGVTALRM timer used and
825 libthr.so associated
826 445211 Fix out of tree builds
827 445300 [PATCH] Fix building tests with Musl
828 445011 SIGCHLD is sent when valgrind uses debuginfod-find
829 445354 arm64 backend: incorrect code emitted for doubleword CAS
830 445415 arm64 front end: alignment checks missing for atomic instructions
831 445504 Using C++ condition_variable results in bogus "mutex is locked simultaneously by two threads" warning
832 445607 Unhandled amd64-freebsd syscall: 247
833 445668 Inline stack frame generation is broken for Rust binaries
834 445916 Demangle Rust v0 symbols with .llvm suffix
835 446139 DRD/Helgrind with std::shared_timed_mutex::try_lock_until and try_lock_shared_until false positives
836 446138 DRD/Helgrind with std::timed_mutex::try_lock_until false positives
837 446281 Add a DRD suppression for fwrite
838 446103 Memcheck: `--track-origins=yes` causes extreme slowdowns for large mmap/munmap
839 446139 DRD/Helgrind with std::shared_timed_mutex::try_lock_until and try_lock_shared_until false
840 446251 TARGET_SIGNAL_THR added to enum target_signal
841 446823 FreeBSD - missing syscalls when using libzm4
842 447991 s390x: Valgrind indicates illegal instruction on wflrx
843 447995 Valgrind segfault on power10 due to hwcap checking code
844 449483 Powerpc: vcmpgtsq., vcmpgtuq,, vcmpequq. instructions not setting the
845 condition code correctly.
846 449672 ppc64 --track-origins=yes failures because of bad cmov addHRegUse
847 449838 sigsegv liburing the 'impossible' happened for io_uring_setup
848 450025 Powerc: ACC file not implemented as a logical overlay of the VSR
849 registers.
850 450437 Warn for execve syscall with argv or argv[0] being NULL
851 450536 Powerpc: valgrind throws 'facility scv unavailable exception'
852 451626 Syscall param bpf(attr->raw_tracepoint.name) points to unaddressable byte(s)
853 451827 [ppc64le] VEX temporary storage exhausted with several vbpermq instructions
854 451843 valgrind fails to start on a FreeBSD system which enforces W^X
855
856 To see details of a given bug, visit
857 https://bugs.kde.org/show_bug.cgi?id=XXXXXX
858 where XXXXXX is the bug number as listed above.
859
860 (3.19.0.RC1: 02 Apr 2022)
861 (3.19.0.RC2: 08 Apr 2022)