blob: 85b61b280b41c6c31a0a7e9f3c80d16daadb4de4 [file] [log] [blame]
njn718d3b12006-12-16 00:54:12 +00001
njn254dafe2009-02-09 03:25:04 +00002Release 3.5.0 (???)
3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
njn8df80b22009-03-02 05:11:06 +00004* A new Memcheck client request VALGRIND_COUNT_LEAK_BLOCKS has been added.
5 It is similar to VALGRIND_COUNT_LEAKS but counts blocks instead of bytes.
6 [XXX: consider adding VALGRIND_COUNT_LEAK_BYTES as a synonym and
7 deprecating VALGRIND_COUNT_LEAKS, which wasn't a good name to begin with]
8
njn8225cc02009-03-09 22:52:24 +00009* Memcheck's leak checker has been improved.
10 - The results for --leak-check=summary now match the summary results for
11 --leak-check=full. Previously they could differ because
12 --leak-check=summary counted "indirectly lost" blocks and "suppressed"
13 blocks as "definitely lost".
14 - Blocks that are only reachable via at least one interior-pointer, but
15 are directly pointed to by a start-pointer, were previously marked as
16 "still reachable". They are now correctly marked as "possibly lost".
17
njn5e40aba2009-03-16 22:11:31 +000018* The format of some (non-XML) stack trace entries has changed a little.
19 Previously there were six possible forms:
20
21 0x80483BF: really (a.c:20)
22 0x80483BF: really (in /foo/a.out)
23 0x80483BF: really
24 0x80483BF: (within /foo/a.out)
25 0x80483BF: ??? (a.c:20)
26 0x80483BF: ???
27
28 The third and fourth of these forms have been made more consistent with
29 the others. The six possible forms are now:
30
31 0x80483BF: really (a.c:20)
32 0x80483BF: really (in /foo/a.out)
33 0x80483BF: really (in ???)
34 0x80483BF: ??? (in /foo/a.out)
35 0x80483BF: ??? (a.c:20)
36 0x80483BF: ???
37
38 Stack traces produced when --xml=yes is specified are different and
39 unchanged.
40
njn6bf365c2009-02-11 00:35:45 +000041* The location of some install files has changed. This should not affect
42 most users. Those who might be affected:
43
44 - For people who use Valgrind with MPI programs, the installed
45 libmpiwrap.so library has moved from $(INSTALL)/<platform>/libmpiwrap.so
46 to $(INSTALL)/libmpiwrap-<platform>.so.
47
48 - For people who distribute standalone Valgrind tools, the installed
49 libraries such as $(INSTALL)/<platform>/libcoregrind.a have moved to
50 $(INSTALL)/libcoregrind-<platform>.a.
51
52 These changes were made to simplify the build system.
53
njn254dafe2009-02-09 03:25:04 +000054* Previously, all the distributed suppression (*.supp) files were installed.
55 Now, only default.supp is installed. This should not affect users as the
56 other installed suppression files were not read.
57
bart076d2b52009-03-22 10:14:39 +000058n-i-bz DRD - race conditions between pthread_barrier_wait() and
59 pthread_barrier_destroy() calls are now reported.
60n-i-bz DRD - added "first observed at" information in error
61 messages related to synchronization objects.
62n-i-bz DRD - added new client request, VG_USERREQ__DRD_CLEAN_MEMORY.
63187048 DRD - the mutex attribute PTHREAD_PROCESS_SHARED is now
64 interpreted correctly.
bart56174ad2009-04-05 11:01:19 +000065188046 Removed a bashism from the configure script.
bartcd99d942009-04-25 16:25:45 +000066189763 DRD - pthread_create@GLIBC_2.0() no longer triggers an assertion
67 failure.
bart076d2b52009-03-22 10:14:39 +000068
njn254dafe2009-02-09 03:25:04 +000069
70
njnad91a752009-03-13 19:55:36 +000071Release 3.4.1 (28 February 2009)
72~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
733.4.1 is a bug-fix release that fixes some regressions and assertion
74failures in debug info reading in 3.4.0, most notably incorrect stack
75traces on amd64-linux on older (glibc-2.3 based) systems. Various
76other debug info problems are also fixed. A number of bugs in the
77exp-ptrcheck tool introduced in 3.4.0 have been fixed.
78
79In view of the fact that 3.4.0 contains user-visible regressions
80relative to 3.3.x, upgrading to 3.4.1 is recommended. Packagers are
81encouraged to ship 3.4.1 in preference to 3.4.0.
82
83The fixed bugs are as follows. Note that "n-i-bz" stands for "not in
84bugzilla" -- that is, a bug that was reported to us but never got a
85bugzilla entry. We encourage you to file bugs in bugzilla
86(http://bugs.kde.org/enter_valgrind_bug.cgi) rather than mailing the
87developers (or mailing lists) directly -- bugs that are not entered
88into bugzilla tend to get forgotten about or ignored.
89
90n-i-bz Fix various bugs reading icc-11 generated debug info
91n-i-bz Fix various bugs reading gcc-4.4 generated debug info
92n-i-bz Preliminary support for glibc-2.10 / Fedora 11
93n-i-bz Cachegrind and Callgrind: handle non-power-of-two cache sizes,
94 so as to support (eg) 24k Atom D1 and Core2 with 3/6/12MB L2.
95179618 exp-ptrcheck crashed / exit prematurely
96179624 helgrind: false positive races with pthread_create and
97 recv/open/close/read
98134207 pkg-config output contains @VG_PLATFORM@
99176926 floating point exception at valgrind startup with PPC 440EPX
100181594 Bogus warning for empty text segment
101173751 amd64->IR: 0x48 0xF 0x6F 0x45 (even more redundant rex prefixes)
102181707 Dwarf3 doesn't require enumerations to have name
103185038 exp-ptrcheck: "unhandled syscall: 285" (fallocate) on x86_64
104185050 exp-ptrcheck: sg_main.c:727 (add_block_to_GlobalTree):
105 Assertion '!already_present' failed.
106185359 exp-ptrcheck unhandled syscall getresuid()
107
108(3.4.1.RC1: 24 Feb 2008, vex r1884, valgrind r9253).
109(3.4.1: 28 Feb 2008, vex r1884, valgrind r9293).
110
111
112
sewardj565fcf12008-12-23 13:14:06 +0000113Release 3.4.0 (2 January 2009)
114~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1153.4.0 is a feature release with many significant improvements and the
116usual collection of bug fixes. This release supports X86/Linux,
117AMD64/Linux, PPC32/Linux and PPC64/Linux. Support for recent distros
118(using gcc 4.4, glibc 2.8 and 2.9) has been added.
sewardj8639f112008-12-17 12:26:24 +0000119
sewardj565fcf12008-12-23 13:14:06 +00001203.4.0 brings some significant tool improvements. Memcheck can now
121report the origin of uninitialised values, the thread checkers
122Helgrind and DRD are much improved, and we have a new experimental
123tool, exp-Ptrcheck, which is able to detect overruns of stack and
124global arrays. In detail:
sewardj8639f112008-12-17 12:26:24 +0000125
sewardj565fcf12008-12-23 13:14:06 +0000126* Memcheck is now able to track the origin of uninitialised values.
127 When it reports an uninitialised value error, it will try to show
128 the origin of the value, as either a heap or stack allocation.
129 Origin tracking is expensive and so is not enabled by default. To
130 use it, specify --track-origins=yes. Memcheck's speed will be
131 essentially halved, and memory usage will be significantly
132 increased. Nevertheless it can drastically reduce the effort
133 required to identify the root cause of uninitialised value errors,
134 and so is often a programmer productivity win, despite running more
135 slowly.
sewardj8639f112008-12-17 12:26:24 +0000136
sewardj565fcf12008-12-23 13:14:06 +0000137* A version (1.4.0) of the Valkyrie GUI, that works with Memcheck in
sewardjb8b16642009-01-02 23:21:54 +0000138 3.4.0, will be released shortly.
sewardj8639f112008-12-17 12:26:24 +0000139
sewardj565fcf12008-12-23 13:14:06 +0000140* Helgrind's race detection algorithm has been completely redesigned
141 and reimplemented, to address usability and scalability concerns:
sewardj8639f112008-12-17 12:26:24 +0000142
sewardj565fcf12008-12-23 13:14:06 +0000143 - The new algorithm has a lower false-error rate: it is much less
144 likely to report races that do not really exist.
sewardj8639f112008-12-17 12:26:24 +0000145
sewardj565fcf12008-12-23 13:14:06 +0000146 - Helgrind will display full call stacks for both accesses involved
sewardjf1fa5ed2008-12-23 17:04:52 +0000147 in a race. This makes it easier to identify the root causes of
148 races.
sewardj8639f112008-12-17 12:26:24 +0000149
sewardj565fcf12008-12-23 13:14:06 +0000150 - Limitations on the size of program that can run have been removed.
sewardj8639f112008-12-17 12:26:24 +0000151
sewardj565fcf12008-12-23 13:14:06 +0000152 - Performance has been modestly improved, although that is very
153 workload-dependent.
sewardj8639f112008-12-17 12:26:24 +0000154
sewardj565fcf12008-12-23 13:14:06 +0000155 - Direct support for Qt4 threading has been added.
sewardj8639f112008-12-17 12:26:24 +0000156
sewardj565fcf12008-12-23 13:14:06 +0000157 - pthread_barriers are now directly supported.
njn75010ca2008-02-09 05:10:45 +0000158
sewardj565fcf12008-12-23 13:14:06 +0000159 - Helgrind works well on all supported Linux targets.
sewardj8639f112008-12-17 12:26:24 +0000160
sewardj565fcf12008-12-23 13:14:06 +0000161* The DRD thread debugging tool has seen major improvements:
sewardj8639f112008-12-17 12:26:24 +0000162
sewardj565fcf12008-12-23 13:14:06 +0000163 - Greatly improved performance and significantly reduced memory
164 usage.
sewardj8639f112008-12-17 12:26:24 +0000165
sewardj565fcf12008-12-23 13:14:06 +0000166 - Support for several major threading libraries (Boost.Thread, Qt4,
167 glib, OpenMP) has been added.
sewardj8639f112008-12-17 12:26:24 +0000168
sewardj565fcf12008-12-23 13:14:06 +0000169 - Support for atomic instructions, POSIX semaphores, barriers and
170 reader-writer locks has been added.
171
172 - Works now on PowerPC CPUs too.
173
174 - Added support for printing thread stack usage at thread exit time.
175
176 - Added support for debugging lock contention.
177
178 - Added a manual for Drd.
179
180* A new experimental tool, exp-Ptrcheck, has been added. Ptrcheck
181 checks for misuses of pointers. In that sense it is a bit like
182 Memcheck. However, Ptrcheck can do things Memcheck can't: it can
183 detect overruns of stack and global arrays, it can detect
184 arbitrarily far out-of-bounds accesses to heap blocks, and it can
185 detect accesses heap blocks that have been freed a very long time
186 ago (millions of blocks in the past).
187
188 Ptrcheck currently works only on x86-linux and amd64-linux. To use
189 it, use --tool=exp-ptrcheck. A simple manual is provided, as part
190 of the main Valgrind documentation. As this is an experimental
191 tool, we would be particularly interested in hearing about your
192 experiences with it.
193
sewardj974aace2008-12-24 18:40:57 +0000194* exp-Omega, an experimental instantaneous leak-detecting tool, is no
195 longer built by default, although the code remains in the repository
196 and the tarball. This is due to three factors: a perceived lack of
197 users, a lack of maintenance, and concerns that it may not be
198 possible to achieve reliable operation using the existing design.
sewardj565fcf12008-12-23 13:14:06 +0000199
200* As usual, support for the latest Linux distros and toolchain
201 components has been added. It should work well on Fedora Core 10,
202 OpenSUSE 11.1 and Ubuntu 8.10. gcc-4.4 (in its current pre-release
203 state) is supported, as is glibc-2.9. The C++ demangler has been
204 updated so as to work well with C++ compiled by even the most recent
205 g++'s.
206
207* You can now use frame-level wildcards in suppressions. This was a
208 frequently-requested enhancement. A line "..." in a suppression now
209 matches zero or more frames. This makes it easier to write
210 suppressions which are precise yet insensitive to changes in
211 inlining behaviour.
212
213* 3.4.0 adds support on x86/amd64 for the SSSE3 instruction set.
214
215* Very basic support for IBM Power6 has been added (64-bit processes only).
216
217* Valgrind is now cross-compilable. For example, it is possible to
218 cross compile Valgrind on an x86/amd64-linux host, so that it runs
219 on a ppc32/64-linux target.
220
sewardjf1fa5ed2008-12-23 17:04:52 +0000221* You can set the main thread's stack size at startup using the
222 new --main-stacksize= flag (subject of course to ulimit settings).
223 This is useful for running apps that need a lot of stack space.
224
225* The limitation that you can't use --trace-children=yes together
226 with --db-attach=yes has been removed.
227
sewardj565fcf12008-12-23 13:14:06 +0000228* The following bugs have been fixed. Note that "n-i-bz" stands for
229 "not in bugzilla" -- that is, a bug that was reported to us but
230 never got a bugzilla entry. We encourage you to file bugs in
231 bugzilla (http://bugs.kde.org/enter_valgrind_bug.cgi) rather than
232 mailing the developers (or mailing lists) directly.
233
sewardjf1fa5ed2008-12-23 17:04:52 +0000234 n-i-bz Make return types for some client requests 64-bit clean
235 n-i-bz glibc 2.9 support
236 n-i-bz ignore unsafe .valgrindrc's (CVE-2008-4865)
237 n-i-bz MPI_Init(0,0) is valid but libmpiwrap.c segfaults
238 n-i-bz Building in an env without gdb gives bogus gdb attach
239 92456 Tracing the origin of uninitialised memory
240 106497 Valgrind does not demangle some C++ template symbols
241 162222 ==106497
sewardjdf1fc9a2008-12-23 23:09:57 +0000242 151612 Suppression with "..." (frame-level wildcards in .supp files)
sewardjf1fa5ed2008-12-23 17:04:52 +0000243 156404 Unable to start oocalc under memcheck on openSUSE 10.3 (64-bit)
244 159285 unhandled syscall:25 (stime, on x86-linux)
245 159452 unhandled ioctl 0x8B01 on "valgrind iwconfig"
246 160954 ppc build of valgrind crashes with illegal instruction (isel)
247 160956 mallinfo implementation, w/ patch
248 162092 Valgrind fails to start gnome-system-monitor
249 162819 malloc_free_fill test doesn't pass on glibc2.8 x86
250 163794 assertion failure with "--track-origins=yes"
251 163933 sigcontext.err and .trapno must be set together
252 163955 remove constraint !(--db-attach=yes && --trace-children=yes)
253 164476 Missing kernel module loading system calls
254 164669 SVN regression: mmap() drops posix file locks
255 166581 Callgrind output corruption when program forks
256 167288 Patch file for missing system calls on Cell BE
257 168943 unsupported scas instruction pentium
258 171645 Unrecognised instruction (MOVSD, non-binutils encoding)
259 172417 x86->IR: 0x82 ...
260 172563 amd64->IR: 0xD9 0xF5 - fprem1
261 173099 .lds linker script generation error
262 173177 [x86_64] syscalls: 125/126/179 (capget/capset/quotactl)
263 173751 amd64->IR: 0x48 0xF 0x6F 0x45 (even more redundant prefixes)
264 174532 == 173751
265 174908 --log-file value not expanded correctly for core file
266 175044 Add lookup_dcookie for amd64
267 175150 x86->IR: 0xF2 0xF 0x11 0xC1 (movss non-binutils encoding)
sewardj565fcf12008-12-23 13:14:06 +0000268
269Developer-visible changes:
270
271* Valgrind's debug-info reading machinery has been majorly overhauled.
272 It can now correctly establish the addresses for ELF data symbols,
273 which is something that has never worked properly before now.
274
275 Also, Valgrind can now read DWARF3 type and location information for
276 stack and global variables. This makes it possible to use the
277 framework to build tools that rely on knowing the type and locations
278 of stack and global variables, for example exp-Ptrcheck.
279
280 Reading of such information is disabled by default, because most
281 tools don't need it, and because it is expensive in space and time.
282 However, you can force Valgrind to read it, using the
283 --read-var-info=yes flag. Memcheck, Helgrind and DRD are able to
284 make use of such information, if present, to provide source-level
285 descriptions of data addresses in the error messages they create.
286
sewardj974aace2008-12-24 18:40:57 +0000287(3.4.0.RC1: 24 Dec 2008, vex r1878, valgrind r8882).
sewardjb8b16642009-01-02 23:21:54 +0000288(3.4.0: 3 Jan 2009, vex r1878, valgrind r8899).
sewardj565fcf12008-12-23 13:14:06 +0000289
sewardj8639f112008-12-17 12:26:24 +0000290
sewardj9f42ba32008-06-04 11:47:51 +0000291
292Release 3.3.1 (4 June 2008)
293~~~~~~~~~~~~~~~~~~~~~~~~~~~
2943.3.1 fixes a bunch of bugs in 3.3.0, adds support for glibc-2.8 based
295systems (openSUSE 11, Fedora Core 9), improves the existing glibc-2.7
296support, and adds support for the SSSE3 (Core 2) instruction set.
297
2983.3.1 will likely be the last release that supports some very old
299systems. In particular, the next major release, 3.4.0, will drop
300support for the old LinuxThreads threading library, and for gcc
301versions prior to 3.0.
302
303The fixed bugs are as follows. Note that "n-i-bz" stands for "not in
304bugzilla" -- that is, a bug that was reported to us but never got a
305bugzilla entry. We encourage you to file bugs in bugzilla
306(http://bugs.kde.org/enter_valgrind_bug.cgi) rather than mailing the
307developers (or mailing lists) directly -- bugs that are not entered
308into bugzilla tend to get forgotten about or ignored.
309
310n-i-bz Massif segfaults at exit
311n-i-bz Memcheck asserts on Altivec code
312n-i-bz fix sizeof bug in Helgrind
313n-i-bz check fd on sys_llseek
314n-i-bz update syscall lists to kernel 2.6.23.1
315n-i-bz support sys_sync_file_range
316n-i-bz handle sys_sysinfo, sys_getresuid, sys_getresgid on ppc64-linux
317n-i-bz intercept memcpy in 64-bit ld.so's
318n-i-bz Fix wrappers for sys_{futimesat,utimensat}
319n-i-bz Minor false-error avoidance fixes for Memcheck
320n-i-bz libmpiwrap.c: add a wrapper for MPI_Waitany
321n-i-bz helgrind support for glibc-2.8
322n-i-bz partial fix for mc_leakcheck.c:698 assert:
323 'lc_shadows[i]->data + lc_shadows[i] ...
324n-i-bz Massif/Cachegrind output corruption when programs fork
325n-i-bz register allocator fix: handle spill stores correctly
326n-i-bz add support for PA6T PowerPC CPUs
327126389 vex x86->IR: 0xF 0xAE (FXRSTOR)
328158525 ==126389
329152818 vex x86->IR: 0xF3 0xAC (repz lodsb)
330153196 vex x86->IR: 0xF2 0xA6 (repnz cmpsb)
331155011 vex x86->IR: 0xCF (iret)
332155091 Warning [...] unhandled DW_OP_ opcode 0x23
333156960 ==155901
334155528 support Core2/SSSE3 insns on x86/amd64
335155929 ms_print fails on massif outputs containing long lines
336157665 valgrind fails on shmdt(0) after shmat to 0
337157748 support x86 PUSHFW/POPFW
338158212 helgrind: handle pthread_rwlock_try{rd,wr}lock.
339158425 sys_poll incorrectly emulated when RES==0
340158744 vex amd64->IR: 0xF0 0x41 0xF 0xC0 (xaddb)
341160907 Support for a couple of recent Linux syscalls
342161285 Patch -- support for eventfd() syscall
343161378 illegal opcode in debug libm (FUCOMPP)
344160136 ==161378
345161487 number of suppressions files is limited to 10
346162386 ms_print typo in milliseconds time unit for massif
347161036 exp-drd: client allocated memory was never freed
348162663 signalfd_wrapper fails on 64bit linux
349
350(3.3.1.RC1: 2 June 2008, vex r1854, valgrind r8169).
351(3.3.1: 4 June 2008, vex r1854, valgrind r8180).
352
353
354
sewardjcb2288b2007-12-02 02:08:17 +0000355Release 3.3.0 (7 December 2007)
356~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardjcb2288b2007-12-02 02:08:17 +00003573.3.0 is a feature release with many significant improvements and the
358usual collection of bug fixes. This release supports X86/Linux,
359AMD64/Linux, PPC32/Linux and PPC64/Linux. Support for recent distros
360(using gcc 4.3, glibc 2.6 and 2.7) has been added.
njnf4f9cd42007-11-23 01:42:10 +0000361
sewardjcb2288b2007-12-02 02:08:17 +0000362The main excitement in 3.3.0 is new and improved tools. Helgrind
363works again, Massif has been completely overhauled and much improved,
364Cachegrind now does branch-misprediction profiling, and a new category
365of experimental tools has been created, containing two new tools:
366Omega and DRD. There are many other smaller improvements. In detail:
njn374a36d2007-11-23 01:41:32 +0000367
sewardjcb2288b2007-12-02 02:08:17 +0000368- Helgrind has been completely overhauled and works for the first time
369 since Valgrind 2.2.0. Supported functionality is: detection of
370 misuses of the POSIX PThreads API, detection of potential deadlocks
371 resulting from cyclic lock dependencies, and detection of data
372 races. Compared to the 2.2.0 Helgrind, the race detection algorithm
373 has some significant improvements aimed at reducing the false error
374 rate. Handling of various kinds of corner cases has been improved.
375 Efforts have been made to make the error messages easier to
376 understand. Extensive documentation is provided.
njn374a36d2007-11-23 01:41:32 +0000377
sewardjcb2288b2007-12-02 02:08:17 +0000378- Massif has been completely overhauled. Instead of measuring
379 space-time usage -- which wasn't always useful and many people found
380 confusing -- it now measures space usage at various points in the
381 execution, including the point of peak memory allocation. Its
382 output format has also changed: instead of producing PostScript
383 graphs and HTML text, it produces a single text output (via the new
384 'ms_print' script) that contains both a graph and the old textual
385 information, but in a more compact and readable form. Finally, the
386 new version should be more reliable than the old one, as it has been
387 tested more thoroughly.
njn718d3b12006-12-16 00:54:12 +0000388
sewardj8badbaa2007-05-08 09:20:25 +0000389- Cachegrind has been extended to do branch-misprediction profiling.
390 Both conditional and indirect branches are profiled. The default
391 behaviour of Cachegrind is unchanged. To use the new functionality,
392 give the option --branch-sim=yes.
393
sewardjcb2288b2007-12-02 02:08:17 +0000394- A new category of "experimental tools" has been created. Such tools
395 may not work as well as the standard tools, but are included because
396 some people will find them useful, and because exposure to a wider
397 user group provides tool authors with more end-user feedback. These
398 tools have a "exp-" prefix attached to their names to indicate their
399 experimental nature. Currently there are two experimental tools:
njn374a36d2007-11-23 01:41:32 +0000400
sewardjcb2288b2007-12-02 02:08:17 +0000401 * exp-Omega: an instantaneous leak detector. See
402 exp-omega/docs/omega_introduction.txt.
njn374a36d2007-11-23 01:41:32 +0000403
sewardjcb2288b2007-12-02 02:08:17 +0000404 * exp-DRD: a data race detector based on the happens-before
sewardj8b09d4f2007-12-04 21:27:18 +0000405 relation. See exp-drd/docs/README.txt.
njn374a36d2007-11-23 01:41:32 +0000406
sewardjcb2288b2007-12-02 02:08:17 +0000407- Scalability improvements for very large programs, particularly those
408 which have a million or more malloc'd blocks in use at once. These
409 improvements mostly affect Memcheck. Memcheck is also up to 10%
410 faster for all programs, with x86-linux seeing the largest
411 improvement.
njn374a36d2007-11-23 01:41:32 +0000412
sewardjcb2288b2007-12-02 02:08:17 +0000413- Works well on the latest Linux distros. Has been tested on Fedora
414 Core 8 (x86, amd64, ppc32, ppc64) and openSUSE 10.3. glibc 2.6 and
415 2.7 are supported. gcc-4.3 (in its current pre-release state) is
416 supported. At the same time, 3.3.0 retains support for older
417 distros.
njn374a36d2007-11-23 01:41:32 +0000418
sewardjcb2288b2007-12-02 02:08:17 +0000419- The documentation has been modestly reorganised with the aim of
420 making it easier to find information on common-usage scenarios.
421 Some advanced material has been moved into a new chapter in the main
422 manual, so as to unclutter the main flow, and other tidying up has
423 been done.
njn374a36d2007-11-23 01:41:32 +0000424
sewardjcb2288b2007-12-02 02:08:17 +0000425- There is experimental support for AIX 5.3, both 32-bit and 64-bit
426 processes. You need to be running a 64-bit kernel to use Valgrind
427 on a 64-bit executable.
njn374a36d2007-11-23 01:41:32 +0000428
sewardjcb2288b2007-12-02 02:08:17 +0000429- There have been some changes to command line options, which may
430 affect you:
njn374a36d2007-11-23 01:41:32 +0000431
sewardjcb2288b2007-12-02 02:08:17 +0000432 * --log-file-exactly and
433 --log-file-qualifier options have been removed.
njn374a36d2007-11-23 01:41:32 +0000434
sewardjcb2288b2007-12-02 02:08:17 +0000435 To make up for this --log-file option has been made more powerful.
436 It now accepts a %p format specifier, which is replaced with the
437 process ID, and a %q{FOO} format specifier, which is replaced with
438 the contents of the environment variable FOO.
439
440 * --child-silent-after-fork=yes|no [no]
441
442 Causes Valgrind to not show any debugging or logging output for
443 the child process resulting from a fork() call. This can make the
444 output less confusing (although more misleading) when dealing with
445 processes that create children.
446
447 * --cachegrind-out-file, --callgrind-out-file and --massif-out-file
448
449 These control the names of the output files produced by
450 Cachegrind, Callgrind and Massif. They accept the same %p and %q
451 format specifiers that --log-file accepts. --callgrind-out-file
452 replaces Callgrind's old --base option.
453
454 * Cachegrind's 'cg_annotate' script no longer uses the --<pid>
455 option to specify the output file. Instead, the first non-option
456 argument is taken to be the name of the output file, and any
457 subsequent non-option arguments are taken to be the names of
458 source files to be annotated.
459
460 * Cachegrind and Callgrind now use directory names where possible in
461 their output files. This means that the -I option to
462 'cg_annotate' and 'callgrind_annotate' should not be needed in
463 most cases. It also means they can correctly handle the case
464 where two source files in different directories have the same
465 name.
466
467- Memcheck offers a new suppression kind: "Jump". This is for
468 suppressing jump-to-invalid-address errors. Previously you had to
469 use an "Addr1" suppression, which didn't make much sense.
470
471- Memcheck has new flags --malloc-fill=<hexnum> and
472 --free-fill=<hexnum> which free malloc'd / free'd areas with the
473 specified byte. This can help shake out obscure memory corruption
474 problems. The definedness and addressibility of these areas is
475 unchanged -- only the contents are affected.
njn718d3b12006-12-16 00:54:12 +0000476
477- The behaviour of Memcheck's client requests VALGRIND_GET_VBITS and
478 VALGRIND_SET_VBITS have changed slightly. They no longer issue
479 addressability errors -- if either array is partially unaddressable,
480 they just return 3 (as before). Also, SET_VBITS doesn't report
481 definedness errors if any of the V bits are undefined.
sewardj1ede80f2006-05-26 00:47:13 +0000482
njn92676d72007-12-04 21:18:06 +0000483- The following Memcheck client requests have been removed:
484 VALGRIND_MAKE_NOACCESS
485 VALGRIND_MAKE_WRITABLE
486 VALGRIND_MAKE_READABLE
487 VALGRIND_CHECK_WRITABLE
488 VALGRIND_CHECK_READABLE
489 VALGRIND_CHECK_DEFINED
490 They were deprecated in 3.2.0, when equivalent but better-named client
491 requests were added. See the 3.2.0 release notes for more details.
492
njn5a0a7732007-02-12 10:37:37 +0000493- The behaviour of the tool Lackey has changed slightly. First, the output
494 from --trace-mem has been made more compact, to reduce the size of the
495 traces. Second, a new option --trace-superblocks has been added, which
496 shows the addresses of superblocks (code blocks) as they are executed.
497
sewardjcb2288b2007-12-02 02:08:17 +0000498- The following bugs have been fixed. Note that "n-i-bz" stands for
499 "not in bugzilla" -- that is, a bug that was reported to us but
500 never got a bugzilla entry. We encourage you to file bugs in
501 bugzilla (http://bugs.kde.org/enter_valgrind_bug.cgi) rather than
502 mailing the developers (or mailing lists) directly.
503
504 n-i-bz x86_linux_REDIR_FOR_index() broken
505 n-i-bz guest-amd64/toIR.c:2512 (dis_op2_E_G): Assertion `0' failed.
506 n-i-bz Support x86 INT insn (INT (0xCD) 0x40 - 0x43)
507 n-i-bz Add sys_utimensat system call for Linux x86 platform
508 79844 Helgrind complains about race condition which does not exist
509 82871 Massif output function names too short
510 89061 Massif: ms_main.c:485 (get_XCon): Assertion `xpt->max_chi...'
511 92615 Write output from Massif at crash
512 95483 massif feature request: include peak allocation in report
513 112163 MASSIF crashed with signal 7 (SIGBUS) after running 2 days
514 119404 problems running setuid executables (partial fix)
515 121629 add instruction-counting mode for timing
516 127371 java vm giving unhandled instruction bytes: 0x26 0x2E 0x64 0x65
517 129937 ==150380
518 129576 Massif loses track of memory, incorrect graphs
519 132132 massif --format=html output does not do html entity escaping
520 132950 Heap alloc/usage summary
521 133962 unhandled instruction bytes: 0xF2 0x4C 0xF 0x10
522 134990 use -fno-stack-protector if possible
523 136382 ==134990
524 137396 I would really like helgrind to work again...
525 137714 x86/amd64->IR: 0x66 0xF 0xF7 0xC6 (maskmovq, maskmovdq)
526 141631 Massif: percentages don't add up correctly
527 142706 massif numbers don't seem to add up
528 143062 massif crashes on app exit with signal 8 SIGFPE
529 144453 (get_XCon): Assertion 'xpt->max_children != 0' failed.
530 145559 valgrind aborts when malloc_stats is called
531 145609 valgrind aborts all runs with 'repeated section!'
532 145622 --db-attach broken again on x86-64
533 145837 ==149519
534 145887 PPC32: getitimer() system call is not supported
535 146252 ==150678
536 146456 (update_XCon): Assertion 'xpt->curr_space >= -space_delta'...
537 146701 ==134990
538 146781 Adding support for private futexes
539 147325 valgrind internal error on syscall (SYS_io_destroy, 0)
540 147498 amd64->IR: 0xF0 0xF 0xB0 0xF (lock cmpxchg %cl,(%rdi))
sewardjbc39ad22007-12-09 02:24:02 +0000541 147545 Memcheck: mc_main.c:817 (get_sec_vbits8): Assertion 'n' failed.
sewardjcb2288b2007-12-02 02:08:17 +0000542 147628 SALC opcode 0xd6 unimplemented
543 147825 crash on amd64-linux with gcc 4.2 and glibc 2.6 (CFI)
544 148174 Incorrect type of freed_list_volume causes assertion [...]
545 148447 x86_64 : new NOP codes: 66 66 66 66 2e 0f 1f
546 149182 PPC Trap instructions not implemented in valgrind
547 149504 Assertion hit on alloc_xpt->curr_space >= -space_delta
548 149519 ppc32: V aborts with SIGSEGV on execution of a signal handler
549 149892 ==137714
550 150044 SEGV during stack deregister
551 150380 dwarf/gcc interoperation (dwarf3 read problems)
552 150408 ==148447
553 150678 guest-amd64/toIR.c:3741 (dis_Grp5): Assertion `sz == 4' failed
554 151209 V unable to execute programs for users with UID > 2^16
555 151938 help on --db-command= misleading
556 152022 subw $0x28, %%sp causes assertion failure in memcheck
557 152357 inb and outb not recognized in 64-bit mode
558 152501 vex x86->IR: 0x27 0x66 0x89 0x45 (daa)
559 152818 vex x86->IR: 0xF3 0xAC 0xFC 0x9C (rep lodsb)
560
njnd5f4bef2006-12-24 07:54:19 +0000561Developer-visible changes:
562
sewardjcb2288b2007-12-02 02:08:17 +0000563- The names of some functions and types within the Vex IR have
564 changed. Run 'svn log -r1689 VEX/pub/libvex_ir.h' for full details.
565 Any existing standalone tools will have to be updated to reflect
566 these changes. The new names should be clearer. The file
567 VEX/pub/libvex_ir.h is also much better commented.
njnd8366ee2007-02-12 22:38:50 +0000568
sewardjcb2288b2007-12-02 02:08:17 +0000569- A number of new debugging command line options have been added.
570 These are mostly of use for debugging the symbol table and line
571 number readers:
572
573 --trace-symtab-patt=<patt> limit debuginfo tracing to obj name <patt>
574 --trace-cfi=no|yes show call-frame-info details? [no]
575 --debug-dump=syms mimic /usr/bin/readelf --syms
576 --debug-dump=line mimic /usr/bin/readelf --debug-dump=line
577 --debug-dump=frames mimic /usr/bin/readelf --debug-dump=frames
578 --sym-offsets=yes|no show syms in form 'name+offset' ? [no]
579
580- Internally, the code base has been further factorised and
581 abstractified, particularly with respect to support for non-Linux
582 OSs.
583
sewardj135a7ff2007-12-10 22:17:42 +0000584(3.3.0.RC1: 2 Dec 2007, vex r1803, valgrind r7268).
585(3.3.0.RC2: 5 Dec 2007, vex r1804, valgrind r7282).
586(3.3.0.RC3: 9 Dec 2007, vex r1804, valgrind r7288).
sewardj686b5be2007-12-10 22:21:14 +0000587(3.3.0: 10 Dec 2007, vex r1804, valgrind r7290).
sewardjcb2288b2007-12-02 02:08:17 +0000588
njnd5f4bef2006-12-24 07:54:19 +0000589
590
njn99237752007-01-30 05:18:38 +0000591Release 3.2.3 (29 Jan 2007)
592~~~~~~~~~~~~~~~~~~~~~~~~~~~
593Unfortunately 3.2.2 introduced a regression which can cause an
594assertion failure ("vex: the `impossible' happened: eqIRConst") when
595running obscure pieces of SSE code. 3.2.3 fixes this and adds one
596more glibc-2.5 intercept. In all other respects it is identical to
5973.2.2. Please do not use (or package) 3.2.2; instead use 3.2.3.
598
599n-i-bz vex: the `impossible' happened: eqIRConst
600n-i-bz Add an intercept for glibc-2.5 __stpcpy_chk
601
602(3.2.3: 29 Jan 2007, vex r1732, valgrind r6560).
603
604
njna7e48802007-01-23 05:58:52 +0000605Release 3.2.2 (22 Jan 2007)
606~~~~~~~~~~~~~~~~~~~~~~~~~~~
6073.2.2 fixes a bunch of bugs in 3.2.1, adds support for glibc-2.5 based
608systems (openSUSE 10.2, Fedora Core 6), improves support for icc-9.X
609compiled code, and brings modest performance improvements in some
610areas, including amd64 floating point, powerpc support, and startup
611responsiveness on all targets.
612
613The fixed bugs are as follows. Note that "n-i-bz" stands for "not in
614bugzilla" -- that is, a bug that was reported to us but never got a
615bugzilla entry. We encourage you to file bugs in bugzilla
616(http://bugs.kde.org/enter_valgrind_bug.cgi) rather than mailing the
617developers (or mailing lists) directly.
618
619129390 ppc?->IR: some kind of VMX prefetch (dstt)
620129968 amd64->IR: 0xF 0xAE 0x0 (fxsave)
621134319 ==129968
622133054 'make install' fails with syntax errors
623118903 ==133054
624132998 startup fails in when running on UML
625134207 pkg-config output contains @VG_PLATFORM@
626134727 valgrind exits with "Value too large for defined data type"
627n-i-bz ppc32/64: support mcrfs
628n-i-bz Cachegrind/Callgrind: Update cache parameter detection
629135012 x86->IR: 0xD7 0x8A 0xE0 0xD0 (xlat)
630125959 ==135012
631126147 x86->IR: 0xF2 0xA5 0xF 0x77 (repne movsw)
632136650 amd64->IR: 0xC2 0x8 0x0
633135421 x86->IR: unhandled Grp5(R) case 6
634n-i-bz Improved documentation of the IR intermediate representation
635n-i-bz jcxz (x86) (users list, 8 Nov)
636n-i-bz ExeContext hashing fix
637n-i-bz fix CFI reading failures ("Dwarf CFI 0:24 0:32 0:48 0:7")
638n-i-bz fix Cachegrind/Callgrind simulation bug
639n-i-bz libmpiwrap.c: fix handling of MPI_LONG_DOUBLE
640n-i-bz make User errors suppressible
641136844 corrupted malloc line when using --gen-suppressions=yes
642138507 ==136844
643n-i-bz Speed up the JIT's register allocator
644n-i-bz Fix confusing leak-checker flag hints
645n-i-bz Support recent autoswamp versions
646n-i-bz ppc32/64 dispatcher speedups
647n-i-bz ppc64 front end rld/rlw improvements
648n-i-bz ppc64 back end imm64 improvements
649136300 support 64K pages on ppc64-linux
650139124 == 136300
651n-i-bz fix ppc insn set tests for gcc >= 4.1
652137493 x86->IR: recent binutils no-ops
653137714 x86->IR: 0x66 0xF 0xF7 0xC6 (maskmovdqu)
654138424 "failed in UME with error 22" (produce a better error msg)
655138856 ==138424
656138627 Enhancement support for prctl ioctls
657138896 Add support for usb ioctls
658136059 ==138896
659139050 ppc32->IR: mfspr 268/269 instructions not handled
660n-i-bz ppc32->IR: lvxl/stvxl
661n-i-bz glibc-2.5 support
662n-i-bz memcheck: provide replacement for mempcpy
663n-i-bz memcheck: replace bcmp in ld.so
664n-i-bz Use 'ifndef' in VEX's Makefile correctly
665n-i-bz Suppressions for MVL 4.0.1 on ppc32-linux
666n-i-bz libmpiwrap.c: Fixes for MPICH
667n-i-bz More robust handling of hinted client mmaps
668139776 Invalid read in unaligned memcpy with Intel compiler v9
669n-i-bz Generate valid XML even for very long fn names
670n-i-bz Don't prompt about suppressions for unshown reachable leaks
671139910 amd64 rcl is not supported
672n-i-bz DWARF CFI reader: handle DW_CFA_undefined
673n-i-bz DWARF CFI reader: handle icc9 generated CFI info better
674n-i-bz fix false uninit-value errs in icc9 generated FP code
675n-i-bz reduce extraneous frames in libmpiwrap.c
676n-i-bz support pselect6 on amd64-linux
677
678(3.2.2: 22 Jan 2007, vex r1729, valgrind r6545).
679
680
sewardj172bce82006-09-16 01:00:35 +0000681Release 3.2.1 (16 Sept 2006)
682~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6833.2.1 adds x86/amd64 support for all SSE3 instructions except monitor
684and mwait, further reduces memcheck's false error rate on all
685platforms, adds support for recent binutils (in OpenSUSE 10.2 and
686Fedora Rawhide) and fixes a bunch of bugs in 3.2.0. Some of the fixed
687bugs were causing large programs to segfault with --tool=callgrind and
688--tool=cachegrind, so an upgrade is recommended.
689
690In view of the fact that any 3.3.0 release is unlikely to happen until
691well into 1Q07, we intend to keep the 3.2.X line alive for a while
692yet, and so we tentatively plan a 3.2.2 release sometime in December
69306.
694
695The fixed bugs are as follows. Note that "n-i-bz" stands for "not in
696bugzilla" -- that is, a bug that was reported to us but never got a
697bugzilla entry.
698
699n-i-bz Expanding brk() into last available page asserts
700n-i-bz ppc64-linux stack RZ fast-case snafu
701n-i-bz 'c' in --gen-supps=yes doesn't work
702n-i-bz VG_N_SEGMENTS too low (users, 28 June)
703n-i-bz VG_N_SEGNAMES too low (Stu Robinson)
704106852 x86->IR: fisttp (SSE3)
705117172 FUTEX_WAKE does not use uaddr2
706124039 Lacks support for VKI_[GP]IO_UNIMAP*
707127521 amd64->IR: 0xF0 0x48 0xF 0xC7 (cmpxchg8b)
708128917 amd64->IR: 0x66 0xF 0xF6 0xC4 (psadbw,SSE2)
709129246 JJ: ppc32/ppc64 syscalls, w/ patch
710129358 x86->IR: fisttpl (SSE3)
711129866 cachegrind/callgrind causes executable to die
712130020 Can't stat .so/.exe error while reading symbols
713130388 Valgrind aborts when process calls malloc_trim()
714130638 PATCH: ppc32 missing system calls
715130785 amd64->IR: unhandled instruction "pushfq"
716131481: (HINT_NOP) vex x86->IR: 0xF 0x1F 0x0 0xF
717131298 ==131481
718132146 Programs with long sequences of bswap[l,q]s
719132918 vex amd64->IR: 0xD9 0xF8 (fprem)
720132813 Assertion at priv/guest-x86/toIR.c:652 fails
721133051 'cfsi->len > 0 && cfsi->len < 2000000' failed
722132722 valgrind header files are not standard C
723n-i-bz Livelocks entire machine (users list, Timothy Terriberry)
724n-i-bz Alex Bennee mmap problem (9 Aug)
725n-i-bz BartV: Don't print more lines of a stack-trace than were obtained.
726n-i-bz ppc32 SuSE 10.1 redir
727n-i-bz amd64 padding suppressions
728n-i-bz amd64 insn printing fix.
729n-i-bz ppc cmp reg,reg fix
730n-i-bz x86/amd64 iropt e/rflag reduction rules
731n-i-bz SuSE 10.1 (ppc32) minor fixes
732133678 amd64->IR: 0x48 0xF 0xC5 0xC0 (pextrw?)
733133694 aspacem assertion: aspacem_minAddr <= holeStart
734n-i-bz callgrind: fix warning about malformed creator line
735n-i-bz callgrind: fix annotate script for data produced with
736 --dump-instr=yes
737n-i-bz callgrind: fix failed assertion when toggling
738 instrumentation mode
739n-i-bz callgrind: fix annotate script fix warnings with
740 --collect-jumps=yes
741n-i-bz docs path hardwired (Dennis Lubert)
742
743The following bugs were not fixed, due primarily to lack of developer
744time, and also because bug reporters did not answer requests for
745feedback in time for the release:
746
747129390 ppc?->IR: some kind of VMX prefetch (dstt)
748129968 amd64->IR: 0xF 0xAE 0x0 (fxsave)
749133054 'make install' fails with syntax errors
750n-i-bz Signal race condition (users list, 13 June, Johannes Berg)
751n-i-bz Unrecognised instruction at address 0x70198EC2 (users list,
752 19 July, Bennee)
753132998 startup fails in when running on UML
754
755The following bug was tentatively fixed on the mainline but the fix
756was considered too risky to push into 3.2.X:
757
758133154 crash when using client requests to register/deregister stack
759
760(3.2.1: 16 Sept 2006, vex r1658, valgrind r6070).
761
762
sewardj3ecf8f22006-06-06 21:41:22 +0000763Release 3.2.0 (7 June 2006)
sewardj535a2352006-04-18 02:04:52 +0000764~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardj1ede80f2006-05-26 00:47:13 +00007653.2.0 is a feature release with many significant improvements and the
766usual collection of bug fixes. This release supports X86/Linux,
767AMD64/Linux, PPC32/Linux and PPC64/Linux.
njna3e96762006-03-27 12:23:44 +0000768
sewardjaf924992006-05-26 13:51:37 +0000769Performance, especially of Memcheck, is improved, Addrcheck has been
770removed, Callgrind has been added, PPC64/Linux support has been added,
771Lackey has been improved, and MPI support has been added. In detail:
njna3e96762006-03-27 12:23:44 +0000772
sewardjf41db3c2006-05-26 16:06:10 +0000773- Memcheck has improved speed and reduced memory use. Run times are
774 typically reduced by 15-30%, averaging about 24% for SPEC CPU2000.
sewardjaf924992006-05-26 13:51:37 +0000775 The other tools have smaller but noticeable speed improvments. We
776 are interested to hear what improvements users get.
njna3e96762006-03-27 12:23:44 +0000777
sewardj3ecf8f22006-06-06 21:41:22 +0000778 Memcheck uses less memory due to the introduction of a compressed
sewardjaf924992006-05-26 13:51:37 +0000779 representation for shadow memory. The space overhead has been
780 reduced by a factor of up to four, depending on program behaviour.
781 This means you should be able to run programs that use more memory
782 than before without hitting problems.
njna3e96762006-03-27 12:23:44 +0000783
sewardj1ede80f2006-05-26 00:47:13 +0000784- Addrcheck has been removed. It has not worked since version 2.4.0,
785 and the speed and memory improvements to Memcheck make it redundant.
786 If you liked using Addrcheck because it didn't give undefined value
787 errors, you can use the new Memcheck option --undef-value-errors=no
788 to get the same behaviour.
789
sewardjaf924992006-05-26 13:51:37 +0000790- The number of undefined-value errors incorrectly reported by
791 Memcheck has been reduced (such false reports were already very
792 rare). In particular, efforts have been made to ensure Memcheck
793 works really well with gcc 4.0/4.1-generated code on X86/Linux and
794 AMD64/Linux.
sewardj1ede80f2006-05-26 00:47:13 +0000795
796- Josef Weidendorfer's popular Callgrind tool has been added. Folding
sewardjaf924992006-05-26 13:51:37 +0000797 it in was a logical step given its popularity and usefulness, and
sewardj1ede80f2006-05-26 00:47:13 +0000798 makes it easier for us to ensure it works "out of the box" on all
799 supported targets. The associated KDE KCachegrind GUI remains a
800 separate project.
njneaf0ca92006-04-09 01:23:29 +0000801
sewardj3ecf8f22006-06-06 21:41:22 +0000802- A new release of the Valkyrie GUI for Memcheck, version 1.2.0,
803 accompanies this release. Improvements over previous releases
804 include improved robustness, many refinements to the user interface,
805 and use of a standard autoconf/automake build system. You can get
806 it from http://www.valgrind.org/downloads/guis.html.
807
sewardj535a2352006-04-18 02:04:52 +0000808- Valgrind now works on PPC64/Linux. As with the AMD64/Linux port,
sewardj1ede80f2006-05-26 00:47:13 +0000809 this supports programs using to 32G of address space. On 64-bit
810 capable PPC64/Linux setups, you get a dual architecture build so
811 that both 32-bit and 64-bit executables can be run. Linux on POWER5
812 is supported, and POWER4 is also believed to work. Both 32-bit and
813 64-bit DWARF2 is supported. This port is known to work well with
814 both gcc-compiled and xlc/xlf-compiled code.
njna3e96762006-03-27 12:23:44 +0000815
sewardj1ede80f2006-05-26 00:47:13 +0000816- Floating point accuracy has been improved for PPC32/Linux.
817 Specifically, the floating point rounding mode is observed on all FP
818 arithmetic operations, and multiply-accumulate instructions are
819 preserved by the compilation pipeline. This means you should get FP
820 results which are bit-for-bit identical to a native run. These
821 improvements are also present in the PPC64/Linux port.
njnb2939162006-04-18 00:52:37 +0000822
njneaf0ca92006-04-09 01:23:29 +0000823- Lackey, the example tool, has been improved:
njna3e96762006-03-27 12:23:44 +0000824
sewardj1ede80f2006-05-26 00:47:13 +0000825 * It has a new option --detailed-counts (off by default) which
826 causes it to print out a count of loads, stores and ALU operations
827 done, and their sizes.
njndbf7ca72006-03-31 11:57:59 +0000828
sewardj1ede80f2006-05-26 00:47:13 +0000829 * It has a new option --trace-mem (off by default) which causes it
830 to print out a trace of all memory accesses performed by a
831 program. It's a good starting point for building Valgrind tools
832 that need to track memory accesses. Read the comments at the top
833 of the file lackey/lk_main.c for details.
sewardj42fcf5d2006-04-08 13:16:36 +0000834
sewardj1ede80f2006-05-26 00:47:13 +0000835 * The original instrumentation (counting numbers of instructions,
836 jumps, etc) is now controlled by a new option --basic-counts. It
837 is on by default.
sewardj42fcf5d2006-04-08 13:16:36 +0000838
839- MPI support: partial support for debugging distributed applications
sewardj1ede80f2006-05-26 00:47:13 +0000840 using the MPI library specification has been added. Valgrind is
sewardj42fcf5d2006-04-08 13:16:36 +0000841 aware of the memory state changes caused by a subset of the MPI
842 functions, and will carefully check data passed to the (P)MPI_
843 interface.
844
sewardj1ede80f2006-05-26 00:47:13 +0000845- A new flag, --error-exitcode=, has been added. This allows changing
846 the exit code in runs where Valgrind reported errors, which is
847 useful when using Valgrind as part of an automated test suite.
sewardjb9779082006-05-12 23:50:15 +0000848
sewardj1ede80f2006-05-26 00:47:13 +0000849- Various segfaults when reading old-style "stabs" debug information
850 have been fixed.
njneaf0ca92006-04-09 01:23:29 +0000851
sewardjc9d09cc2006-05-27 03:22:04 +0000852- A simple performance evaluation suite has been added. See
njn5359b6f2006-06-02 23:57:22 +0000853 perf/README and README_DEVELOPERS for details. There are
sewardjc9d09cc2006-05-27 03:22:04 +0000854 various bells and whistles.
855
sewardjb70a6132006-05-27 21:14:09 +0000856- New configuration flags:
857 --enable-only32bit
858 --enable-only64bit
859 By default, on 64 bit platforms (ppc64-linux, amd64-linux) the build
860 system will attempt to build a Valgrind which supports both 32-bit
861 and 64-bit executables. This may not be what you want, and you can
862 override the default behaviour using these flags.
863
sewardj1ede80f2006-05-26 00:47:13 +0000864Please note that Helgrind is still not working. We have made an
865important step towards making it work again, however, with the
866addition of function wrapping (see below).
njneaf0ca92006-04-09 01:23:29 +0000867
868Other user-visible changes:
869
sewardj1ede80f2006-05-26 00:47:13 +0000870- Valgrind now has the ability to intercept and wrap arbitrary
871 functions. This is a preliminary step towards making Helgrind work
872 again, and was required for MPI support.
njneaf0ca92006-04-09 01:23:29 +0000873
sewardj1ede80f2006-05-26 00:47:13 +0000874- There are some changes to Memcheck's client requests. Some of them
875 have changed names:
njndbf7ca72006-03-31 11:57:59 +0000876
877 MAKE_NOACCESS --> MAKE_MEM_NOACCESS
878 MAKE_WRITABLE --> MAKE_MEM_UNDEFINED
879 MAKE_READABLE --> MAKE_MEM_DEFINED
880
881 CHECK_WRITABLE --> CHECK_MEM_IS_ADDRESSABLE
882 CHECK_READABLE --> CHECK_MEM_IS_DEFINED
883 CHECK_DEFINED --> CHECK_VALUE_IS_DEFINED
884
sewardj1ede80f2006-05-26 00:47:13 +0000885 The reason for the change is that the old names are subtly
886 misleading. The old names will still work, but they are deprecated
887 and may be removed in a future release.
njndbf7ca72006-03-31 11:57:59 +0000888
889 We also added a new client request:
890
891 MAKE_MEM_DEFINED_IF_ADDRESSABLE(a, len)
892
893 which is like MAKE_MEM_DEFINED but only affects a byte if the byte is
894 already addressable.
895
sewardj3ecf8f22006-06-06 21:41:22 +0000896- The way client requests are encoded in the instruction stream has
897 changed. Unfortunately, this means 3.2.0 will not honour client
898 requests compiled into binaries using headers from earlier versions
899 of Valgrind. We will try to keep the client request encodings more
900 stable in future.
njneaf0ca92006-04-09 01:23:29 +0000901
njna3e96762006-03-27 12:23:44 +0000902BUGS FIXED:
903
sewardj1ede80f2006-05-26 00:47:13 +0000904108258 NPTL pthread cleanup handlers not called
905117290 valgrind is sigKILL'd on startup
906117295 == 117290
907118703 m_signals.c:1427 Assertion 'tst->status == VgTs_WaitSys'
908118466 add %reg, %reg generates incorrect validity for bit 0
909123210 New: strlen from ld-linux on amd64
910123244 DWARF2 CFI reader: unhandled CFI instruction 0:18
911123248 syscalls in glibc-2.4: openat, fstatat, symlinkat
912123258 socketcall.recvmsg(msg.msg_iov[i] points to uninit
913123535 mremap(new_addr) requires MREMAP_FIXED in 4th arg
914123836 small typo in the doc
915124029 ppc compile failed: `vor' gcc 3.3.5
916124222 Segfault: @@don't know what type ':' is
917124475 ppc32: crash (syscall?) timer_settime()
918124499 amd64->IR: 0xF 0xE 0x48 0x85 (femms)
919124528 FATAL: aspacem assertion failed: segment_is_sane
920124697 vex x86->IR: 0xF 0x70 0xC9 0x0 (pshufw)
921124892 vex x86->IR: 0xF3 0xAE (REPx SCASB)
922126216 == 124892
923124808 ppc32: sys_sched_getaffinity() not handled
924n-i-bz Very long stabs strings crash m_debuginfo
925n-i-bz amd64->IR: 0x66 0xF 0xF5 (pmaddwd)
926125492 ppc32: support a bunch more syscalls
927121617 ppc32/64: coredumping gives assertion failure
928121814 Coregrind return error as exitcode patch
929126517 == 121814
sewardj1ede80f2006-05-26 00:47:13 +0000930125607 amd64->IR: 0x66 0xF 0xA3 0x2 (btw etc)
931125651 amd64->IR: 0xF8 0x49 0xFF 0xE3 (clc?)
932126253 x86 movx is wrong
933126451 3.2 SVN doesn't work on ppc32 CPU's without FPU
934126217 increase # threads
935126243 vex x86->IR: popw mem
936126583 amd64->IR: 0x48 0xF 0xA4 0xC2 (shld $1,%rax,%rdx)
sewardjb70a6132006-05-27 21:14:09 +0000937126668 amd64->IR: 0x1C 0xFF (sbb $0xff,%al)
938126696 support for CDROMREADRAW ioctl and CDROMREADTOCENTRY fix
939126722 assertion: segment_is_sane at m_aspacemgr/aspacemgr.c:1624
940126938 bad checking for syscalls linkat, renameat, symlinkat
sewardj1ede80f2006-05-26 00:47:13 +0000941
sewardj3ecf8f22006-06-06 21:41:22 +0000942(3.2.0RC1: 27 May 2006, vex r1626, valgrind r5947).
943(3.2.0: 7 June 2006, vex r1628, valgrind r5957).
njna3e96762006-03-27 12:23:44 +0000944
945
sewardj50654672006-03-16 11:33:14 +0000946Release 3.1.1 (15 March 2006)
947~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9483.1.1 fixes a bunch of bugs reported in 3.1.0. There is no new
949functionality. The fixed bugs are:
950
951(note: "n-i-bz" means "not in bugzilla" -- this bug does not have
952 a bugzilla entry).
953
954n-i-bz ppc32: fsub 3,3,3 in dispatcher doesn't clear NaNs
955n-i-bz ppc32: __NR_{set,get}priority
956117332 x86: missing line info with icc 8.1
957117366 amd64: 0xDD 0x7C fnstsw
958118274 == 117366
959117367 amd64: 0xD9 0xF4 fxtract
960117369 amd64: __NR_getpriority (140)
961117419 ppc32: lfsu f5, -4(r11)
962117419 ppc32: fsqrt
963117936 more stabs problems (segfaults while reading debug info)
964119914 == 117936
965120345 == 117936
966118239 amd64: 0xF 0xAE 0x3F (clflush)
967118939 vm86old system call
968n-i-bz memcheck/tests/mempool reads freed memory
969n-i-bz AshleyP's custom-allocator assertion
970n-i-bz Dirk strict-aliasing stuff
971n-i-bz More space for debugger cmd line (Dan Thaler)
972n-i-bz Clarified leak checker output message
973n-i-bz AshleyP's --gen-suppressions output fix
974n-i-bz cg_annotate's --sort option broken
975n-i-bz OSet 64-bit fastcmp bug
976n-i-bz VG_(getgroups) fix (Shinichi Noda)
977n-i-bz ppc32: allocate from callee-saved FP/VMX regs
978n-i-bz misaligned path word-size bug in mc_main.c
979119297 Incorrect error message for sse code
980120410 x86: prefetchw (0xF 0xD 0x48 0x4)
981120728 TIOCSERGETLSR, TIOCGICOUNT, HDIO_GET_DMA ioctls
982120658 Build fixes for gcc 2.96
983120734 x86: Support for changing EIP in signal handler
984n-i-bz memcheck/tests/zeropage de-looping fix
985n-i-bz x86: fxtract doesn't work reliably
986121662 x86: lock xadd (0xF0 0xF 0xC0 0x2)
987121893 calloc does not always return zeroed memory
988121901 no support for syscall tkill
989n-i-bz Suppression update for Debian unstable
990122067 amd64: fcmovnu (0xDB 0xD9)
991n-i-bz ppc32: broken signal handling in cpu feature detection
992n-i-bz ppc32: rounding mode problems (improved, partial fix only)
993119482 ppc32: mtfsb1
994n-i-bz ppc32: mtocrf/mfocrf
995
996(3.1.1: 15 March 2006, vex r1597, valgrind r5771).
997
jseward43230652003-12-14 00:14:54 +0000998
sewardj4bbe9d72005-11-16 18:39:25 +0000999Release 3.1.0 (25 November 2005)
njnf63170c2005-11-12 19:09:51 +00001000~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardj4bbe9d72005-11-16 18:39:25 +000010013.1.0 is a feature release with a number of significant improvements:
1002AMD64 support is much improved, PPC32 support is good enough to be
1003usable, and the handling of memory management and address space is
1004much more robust. In detail:
njnf63170c2005-11-12 19:09:51 +00001005
sewardj4bbe9d72005-11-16 18:39:25 +00001006- AMD64 support is much improved. The 64-bit vs. 32-bit issues in
1007 3.0.X have been resolved, and it should "just work" now in all
1008 cases. On AMD64 machines both 64-bit and 32-bit versions of
1009 Valgrind are built. The right version will be invoked
1010 automatically, even when using --trace-children and mixing execution
1011 between 64-bit and 32-bit executables. Also, many more instructions
1012 are supported.
njnf63170c2005-11-12 19:09:51 +00001013
sewardj4bbe9d72005-11-16 18:39:25 +00001014- PPC32 support is now good enough to be usable. It should work with
1015 all tools, but please let us know if you have problems. Three
1016 classes of CPUs are supported: integer only (no FP, no Altivec),
1017 which covers embedded PPC uses, integer and FP but no Altivec
1018 (G3-ish), and CPUs capable of Altivec too (G4, G5).
njnf63170c2005-11-12 19:09:51 +00001019
sewardj4bbe9d72005-11-16 18:39:25 +00001020- Valgrind's address space management has been overhauled. As a
1021 result, Valgrind should be much more robust with programs that use
1022 large amounts of memory. There should be many fewer "memory
1023 exhausted" messages, and debug symbols should be read correctly on
1024 large (eg. 300MB+) executables. On 32-bit machines the full address
1025 space available to user programs (usually 3GB or 4GB) can be fully
1026 utilised. On 64-bit machines up to 32GB of space is usable; when
1027 using Memcheck that means your program can use up to about 14GB.
njnf63170c2005-11-12 19:09:51 +00001028
1029 A side effect of this change is that Valgrind is no longer protected
1030 against wild writes by the client. This feature was nice but relied
1031 on the x86 segment registers and so wasn't portable.
1032
1033- Most users should not notice, but as part of the address space
sewardj4bbe9d72005-11-16 18:39:25 +00001034 manager change, the way Valgrind is built has been changed. Each
1035 tool is now built as a statically linked stand-alone executable,
1036 rather than as a shared object that is dynamically linked with the
1037 core. The "valgrind" program invokes the appropriate tool depending
1038 on the --tool option. This slightly increases the amount of disk
1039 space used by Valgrind, but it greatly simplified many things and
1040 removed Valgrind's dependence on glibc.
njnf63170c2005-11-12 19:09:51 +00001041
njn336c89d2005-11-20 18:14:04 +00001042Please note that Addrcheck and Helgrind are still not working. Work
1043is underway to reinstate them (or equivalents). We apologise for the
1044inconvenience.
1045
njnf63170c2005-11-12 19:09:51 +00001046Other user-visible changes:
1047
1048- The --weird-hacks option has been renamed --sim-hints.
1049
1050- The --time-stamp option no longer gives an absolute date and time.
1051 It now prints the time elapsed since the program began.
1052
sewardj4bbe9d72005-11-16 18:39:25 +00001053- It should build with gcc-2.96.
1054
njn7cce5b82005-11-16 20:12:22 +00001055- Valgrind can now run itself (see README_DEVELOPERS for how).
sewardj47058612005-11-16 19:13:13 +00001056 This is not much use to you, but it means the developers can now
1057 profile Valgrind using Cachegrind. As a result a couple of
1058 performance bad cases have been fixed.
1059
sewardj6a5a69c2005-11-17 00:51:36 +00001060- The XML output format has changed slightly. See
1061 docs/internals/xml-output.txt.
1062
njn14c9add2005-11-18 17:36:01 +00001063- Core dumping has been reinstated (it was disabled in 3.0.0 and 3.0.1).
1064 If your program crashes while running under Valgrind, a core file with
1065 the name "vgcore.<pid>" will be created (if your settings allow core
1066 file creation). Note that the floating point information is not all
1067 there. If Valgrind itself crashes, the OS will create a normal core
1068 file.
1069
njnf63170c2005-11-12 19:09:51 +00001070The following are some user-visible changes that occurred in earlier
1071versions that may not have been announced, or were announced but not
njn7cce5b82005-11-16 20:12:22 +00001072widely noticed. So we're mentioning them now.
njnf63170c2005-11-12 19:09:51 +00001073
1074- The --tool flag is optional once again; if you omit it, Memcheck
1075 is run by default.
1076
1077- The --num-callers flag now has a default value of 12. It was
1078 previously 4.
1079
njn7cce5b82005-11-16 20:12:22 +00001080- The --xml=yes flag causes Valgrind's output to be produced in XML
1081 format. This is designed to make it easy for other programs to
1082 consume Valgrind's output. The format is described in the file
njnf63170c2005-11-12 19:09:51 +00001083 docs/internals/xml-format.txt.
1084
njn1f503992005-11-13 16:41:15 +00001085- The --gen-suppressions flag supports an "all" value that causes every
1086 suppression to be printed without asking.
1087
njnee88d282005-11-20 17:19:28 +00001088- The --log-file option no longer puts "pid" in the filename, eg. the
1089 old name "foo.pid12345" is now "foo.12345".
1090
njnc66077e2005-11-20 18:02:15 +00001091- There are several graphical front-ends for Valgrind, such as Valkyrie,
1092 Alleyoop and Valgui. See http://www.valgrind.org/downloads/guis.html
1093 for a list.
1094
njnf63170c2005-11-12 19:09:51 +00001095BUGS FIXED:
1096
sewardj4bbe9d72005-11-16 18:39:25 +00001097109861 amd64 hangs at startup
1098110301 ditto
1099111554 valgrind crashes with Cannot allocate memory
1100111809 Memcheck tool doesn't start java
1101111901 cross-platform run of cachegrind fails on opteron
1102113468 (vgPlain_mprotect_range): Assertion 'r != -1' failed.
1103 92071 Reading debugging info uses too much memory
1104109744 memcheck loses track of mmap from direct ld-linux.so.2
1105110183 tail of page with _end
1106 82301 FV memory layout too rigid
1107 98278 Infinite recursion possible when allocating memory
1108108994 Valgrind runs out of memory due to 133x overhead
1109115643 valgrind cannot allocate memory
1110105974 vg_hashtable.c static hash table
1111109323 ppc32: dispatch.S uses Altivec insn, which doesn't work on POWER.
1112109345 ptrace_setregs not yet implemented for ppc
1113110831 Would like to be able to run against both 32 and 64 bit
1114 binaries on AMD64
1115110829 == 110831
1116111781 compile of valgrind-3.0.0 fails on my linux (gcc 2.X prob)
1117112670 Cachegrind: cg_main.c:486 (handleOneStatement ...
1118112941 vex x86: 0xD9 0xF4 (fxtract)
1119110201 == 112941
1120113015 vex amd64->IR: 0xE3 0x14 0x48 0x83 (jrcxz)
1121113126 Crash with binaries built with -gstabs+/-ggdb
1122104065 == 113126
1123115741 == 113126
1124113403 Partial SSE3 support on x86
1125113541 vex: Grp5(x86) (alt encoding inc/dec) case 1
1126113642 valgrind crashes when trying to read debug information
1127113810 vex x86->IR: 66 0F F6 (66 + PSADBW == SSE PSADBW)
1128113796 read() and write() do not work if buffer is in shared memory
1129113851 vex x86->IR: (pmaddwd): 0x66 0xF 0xF5 0xC7
1130114366 vex amd64 cannnot handle __asm__( "fninit" )
1131114412 vex amd64->IR: 0xF 0xAD 0xC2 0xD3 (128-bit shift, shrdq?)
1132114455 vex amd64->IR: 0xF 0xAC 0xD0 0x1 (also shrdq)
1133115590: amd64->IR: 0x67 0xE3 0x9 0xEB (address size override)
1134115953 valgrind svn r5042 does not build with parallel make (-j3)
1135116057 maximum instruction size - VG_MAX_INSTR_SZB too small?
1136116483 shmat failes with invalid argument
1137102202 valgrind crashes when realloc'ing until out of memory
1138109487 == 102202
1139110536 == 102202
1140112687 == 102202
1141111724 vex amd64->IR: 0x41 0xF 0xAB (more BT{,S,R,C} fun n games)
1142111748 vex amd64->IR: 0xDD 0xE2 (fucom)
1143111785 make fails if CC contains spaces
1144111829 vex x86->IR: sbb AL, Ib
1145111851 vex x86->IR: 0x9F 0x89 (lahf/sahf)
1146112031 iopl on AMD64 and README_MISSING_SYSCALL_OR_IOCTL update
1147112152 code generation for Xin_MFence on x86 with SSE0 subarch
1148112167 == 112152
1149112789 == 112152
1150112199 naked ar tool is used in vex makefile
1151112501 vex x86->IR: movq (0xF 0x7F 0xC1 0xF) (mmx MOVQ)
1152113583 == 112501
1153112538 memalign crash
1154113190 Broken links in docs/html/
1155113230 Valgrind sys_pipe on x86-64 wrongly thinks file descriptors
1156 should be 64bit
1157113996 vex amd64->IR: fucomp (0xDD 0xE9)
1158114196 vex x86->IR: out %eax,(%dx) (0xEF 0xC9 0xC3 0x90)
1159114289 Memcheck fails to intercept malloc when used in an uclibc environment
1160114756 mbind syscall support
1161114757 Valgrind dies with assertion: Assertion 'noLargerThan > 0' failed
1162114563 stack tracking module not informed when valgrind switches threads
1163114564 clone() and stacks
1164114565 == 114564
1165115496 glibc crashes trying to use sysinfo page
1166116200 enable fsetxattr, fgetxattr, and fremovexattr for amd64
njnf63170c2005-11-12 19:09:51 +00001167
sewardjae17e7e2005-11-20 19:45:30 +00001168(3.1.0RC1: 20 November 2005, vex r1466, valgrind r5224).
sewardjfa462022005-11-26 13:38:58 +00001169(3.1.0: 26 November 2005, vex r1471, valgrind r5235).
sewardjae17e7e2005-11-20 19:45:30 +00001170
njnf63170c2005-11-12 19:09:51 +00001171
sewardjcd62fe72005-08-29 13:24:51 +00001172Release 3.0.1 (29 August 2005)
1173~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11743.0.1 fixes a bunch of bugs reported in 3.0.0. There is no new
1175functionality. Some of the fixed bugs are critical, so if you
sewardjfa233892005-08-30 12:35:36 +00001176use/distribute 3.0.0, an upgrade to 3.0.1 is recommended. The fixed
sewardjcd62fe72005-08-29 13:24:51 +00001177bugs are:
1178
1179(note: "n-i-bz" means "not in bugzilla" -- this bug does not have
1180 a bugzilla entry).
1181
1182109313 (== 110505) x86 cmpxchg8b
1183n-i-bz x86: track but ignore changes to %eflags.AC (alignment check)
1184110102 dis_op2_E_G(amd64)
1185110202 x86 sys_waitpid(#286)
1186110203 clock_getres(,0)
1187110208 execve fail wrong retval
1188110274 SSE1 now mandatory for x86
1189110388 amd64 0xDD 0xD1
1190110464 amd64 0xDC 0x1D FCOMP
1191110478 amd64 0xF 0xD PREFETCH
1192n-i-bz XML <unique> printing wrong
1193n-i-bz Dirk r4359 (amd64 syscalls from trunk)
1194110591 amd64 and x86: rdtsc not implemented properly
1195n-i-bz Nick r4384 (stub implementations of Addrcheck and Helgrind)
1196110652 AMD64 valgrind crashes on cwtd instruction
1197110653 AMD64 valgrind crashes on sarb $0x4,foo(%rip) instruction
1198110656 PATH=/usr/bin::/bin valgrind foobar stats ./fooba
1199110657 Small test fixes
1200110671 vex x86->IR: unhandled instruction bytes: 0xF3 0xC3 (rep ret)
1201n-i-bz Nick (Cachegrind should not assert when it encounters a client
1202 request.)
1203110685 amd64->IR: unhandled instruction bytes: 0xE1 0x56 (loope Jb)
1204110830 configuring with --host fails to build 32 bit on 64 bit target
1205110875 Assertion when execve fails
1206n-i-bz Updates to Memcheck manual
1207n-i-bz Fixed broken malloc_usable_size()
1208110898 opteron instructions missing: btq btsq btrq bsfq
1209110954 x86->IR: unhandled instruction bytes: 0xE2 0xF6 (loop Jb)
1210n-i-bz Make suppressions work for "???" lines in stacktraces.
1211111006 bogus warnings from linuxthreads
1212111092 x86: dis_Grp2(Reg): unhandled case(x86)
1213111231 sctp_getladdrs() and sctp_getpaddrs() returns uninitialized
1214 memory
1215111102 (comment #4) Fixed 64-bit unclean "silly arg" message
1216n-i-bz vex x86->IR: unhandled instruction bytes: 0x14 0x0
1217n-i-bz minor umount/fcntl wrapper fixes
1218111090 Internal Error running Massif
1219101204 noisy warning
1220111513 Illegal opcode for SSE instruction (x86 movups)
1221111555 VEX/Makefile: CC is set to gcc
sewardjfa233892005-08-30 12:35:36 +00001222n-i-bz Fix XML bugs in FAQ
sewardjcd62fe72005-08-29 13:24:51 +00001223
sewardjfa233892005-08-30 12:35:36 +00001224(3.0.1: 29 August 05,
1225 vex/branches/VEX_3_0_BRANCH r1367,
1226 valgrind/branches/VALGRIND_3_0_BRANCH r4574).
sewardj820c7722005-08-29 13:44:43 +00001227
1228
sewardjcd62fe72005-08-29 13:24:51 +00001229
sewardjec39f332005-08-02 15:28:07 +00001230Release 3.0.0 (3 August 2005)
1231~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardjf9929e62005-08-02 21:05:58 +000012323.0.0 is a major overhaul of Valgrind. The most significant user
1233visible change is that Valgrind now supports architectures other than
1234x86. The new architectures it supports are AMD64 and PPC32, and the
1235infrastructure is present for other architectures to be added later.
njn4a9f6f42005-07-19 23:46:08 +00001236
sewardjf9929e62005-08-02 21:05:58 +00001237AMD64 support works well, but has some shortcomings:
njn4a9f6f42005-07-19 23:46:08 +00001238
njn7b1a6a42005-07-20 04:20:44 +00001239- It generally won't be as solid as the x86 version. For example,
1240 support for more obscure instructions and system calls may be missing.
1241 We will fix these as they arise.
njn4a9f6f42005-07-19 23:46:08 +00001242
sewardjc371bd02005-07-27 09:55:24 +00001243- Address space may be limited; see the point about
njn7b1a6a42005-07-20 04:20:44 +00001244 position-independent executables below.
njn4a9f6f42005-07-19 23:46:08 +00001245
njn7b1a6a42005-07-20 04:20:44 +00001246- If Valgrind is built on an AMD64 machine, it will only run 64-bit
1247 executables. If you want to run 32-bit x86 executables under Valgrind
1248 on an AMD64, you will need to build Valgrind on an x86 machine and
1249 copy it to the AMD64 machine. And it probably won't work if you do
1250 something tricky like exec'ing a 32-bit program from a 64-bit program
1251 while using --trace-children=yes. We hope to improve this situation
1252 in the future.
1253
1254The PPC32 support is very basic. It may not work reliably even for
sewardjc371bd02005-07-27 09:55:24 +00001255small programs, but it's a start. Many thanks to Paul Mackerras for
1256his great work that enabled this support. We are working to make
1257PPC32 usable as soon as possible.
njn4a9f6f42005-07-19 23:46:08 +00001258
1259Other user-visible changes:
1260
sewardjec39f332005-08-02 15:28:07 +00001261- Valgrind is no longer built by default as a position-independent
1262 executable (PIE), as this caused too many problems.
njn4a9f6f42005-07-19 23:46:08 +00001263
1264 Without PIE enabled, AMD64 programs will only be able to access 2GB of
1265 address space. We will fix this eventually, but not for the moment.
1266
1267 Use --enable-pie at configure-time to turn this on.
1268
1269- Support for programs that use stack-switching has been improved. Use
1270 the --max-stackframe flag for simple cases, and the
1271 VALGRIND_STACK_REGISTER, VALGRIND_STACK_DEREGISTER and
1272 VALGRIND_STACK_CHANGE client requests for trickier cases.
1273
njn7b1a6a42005-07-20 04:20:44 +00001274- Support for programs that use self-modifying code has been improved,
1275 in particular programs that put temporary code fragments on the stack.
1276 This helps for C programs compiled with GCC that use nested functions,
njne7723322005-07-24 17:19:09 +00001277 and also Ada programs. This is controlled with the --smc-check
njn7b1a6a42005-07-20 04:20:44 +00001278 flag, although the default setting should work in most cases.
njn4a9f6f42005-07-19 23:46:08 +00001279
njn7b1a6a42005-07-20 04:20:44 +00001280- Output can now be printed in XML format. This should make it easier
sewardjc371bd02005-07-27 09:55:24 +00001281 for tools such as GUI front-ends and automated error-processing
1282 schemes to use Valgrind output as input. The --xml flag controls this.
1283 As part of this change, ELF directory information is read from executables,
1284 so absolute source file paths are available if needed.
njn4a9f6f42005-07-19 23:46:08 +00001285
1286- Programs that allocate many heap blocks may run faster, due to
1287 improvements in certain data structures.
1288
njn7b1a6a42005-07-20 04:20:44 +00001289- Addrcheck is currently not working. We hope to get it working again
1290 soon. Helgrind is still not working, as was the case for the 2.4.0
1291 release.
njn4a9f6f42005-07-19 23:46:08 +00001292
sewardjc371bd02005-07-27 09:55:24 +00001293- The JITter has been completely rewritten, and is now in a separate
1294 library, called Vex. This enabled a lot of the user-visible changes,
1295 such as new architecture support. The new JIT unfortunately translates
1296 more slowly than the old one, so programs may take longer to start.
1297 We believe the code quality is produces is about the same, so once
1298 started, programs should run at about the same speed. Feedback about
1299 this would be useful.
1300
1301 On the plus side, Vex and hence Memcheck tracks value flow properly
1302 through floating point and vector registers, something the 2.X line
1303 could not do. That means that Memcheck is much more likely to be
1304 usably accurate on vectorised code.
1305
sewardjec39f332005-08-02 15:28:07 +00001306- There is a subtle change to the way exiting of threaded programs
sewardjc371bd02005-07-27 09:55:24 +00001307 is handled. In 3.0, Valgrind's final diagnostic output (leak check,
1308 etc) is not printed until the last thread exits. If the last thread
1309 to exit was not the original thread which started the program, any
1310 other process wait()-ing on this one to exit may conclude it has
1311 finished before the diagnostic output is printed. This may not be
1312 what you expect. 2.X had a different scheme which avoided this
1313 problem, but caused deadlocks under obscure circumstances, so we
1314 are trying something different for 3.0.
1315
1316- Small changes in control log file naming which make it easier to
sewardjec39f332005-08-02 15:28:07 +00001317 use valgrind for debugging MPI-based programs. The relevant
1318 new flags are --log-file-exactly= and --log-file-qualifier=.
sewardjc371bd02005-07-27 09:55:24 +00001319
1320- As part of adding AMD64 support, DWARF2 CFI-based stack unwinding
1321 support was added. In principle this means Valgrind can produce
1322 meaningful backtraces on x86 code compiled with -fomit-frame-pointer
tom81868f02005-07-27 10:33:08 +00001323 providing you also compile your code with -fasynchronous-unwind-tables.
sewardjc371bd02005-07-27 09:55:24 +00001324
sewardjec39f332005-08-02 15:28:07 +00001325- The documentation build system has been completely redone.
1326 The documentation masters are now in XML format, and from that
1327 HTML, PostScript and PDF documentation is generated. As a result
1328 the manual is now available in book form. Note that the
1329 documentation in the source tarballs is pre-built, so you don't need
1330 any XML processing tools to build Valgrind from a tarball.
njn4a9f6f42005-07-19 23:46:08 +00001331
1332Changes that are not user-visible:
1333
sewardjc371bd02005-07-27 09:55:24 +00001334- The code has been massively overhauled in order to modularise it.
1335 As a result we hope it is easier to navigate and understand.
njn4a9f6f42005-07-19 23:46:08 +00001336
1337- Lots of code has been rewritten.
1338
sewardjf9929e62005-08-02 21:05:58 +00001339BUGS FIXED:
njn4a9f6f42005-07-19 23:46:08 +00001340
sewardj79bd9b62005-08-03 16:40:10 +00001341110046 sz == 4 assertion failed
1342109810 vex amd64->IR: unhandled instruction bytes: 0xA3 0x4C 0x70 0xD7
sewardjf9929e62005-08-02 21:05:58 +00001343109802 Add a plausible_stack_size command-line parameter ?
1344109783 unhandled ioctl TIOCMGET (running hw detection tool discover)
1345109780 unhandled ioctl BLKSSZGET (running fdisk -l /dev/hda)
1346109718 vex x86->IR: unhandled instruction: ffreep
1347109429 AMD64 unhandled syscall: 127 (sigpending)
1348109401 false positive uninit in strchr from ld-linux.so.2
1349109385 "stabs" parse failure
1350109378 amd64: unhandled instruction REP NOP
1351109376 amd64: unhandled instruction LOOP Jb
1352109363 AMD64 unhandled instruction bytes
1353109362 AMD64 unhandled syscall: 24 (sched_yield)
1354109358 fork() won't work with valgrind-3.0 SVN
1355109332 amd64 unhandled instruction: ADC Ev, Gv
1356109314 Bogus memcheck report on amd64
1357108883 Crash; vg_memory.c:905 (vgPlain_init_shadow_range):
1358 Assertion `vgPlain_defined_init_shadow_page()' failed.
1359108349 mincore syscall parameter checked incorrectly
1360108059 build infrastructure: small update
1361107524 epoll_ctl event parameter checked on EPOLL_CTL_DEL
1362107123 Vex dies with unhandled instructions: 0xD9 0x31 0xF 0xAE
1363106841 auxmap & openGL problems
1364106713 SDL_Init causes valgrind to exit
1365106352 setcontext and makecontext not handled correctly
1366106293 addresses beyond initial client stack allocation
1367 not checked in VALGRIND_DO_LEAK_CHECK
1368106283 PIE client programs are loaded at address 0
1369105831 Assertion `vgPlain_defined_init_shadow_page()' failed.
1370105039 long run-times probably due to memory manager
1371104797 valgrind needs to be aware of BLKGETSIZE64
1372103594 unhandled instruction: FICOM
1373103320 Valgrind 2.4.0 fails to compile with gcc 3.4.3 and -O0
1374103168 potentially memory leak in coregrind/ume.c
1375102039 bad permissions for mapped region at address 0xB7C73680
1376101881 weird assertion problem
1377101543 Support fadvise64 syscalls
137875247 x86_64/amd64 support (the biggest "bug" we have ever fixed)
njn4a9f6f42005-07-19 23:46:08 +00001379
sewardj9a919512005-08-03 17:01:51 +00001380(3.0RC1: 27 July 05, vex r1303, valgrind r4283).
sewardj1346e132005-08-03 20:42:06 +00001381(3.0.0: 3 August 05, vex r1313, valgrind r4316).
sewardjbfa2b992005-07-27 17:49:17 +00001382
1383
1384
njn8c927302005-03-12 16:45:01 +00001385Stable release 2.4.0 (March 2005) -- CHANGES RELATIVE TO 2.2.0
njn1aa5ae42005-03-26 16:04:27 +00001386~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13872.4.0 brings many significant changes and bug fixes. The most
1388significant user-visible change is that we no longer supply our own
1389pthread implementation. Instead, Valgrind is finally capable of
1390running the native thread library, either LinuxThreads or NPTL.
njn8c927302005-03-12 16:45:01 +00001391
njn1aa5ae42005-03-26 16:04:27 +00001392This means our libpthread has gone, along with the bugs associated
1393with it. Valgrind now supports the kernel's threading syscalls, and
1394lets you use your standard system libpthread. As a result:
njn8c927302005-03-12 16:45:01 +00001395
njn1aa5ae42005-03-26 16:04:27 +00001396* There are many fewer system dependencies and strange library-related
1397 bugs. There is a small performance improvement, and a large
1398 stability improvement.
njn8c927302005-03-12 16:45:01 +00001399
njn1aa5ae42005-03-26 16:04:27 +00001400* On the downside, Valgrind can no longer report misuses of the POSIX
1401 PThreads API. It also means that Helgrind currently does not work.
1402 We hope to fix these problems in a future release.
njn8c927302005-03-12 16:45:01 +00001403
njn1aa5ae42005-03-26 16:04:27 +00001404Note that running the native thread libraries does not mean Valgrind
1405is able to provide genuine concurrent execution on SMPs. We still
1406impose the restriction that only one thread is running at any given
1407time.
njn8c927302005-03-12 16:45:01 +00001408
njn1aa5ae42005-03-26 16:04:27 +00001409There are many other significant changes too:
njn8c927302005-03-12 16:45:01 +00001410
njn1aa5ae42005-03-26 16:04:27 +00001411* Memcheck is (once again) the default tool.
njn8c927302005-03-12 16:45:01 +00001412
njn1aa5ae42005-03-26 16:04:27 +00001413* The default stack backtrace is now 12 call frames, rather than 4.
njn8c927302005-03-12 16:45:01 +00001414
njn1aa5ae42005-03-26 16:04:27 +00001415* Suppressions can have up to 25 call frame matches, rather than 4.
njn8c927302005-03-12 16:45:01 +00001416
njn1aa5ae42005-03-26 16:04:27 +00001417* Memcheck and Addrcheck use less memory. Under some circumstances,
1418 they no longer allocate shadow memory if there are large regions of
1419 memory with the same A/V states - such as an mmaped file.
njn8c927302005-03-12 16:45:01 +00001420
njn1aa5ae42005-03-26 16:04:27 +00001421* The memory-leak detector in Memcheck and Addrcheck has been
1422 improved. It now reports more types of memory leak, including
1423 leaked cycles. When reporting leaked memory, it can distinguish
1424 between directly leaked memory (memory with no references), and
1425 indirectly leaked memory (memory only referred to by other leaked
1426 memory).
njn8c927302005-03-12 16:45:01 +00001427
njn1aa5ae42005-03-26 16:04:27 +00001428* Memcheck's confusion over the effect of mprotect() has been fixed:
1429 previously mprotect could erroneously mark undefined data as
1430 defined.
njn8c927302005-03-12 16:45:01 +00001431
njn1aa5ae42005-03-26 16:04:27 +00001432* Signal handling is much improved and should be very close to what
1433 you get when running natively.
1434
1435 One result of this is that Valgrind observes changes to sigcontexts
1436 passed to signal handlers. Such modifications will take effect when
1437 the signal returns. You will need to run with --single-step=yes to
1438 make this useful.
njn8c927302005-03-12 16:45:01 +00001439
1440* Valgrind is built in Position Independent Executable (PIE) format if
njn1aa5ae42005-03-26 16:04:27 +00001441 your toolchain supports it. This allows it to take advantage of all
njn8c927302005-03-12 16:45:01 +00001442 the available address space on systems with 4Gbyte user address
1443 spaces.
1444
1445* Valgrind can now run itself (requires PIE support).
1446
njn1aa5ae42005-03-26 16:04:27 +00001447* Syscall arguments are now checked for validity. Previously all
1448 memory used by syscalls was checked, but now the actual values
1449 passed are also checked.
njn8c927302005-03-12 16:45:01 +00001450
njn1aa5ae42005-03-26 16:04:27 +00001451* Syscall wrappers are more robust against bad addresses being passed
1452 to syscalls: they will fail with EFAULT rather than killing Valgrind
1453 with SIGSEGV.
njn8c927302005-03-12 16:45:01 +00001454
njn1aa5ae42005-03-26 16:04:27 +00001455* Because clone() is directly supported, some non-pthread uses of it
1456 will work. Partial sharing (where some resources are shared, and
1457 some are not) is not supported.
1458
1459* open() and readlink() on /proc/self/exe are supported.
1460
1461BUGS FIXED:
1462
146388520 pipe+fork+dup2 kills the main program
146488604 Valgrind Aborts when using $VALGRIND_OPTS and user progra...
146588614 valgrind: vg_libpthread.c:2323 (read): Assertion `read_pt...
146688703 Stabs parser fails to handle ";"
146788886 ioctl wrappers for TIOCMBIS and TIOCMBIC
146889032 valgrind pthread_cond_timedwait fails
146989106 the 'impossible' happened
147089139 Missing sched_setaffinity & sched_getaffinity
147189198 valgrind lacks support for SIOCSPGRP and SIOCGPGRP
147289263 Missing ioctl translations for scsi-generic and CD playing
147389440 tests/deadlock.c line endings
147489481 `impossible' happened: EXEC FAILED
147589663 valgrind 2.2.0 crash on Redhat 7.2
147689792 Report pthread_mutex_lock() deadlocks instead of returnin...
147790111 statvfs64 gives invalid error/warning
147890128 crash+memory fault with stabs generated by gnat for a run...
147990778 VALGRIND_CHECK_DEFINED() not as documented in memcheck.h
148090834 cachegrind crashes at end of program without reporting re...
148191028 valgrind: vg_memory.c:229 (vgPlain_unmap_range): Assertio...
148291162 valgrind crash while debugging drivel 1.2.1
148391199 Unimplemented function
148491325 Signal routing does not propagate the siginfo structure
148591599 Assertion `cv == ((void *)0)'
148691604 rw_lookup clears orig and sends the NULL value to rw_new
148791821 Small problems building valgrind with $top_builddir ne $t...
148891844 signal 11 (SIGSEGV) at get_tcb (libpthread.c:86) in corec...
148992264 UNIMPLEMENTED FUNCTION: pthread_condattr_setpshared
149092331 per-target flags necessitate AM_PROG_CC_C_O
149192420 valgrind doesn't compile with linux 2.6.8.1/9
149292513 Valgrind 2.2.0 generates some warning messages
149392528 vg_symtab2.c:170 (addLoc): Assertion `loc->size > 0' failed.
149493096 unhandled ioctl 0x4B3A and 0x5601
149593117 Tool and core interface versions do not match
149693128 Can't run valgrind --tool=memcheck because of unimplement...
149793174 Valgrind can crash if passed bad args to certain syscalls
149893309 Stack frame in new thread is badly aligned
149993328 Wrong types used with sys_sigprocmask()
150093763 /usr/include/asm/msr.h is missing
150193776 valgrind: vg_memory.c:508 (vgPlain_find_map_space): Asser...
150293810 fcntl() argument checking a bit too strict
150394378 Assertion `tst->sigqueue_head != tst->sigqueue_tail' failed.
150494429 valgrind 2.2.0 segfault with mmap64 in glibc 2.3.3
150594645 Impossible happened: PINSRW mem
150694953 valgrind: the `impossible' happened: SIGSEGV
150795667 Valgrind does not work with any KDE app
150896243 Assertion 'res==0' failed
150996252 stage2 loader of valgrind fails to allocate memory
151096520 All programs crashing at _dl_start (in /lib/ld-2.3.3.so) ...
151196660 ioctl CDROMREADTOCENTRY causes bogus warnings
151296747 After looping in a segfault handler, the impossible happens
151396923 Zero sized arrays crash valgrind trace back with SIGFPE
151496948 valgrind stops with assertion failure regarding mmap2
151596966 valgrind fails when application opens more than 16 sockets
151697398 valgrind: vg_libpthread.c:2667 Assertion failed
151797407 valgrind: vg_mylibc.c:1226 (vgPlain_safe_fd): Assertion `...
151897427 "Warning: invalid file descriptor -1 in syscall close()" ...
151997785 missing backtrace
152097792 build in obj dir fails - autoconf / makefile cleanup
152197880 pthread_mutex_lock fails from shared library (special ker...
152297975 program aborts without ang VG messages
152398129 Failed when open and close file 230000 times using stdio
152498175 Crashes when using valgrind-2.2.0 with a program using al...
152598288 Massif broken
152698303 UNIMPLEMENTED FUNCTION pthread_condattr_setpshared
152798630 failed--compilation missing warnings.pm, fails to make he...
152898756 Cannot valgrind signal-heavy kdrive X server
152998966 valgrinding the JVM fails with a sanity check assertion
153099035 Valgrind crashes while profiling
153199142 loops with message "Signal 11 being dropped from thread 0...
153299195 threaded apps crash on thread start (using QThread::start...
153399348 Assertion `vgPlain_lseek(core_fd, 0, 1) == phdrs[i].p_off...
153499568 False negative due to mishandling of mprotect
153599738 valgrind memcheck crashes on program that uses sigitimer
153699923 0-sized allocations are reported as leaks
153799949 program seg faults after exit()
1538100036 "newSuperblock's request for 1048576 bytes failed"
1539100116 valgrind: (pthread_cond_init): Assertion `sizeof(* cond) ...
1540100486 memcheck reports "valgrind: the `impossible' happened: V...
1541100833 second call to "mremap" fails with EINVAL
1542101156 (vgPlain_find_map_space): Assertion `(addr & ((1 << 12)-1...
1543101173 Assertion `recDepth >= 0 && recDepth < 500' failed
1544101291 creating threads in a forked process fails
1545101313 valgrind causes different behavior when resizing a window...
1546101423 segfault for c++ array of floats
1547101562 valgrind massif dies on SIGINT even with signal handler r...
1548
njn8c927302005-03-12 16:45:01 +00001549
jseward34ed74f2004-08-30 18:04:42 +00001550Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.0.0
1551~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseward7d180d92004-08-30 18:15:37 +000015522.2.0 brings nine months worth of improvements and bug fixes. We
1553believe it to be a worthy successor to 2.0.0. There are literally
1554hundreds of bug fixes and minor improvements. There are also some
1555fairly major user-visible changes:
1556
1557* A complete overhaul of handling of system calls and signals, and
1558 their interaction with threads. In general, the accuracy of the
1559 system call, thread and signal simulations is much improved:
1560
1561 - Blocking system calls behave exactly as they do when running
1562 natively (not on valgrind). That is, if a syscall blocks only the
1563 calling thread when running natively, than it behaves the same on
1564 valgrind. No more mysterious hangs because V doesn't know that some
1565 syscall or other, should block only the calling thread.
1566
1567 - Interrupted syscalls should now give more faithful results.
1568
1569 - Signal contexts in signal handlers are supported.
1570
1571* Improvements to NPTL support to the extent that V now works
1572 properly on NPTL-only setups.
1573
1574* Greater isolation between Valgrind and the program being run, so
1575 the program is less likely to inadvertently kill Valgrind by
1576 doing wild writes.
1577
1578* Massif: a new space profiling tool. Try it! It's cool, and it'll
1579 tell you in detail where and when your C/C++ code is allocating heap.
1580 Draws pretty .ps pictures of memory use against time. A potentially
1581 powerful tool for making sense of your program's space use.
1582
1583* File descriptor leakage checks. When enabled, Valgrind will print out
1584 a list of open file descriptors on exit.
1585
1586* Improved SSE2/SSE3 support.
1587
jseward2eb002b2004-08-31 00:14:02 +00001588* Time-stamped output; use --time-stamp=yes
1589
jseward34ed74f2004-08-30 18:04:42 +00001590
1591
1592Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.1.2
1593~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15942.2.0 is not much different from 2.1.2, released seven weeks ago.
1595A number of bugs have been fixed, most notably #85658, which gave
1596problems for quite a few people. There have been many internal
1597cleanups, but those are not user visible.
1598
1599The following bugs have been fixed since 2.1.2:
1600
160185658 Assert in coregrind/vg_libpthread.c:2326 (open64) !=
1602 (void*)0 failed
1603 This bug was reported multiple times, and so the following
1604 duplicates of it are also fixed: 87620, 85796, 85935, 86065,
1605 86919, 86988, 87917, 88156
1606
160780716 Semaphore mapping bug caused by unmap (sem_destroy)
1608 (Was fixed prior to 2.1.2)
1609
161086987 semctl and shmctl syscalls family is not handled properly
1611
161286696 valgrind 2.1.2 + RH AS2.1 + librt
1613
161486730 valgrind locks up at end of run with assertion failure
1615 in __pthread_unwind
1616
161786641 memcheck doesn't work with Mesa OpenGL/ATI on Suse 9.1
1618 (also fixes 74298, a duplicate of this)
1619
162085947 MMX/SSE unhandled instruction 'sfence'
1621
162284978 Wrong error "Conditional jump or move depends on
1623 uninitialised value" resulting from "sbbl %reg, %reg"
1624
162586254 ssort() fails when signed int return type from comparison is
1626 too small to handle result of unsigned int subtraction
1627
162887089 memalign( 4, xxx) makes valgrind assert
1629
jseward2eb002b2004-08-31 00:14:02 +0000163086407 Add support for low-level parallel port driver ioctls.
jseward34ed74f2004-08-30 18:04:42 +00001631
163270587 Add timestamps to Valgrind output? (wishlist)
1633
163484937 vg_libpthread.c:2505 (se_remap): Assertion `res == 0'
1635 (fixed prior to 2.1.2)
1636
163786317 cannot load libSDL-1.2.so.0 using valgrind
1638
163986989 memcpy from mac_replace_strmem.c complains about
1640 uninitialized pointers passed when length to copy is zero
1641
164285811 gnu pascal symbol causes segmentation fault; ok in 2.0.0
1643
164479138 writing to sbrk()'d memory causes segfault
1645
164677369 sched deadlock while signal received during pthread_join
1647 and the joined thread exited
1648
164988115 In signal handler for SIGFPE, siginfo->si_addr is wrong
1650 under Valgrind
1651
165278765 Massif crashes on app exit if FP exceptions are enabled
1653
1654Additionally there are the following changes, which are not
1655connected to any bug report numbers, AFAICS:
1656
1657* Fix scary bug causing mis-identification of SSE stores vs
1658 loads and so causing memcheck to sometimes give nonsense results
1659 on SSE code.
1660
1661* Add support for the POSIX message queue system calls.
1662
1663* Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
1664 NOT allow Valgrind to work with 64-bit executables - only with 32-bit
1665 executables on an AMD64 box.
1666
1667* At configure time, only check whether linux/mii.h can be processed
1668 so that we don't generate ugly warnings by trying to compile it.
1669
jseward2eb002b2004-08-31 00:14:02 +00001670* Add support for POSIX clocks and timers.
1671
jseward34ed74f2004-08-30 18:04:42 +00001672
1673
jseward9cd978c2004-07-17 13:38:12 +00001674Developer (cvs head) release 2.1.2 (18 July 2004)
jsewardbd0a6e42004-07-17 12:19:43 +00001675~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16762.1.2 contains four months worth of bug fixes and refinements.
jseward9cd978c2004-07-17 13:38:12 +00001677Although officially a developer release, we believe it to be stable
1678enough for widespread day-to-day use. 2.1.2 is pretty good, so try it
1679first, although there is a chance it won't work. If so then try 2.0.0
1680and tell us what went wrong." 2.1.2 fixes a lot of problems present
1681in 2.0.0 and is generally a much better product.
jsewardbd0a6e42004-07-17 12:19:43 +00001682
jseward9cd978c2004-07-17 13:38:12 +00001683Relative to 2.1.1, a large number of minor problems with 2.1.1 have
1684been fixed, and so if you use 2.1.1 you should try 2.1.2. Users of
1685the last stable release, 2.0.0, might also want to try this release.
jsewardbd0a6e42004-07-17 12:19:43 +00001686
1687The following bugs, and probably many more, have been fixed. These
1688are listed at http://bugs.kde.org. Reporting a bug for valgrind in
1689the http://bugs.kde.org is much more likely to get you a fix than
1690mailing developers directly, so please continue to keep sending bugs
1691there.
1692
169376869 Crashes when running any tool under Fedora Core 2 test1
1694 This fixes the problem with returning from a signal handler
jseward0400d4d2004-07-17 23:26:46 +00001695 when VDSOs are turned off in FC2.
jsewardbd0a6e42004-07-17 12:19:43 +00001696
jseward0400d4d2004-07-17 23:26:46 +0000169769508 java 1.4.2 client fails with erroneous "stack size too small".
1698 This fix makes more of the pthread stack attribute related
1699 functions work properly. Java still doesn't work though.
jsewardbd0a6e42004-07-17 12:19:43 +00001700
170171906 malloc alignment should be 8, not 4
1702 All memory returned by malloc/new etc is now at least
1703 8-byte aligned.
1704
jsewarda6017a42004-07-17 23:44:35 +0000170581970 vg_alloc_ThreadState: no free slots available
1706 (closed because the workaround is simple: increase
1707 VG_N_THREADS, rebuild and try again.)
1708
jsewardbd0a6e42004-07-17 12:19:43 +0000170978514 Conditional jump or move depends on uninitialized value(s)
1710 (a slight mishanding of FP code in memcheck)
1711
jsewarda6017a42004-07-17 23:44:35 +0000171277952 pThread Support (crash) (due to initialisation-ordering probs)
1713 (also 85118)
1714
jsewardbd0a6e42004-07-17 12:19:43 +0000171580942 Addrcheck wasn't doing overlap checking as it should.
171678048 return NULL on malloc/new etc failure, instead of asserting
171773655 operator new() override in user .so files often doesn't get picked up
171883060 Valgrind does not handle native kernel AIO
171969872 Create proper coredumps after fatal signals
172082026 failure with new glibc versions: __libc_* functions are not exported
172170344 UNIMPLEMENTED FUNCTION: tcdrain
172281297 Cancellation of pthread_cond_wait does not require mutex
172382872 Using debug info from additional packages (wishlist)
172483025 Support for ioctls FIGETBSZ and FIBMAP
172583340 Support for ioctl HDIO_GET_IDENTITY
172679714 Support for the semtimedop system call.
172777022 Support for ioctls FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO
172882098 hp2ps ansification (wishlist)
172983573 Valgrind SIGSEGV on execve
173082999 show which cmdline option was erroneous (wishlist)
173183040 make valgrind VPATH and distcheck-clean (wishlist)
jsewarda6017a42004-07-17 23:44:35 +0000173283998 Assertion `newfd > vgPlain_max_fd' failed (see below)
173382722 Unchecked mmap in as_pad leads to mysterious failures later
173478958 memcheck seg faults while running Mozilla
jsewarda2c08002004-07-18 09:24:57 +0000173585416 Arguments with colon (e.g. --logsocket) ignored
jsewardbd0a6e42004-07-17 12:19:43 +00001736
1737
1738Additionally there are the following changes, which are not
1739connected to any bug report numbers, AFAICS:
1740
1741* Rearranged address space layout relative to 2.1.1, so that
1742 Valgrind/tools will run out of memory later than currently in many
1743 circumstances. This is good news esp. for Calltree. It should
1744 be possible for client programs to allocate over 800MB of
1745 memory when using memcheck now.
1746
jseward9cd978c2004-07-17 13:38:12 +00001747* Improved checking when laying out memory. Should hopefully avoid
1748 the random segmentation faults that 2.1.1 sometimes caused.
1749
jsewardbd0a6e42004-07-17 12:19:43 +00001750* Support for Fedora Core 2 and SuSE 9.1. Improvements to NPTL
1751 support to the extent that V now works properly on NPTL-only setups.
1752
1753* Renamed the following options:
1754 --logfile-fd --> --log-fd
1755 --logfile --> --log-file
1756 --logsocket --> --log-socket
1757 to be consistent with each other and other options (esp. --input-fd).
1758
1759* Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
1760 improve the checking of other interface related ioctls.
1761
jsewardbd0a6e42004-07-17 12:19:43 +00001762* Fix building with gcc-3.4.1.
1763
1764* Remove limit on number of semaphores supported.
1765
jsewardbd0a6e42004-07-17 12:19:43 +00001766* Add support for syscalls: set_tid_address (258), acct (51).
1767
1768* Support instruction "repne movs" -- not official but seems to occur.
1769
1770* Implement an emulated soft limit for file descriptors in addition to
1771 the current reserved area, which effectively acts as a hard limit. The
1772 setrlimit system call now simply updates the emulated limits as best
1773 as possible - the hard limit is not allowed to move at all and just
1774 returns EPERM if you try and change it. This should stop reductions
1775 in the soft limit causing assertions when valgrind tries to allocate
1776 descriptors from the reserved area.
jsewarda6017a42004-07-17 23:44:35 +00001777 (This actually came from bug #83998).
jsewardbd0a6e42004-07-17 12:19:43 +00001778
nethercote76e8fd92004-07-21 10:37:31 +00001779* Major overhaul of Cachegrind implementation. First user-visible change
nethercote5e63bfb2004-07-17 12:49:53 +00001780 is that cachegrind.out files are now typically 90% smaller than they
nethercote76e8fd92004-07-21 10:37:31 +00001781 used to be; code annotation times are correspondingly much smaller.
1782 Second user-visible change is that hit/miss counts for code that is
1783 unloaded at run-time is no longer dumped into a single "discard" pile,
1784 but accurately preserved.
jsewardbd0a6e42004-07-17 12:19:43 +00001785
1786* Client requests for telling valgrind about memory pools.
1787
1788
1789
jseward9cd978c2004-07-17 13:38:12 +00001790Developer (cvs head) release 2.1.1 (12 March 2004)
1791~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsewardbd0a6e42004-07-17 12:19:43 +000017922.1.1 contains some internal structural changes needed for V's
jsewarde3e77042004-03-12 21:07:05 +00001793long-term future. These don't affect end-users. Most notable
1794user-visible changes are:
1795
1796* Greater isolation between Valgrind and the program being run, so
1797 the program is less likely to inadvertently kill Valgrind by
1798 doing wild writes.
1799
1800* Massif: a new space profiling tool. Try it! It's cool, and it'll
1801 tell you in detail where and when your C/C++ code is allocating heap.
1802 Draws pretty .ps pictures of memory use against time. A potentially
1803 powerful tool for making sense of your program's space use.
1804
1805* Fixes for many bugs, including support for more SSE2/SSE3 instructions,
1806 various signal/syscall things, and various problems with debug
1807 info readers.
1808
1809* Support for glibc-2.3.3 based systems.
1810
1811We are now doing automatic overnight build-and-test runs on a variety
1812of distros. As a result, we believe 2.1.1 builds and runs on:
1813Red Hat 7.2, 7.3, 8.0, 9, Fedora Core 1, SuSE 8.2, SuSE 9.
1814
1815
1816The following bugs, and probably many more, have been fixed. These
1817are listed at http://bugs.kde.org. Reporting a bug for valgrind in
1818the http://bugs.kde.org is much more likely to get you a fix than
1819mailing developers directly, so please continue to keep sending bugs
1820there.
1821
182269616 glibc 2.3.2 w/NPTL is massively different than what valgrind expects
182369856 I don't know how to instrument MMXish stuff (Helgrind)
182473892 valgrind segfaults starting with Objective-C debug info
1825 (fix for S-type stabs)
182673145 Valgrind complains too much about close(<reserved fd>)
182773902 Shadow memory allocation seems to fail on RedHat 8.0
182868633 VG_N_SEMAPHORES too low (V itself was leaking semaphores)
182975099 impossible to trace multiprocess programs
183076839 the `impossible' happened: disInstr: INT but not 0x80 !
183176762 vg_to_ucode.c:3748 (dis_push_segreg): Assertion `sz == 4' failed.
183276747 cannot include valgrind.h in c++ program
183376223 parsing B(3,10) gave NULL type => impossible happens
183475604 shmdt handling problem
183576416 Problems with gcc 3.4 snap 20040225
183675614 using -gstabs when building your programs the `impossible' happened
183775787 Patch for some CDROM ioctls CDORM_GET_MCN, CDROM_SEND_PACKET,
183875294 gcc 3.4 snapshot's libstdc++ have unsupported instructions.
1839 (REP RET)
184073326 vg_symtab2.c:272 (addScopeRange): Assertion `range->size > 0' failed.
184172596 not recognizing __libc_malloc
184269489 Would like to attach ddd to running program
184372781 Cachegrind crashes with kde programs
184473055 Illegal operand at DXTCV11CompressBlockSSE2 (more SSE opcodes)
184573026 Descriptor leak check reports port numbers wrongly
184671705 README_MISSING_SYSCALL_OR_IOCTL out of date
184772643 Improve support for SSE/SSE2 instructions
184872484 valgrind leaves it's own signal mask in place when execing
184972650 Signal Handling always seems to restart system calls
185072006 The mmap system call turns all errors in ENOMEM
185171781 gdb attach is pretty useless
185271180 unhandled instruction bytes: 0xF 0xAE 0x85 0xE8
185369886 writes to zero page cause valgrind to assert on exit
185471791 crash when valgrinding gimp 1.3 (stabs reader problem)
185569783 unhandled syscall: 218
185669782 unhandled instruction bytes: 0x66 0xF 0x2B 0x80
185770385 valgrind fails if the soft file descriptor limit is less
1858 than about 828
185969529 "rep; nop" should do a yield
186070827 programs with lots of shared libraries report "mmap failed"
1861 for some of them when reading symbols
186271028 glibc's strnlen is optimised enough to confuse valgrind
1863
1864
1865
1866
jseward43230652003-12-14 00:14:54 +00001867Unstable (cvs head) release 2.1.0 (15 December 2003)
1868~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1869For whatever it's worth, 2.1.0 actually seems pretty darn stable to me
1870(Julian). It looks eminently usable, and given that it fixes some
1871significant bugs, may well be worth using on a day-to-day basis.
18722.1.0 is known to build and pass regression tests on: SuSE 9, SuSE
18738.2, RedHat 8.
1874
18752.1.0 most notably includes Jeremy Fitzhardinge's complete overhaul of
1876handling of system calls and signals, and their interaction with
1877threads. In general, the accuracy of the system call, thread and
1878signal simulations is much improved. Specifically:
1879
1880- Blocking system calls behave exactly as they do when running
1881 natively (not on valgrind). That is, if a syscall blocks only the
1882 calling thread when running natively, than it behaves the same on
1883 valgrind. No more mysterious hangs because V doesn't know that some
1884 syscall or other, should block only the calling thread.
1885
1886- Interrupted syscalls should now give more faithful results.
1887
1888- Finally, signal contexts in signal handlers are supported. As a
1889 result, konqueror on SuSE 9 no longer segfaults when notified of
1890 file changes in directories it is watching.
1891
1892Other changes:
1893
1894- Robert Walsh's file descriptor leakage checks. When enabled,
1895 Valgrind will print out a list of open file descriptors on
1896 exit. Along with each file descriptor, Valgrind prints out a stack
1897 backtrace of where the file was opened and any details relating to the
1898 file descriptor such as the file name or socket details.
1899 To use, give: --track-fds=yes
1900
1901- Implemented a few more SSE/SSE2 instructions.
1902
1903- Less crud on the stack when you do 'where' inside a GDB attach.
1904
1905- Fixed the following bugs:
1906 68360: Valgrind does not compile against 2.6.0-testX kernels
1907 68525: CVS head doesn't compile on C90 compilers
1908 68566: pkgconfig support (wishlist)
1909 68588: Assertion `sz == 4' failed in vg_to_ucode.c (disInstr)
1910 69140: valgrind not able to explicitly specify a path to a binary.
1911 69432: helgrind asserts encountering a MutexErr when there are
1912 EraserErr suppressions
1913
jseward0b12daf2003-12-14 14:35:28 +00001914- Increase the max size of the translation cache from 200k average bbs
1915 to 300k average bbs. Programs on the size of OOo (680m17) are
1916 thrashing the cache at the smaller size, creating large numbers of
1917 retranslations and wasting significant time as a result.
1918
jseward43230652003-12-14 00:14:54 +00001919
1920
1921Stable release 2.0.0 (5 Nov 2003)
1922~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1923
19242.0.0 improves SSE/SSE2 support, fixes some minor bugs, and
1925improves support for SuSE 9 and the Red Hat "Severn" beta.
1926
1927- Further improvements to SSE/SSE2 support. The entire test suite of
1928 the GNU Scientific Library (gsl-1.4) compiled with Intel Icc 7.1
1929 20030307Z '-g -O -xW' now works. I think this gives pretty good
1930 coverage of SSE/SSE2 floating point instructions, or at least the
1931 subset emitted by Icc.
1932
1933- Also added support for the following instructions:
1934 MOVNTDQ UCOMISD UNPCKLPS UNPCKHPS SQRTSS
1935 PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS).
1936
1937- CFI support for GDB version 6. Needed to enable newer GDBs
1938 to figure out where they are when using --gdb-attach=yes.
1939
1940- Fix this:
1941 mc_translate.c:1091 (memcheck_instrument): Assertion
1942 `u_in->size == 4 || u_in->size == 16' failed.
1943
1944- Return an error rather than panicing when given a bad socketcall.
1945
1946- Fix checking of syscall rt_sigtimedwait().
1947
1948- Implement __NR_clock_gettime (syscall 265). Needed on Red Hat Severn.
1949
1950- Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
1951 bytes long, when it could be shorter, which could cause false
1952 positives.
1953
1954- Support use of select() for very large numbers of file descriptors.
1955
1956- Don't fail silently if the executable is statically linked, or is
1957 setuid/setgid. Print an error message instead.
1958
1959- Support for old DWARF-1 format line number info.
1960
1961
1962
1963Snapshot 20031012 (12 October 2003)
1964~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1965
1966Three months worth of bug fixes, roughly. Most significant single
1967change is improved SSE/SSE2 support, mostly thanks to Dirk Mueller.
1968
196920031012 builds on Red Hat Fedora ("Severn") but doesn't really work
1970(curiosly, mozilla runs OK, but a modest "ls -l" bombs). I hope to
1971get a working version out soon. It may or may not work ok on the
1972forthcoming SuSE 9; I hear positive noises about it but haven't been
1973able to verify this myself (not until I get hold of a copy of 9).
1974
1975A detailed list of changes, in no particular order:
1976
1977- Describe --gen-suppressions in the FAQ.
1978
1979- Syscall __NR_waitpid supported.
1980
1981- Minor MMX bug fix.
1982
1983- -v prints program's argv[] at startup.
1984
1985- More glibc-2.3 suppressions.
1986
1987- Suppressions for stack underrun bug(s) in the c++ support library
1988 distributed with Intel Icc 7.0.
1989
1990- Fix problems reading /proc/self/maps.
1991
1992- Fix a couple of messages that should have been suppressed by -q,
1993 but weren't.
1994
1995- Make Addrcheck understand "Overlap" suppressions.
1996
1997- At startup, check if program is statically linked and bail out if so.
1998
1999- Cachegrind: Auto-detect Intel Pentium-M, also VIA Nehemiah
2000
2001- Memcheck/addrcheck: minor speed optimisations
2002
2003- Handle syscall __NR_brk more correctly than before.
2004
2005- Fixed incorrect allocate/free mismatch errors when using
2006 operator new(unsigned, std::nothrow_t const&)
2007 operator new[](unsigned, std::nothrow_t const&)
2008
2009- Support POSIX pthread spinlocks.
2010
2011- Fixups for clean compilation with gcc-3.3.1.
daywalker5d945de2003-09-26 00:32:53 +00002012
2013- Implemented more opcodes:
2014 - push %es
2015 - push %ds
2016 - pop %es
2017 - pop %ds
2018 - movntq
2019 - sfence
2020 - pshufw
2021 - pavgb
2022 - ucomiss
2023 - enter
daywalkerb18d2532003-09-27 20:15:01 +00002024 - mov imm32, %esp
2025 - all "in" and "out" opcodes
daywalker79aad842003-09-30 22:58:12 +00002026 - inc/dec %esp
jseward43230652003-12-14 00:14:54 +00002027 - A whole bunch of SSE/SSE2 instructions
daywalker5d945de2003-09-26 00:32:53 +00002028
jseward43230652003-12-14 00:14:54 +00002029- Memcheck: don't bomb on SSE/SSE2 code.
daywalker5d945de2003-09-26 00:32:53 +00002030
sewardj90238792003-05-05 00:23:42 +00002031
sewardj945f39f2003-07-25 21:11:40 +00002032Snapshot 20030725 (25 July 2003)
2033~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2034
2035Fixes some minor problems in 20030716.
2036
2037- Fix bugs in overlap checking for strcpy/memcpy etc.
2038
2039- Do overlap checking with Addrcheck as well as Memcheck.
2040
2041- Fix this:
2042 Memcheck: the `impossible' happened:
2043 get_error_name: unexpected type
2044
2045- Install headers needed to compile new skins.
2046
sewardje3dd2e02003-07-27 08:04:48 +00002047- Remove leading spaces and colon in the LD_LIBRARY_PATH / LD_PRELOAD
sewardj945f39f2003-07-25 21:11:40 +00002048 passed to non-traced children.
2049
sewardjb9eda952003-07-26 21:39:05 +00002050- Fix file descriptor leak in valgrind-listener.
2051
sewardje3dd2e02003-07-27 08:04:48 +00002052- Fix longstanding bug in which the allocation point of a
2053 block resized by realloc was not correctly set. This may
2054 have caused confusing error messages.
sewardj945f39f2003-07-25 21:11:40 +00002055
2056
sewardj626fd892003-07-16 20:10:26 +00002057Snapshot 20030716 (16 July 2003)
sewardj9d916ed2003-07-14 23:38:40 +00002058~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2059
sewardj626fd892003-07-16 20:10:26 +0000206020030716 is a snapshot of our current CVS head (development) branch.
sewardj9d916ed2003-07-14 23:38:40 +00002061This is the branch which will become valgrind-2.0. It contains
2062significant enhancements over the 1.9.X branch.
2063
2064Despite this being a snapshot of the CVS head, it is believed to be
2065quite stable -- at least as stable as 1.9.6 or 1.0.4, if not more so
2066-- and therefore suitable for widespread use. Please let us know asap
2067if it causes problems for you.
2068
2069Two reasons for releasing a snapshot now are:
2070
2071- It's been a while since 1.9.6, and this snapshot fixes
2072 various problems that 1.9.6 has with threaded programs
2073 on glibc-2.3.X based systems.
2074
2075- So as to make available improvements in the 2.0 line.
2076
sewardj626fd892003-07-16 20:10:26 +00002077Major changes in 20030716, as compared to 1.9.6:
sewardj9d916ed2003-07-14 23:38:40 +00002078
2079- More fixes to threading support on glibc-2.3.1 and 2.3.2-based
2080 systems (SuSE 8.2, Red Hat 9). If you have had problems
2081 with inconsistent/illogical behaviour of errno, h_errno or the DNS
sewardj626fd892003-07-16 20:10:26 +00002082 resolver functions in threaded programs, 20030716 should improve
sewardj9d916ed2003-07-14 23:38:40 +00002083 matters. This snapshot seems stable enough to run OpenOffice.org
2084 1.1rc on Red Hat 7.3, SuSE 8.2 and Red Hat 9, and that's a big
2085 threaded app if ever I saw one.
2086
2087- Automatic generation of suppression records; you no longer
2088 need to write them by hand. Use --gen-suppressions=yes.
2089
sewardj21511802003-07-22 17:47:42 +00002090- strcpy/memcpy/etc check their arguments for overlaps, when
2091 running with the Memcheck or Addrcheck skins.
2092
2093- malloc_usable_size() is now supported.
2094
2095- new client requests:
2096 - VALGRIND_COUNT_ERRORS, VALGRIND_COUNT_LEAKS:
2097 useful with regression testing
2098 - VALGRIND_NON_SIMD_CALL[0123]: for running arbitrary functions
2099 on real CPU (use with caution!)
2100
sewardj9d916ed2003-07-14 23:38:40 +00002101- The GDB attach mechanism is more flexible. Allow the GDB to
2102 be run to be specified by --gdb-path=/path/to/gdb, and specify
2103 which file descriptor V will read its input from with
2104 --input-fd=<number>.
2105
sewardj21511802003-07-22 17:47:42 +00002106- Cachegrind gives more accurate results (wasn't tracking instructions in
2107 malloc() and friends previously, is now).
2108
sewardj9d916ed2003-07-14 23:38:40 +00002109- Complete support for the MMX instruction set.
2110
2111- Partial support for the SSE and SSE2 instruction sets. Work for this
2112 is ongoing. About half the SSE/SSE2 instructions are done, so
2113 some SSE based programs may work. Currently you need to specify
2114 --skin=addrcheck. Basically not suitable for real use yet.
2115
2116- Significant speedups (10%-20%) for standard memory checking.
2117
2118- Fix assertion failure in pthread_once().
2119
2120- Fix this:
2121 valgrind: vg_intercept.c:598 (vgAllRoadsLeadToRome_select):
2122 Assertion `ms_end >= ms_now' failed.
2123
2124- Implement pthread_mutexattr_setpshared.
2125
2126- Understand Pentium 4 branch hints. Also implemented a couple more
2127 obscure x86 instructions.
2128
2129- Lots of other minor bug fixes.
2130
sewardj626fd892003-07-16 20:10:26 +00002131- We have a decent regression test system, for the first time.
2132 This doesn't help you directly, but it does make it a lot easier
2133 for us to track the quality of the system, especially across
2134 multiple linux distributions.
2135
2136 You can run the regression tests with 'make regtest' after 'make
2137 install' completes. On SuSE 8.2 and Red Hat 9 I get this:
2138
2139 == 84 tests, 0 stderr failures, 0 stdout failures ==
2140
2141 On Red Hat 8, I get this:
2142
2143 == 84 tests, 2 stderr failures, 1 stdout failure ==
2144 corecheck/tests/res_search (stdout)
2145 memcheck/tests/sigaltstack (stderr)
2146
2147 sigaltstack is probably harmless. res_search doesn't work
2148 on R H 8 even running natively, so I'm not too worried.
2149
2150 On Red Hat 7.3, a glibc-2.2.5 system, I get these harmless failures:
2151
2152 == 84 tests, 2 stderr failures, 1 stdout failure ==
2153 corecheck/tests/pth_atfork1 (stdout)
2154 corecheck/tests/pth_atfork1 (stderr)
2155 memcheck/tests/sigaltstack (stderr)
2156
2157 You need to run on a PII system, at least, since some tests
2158 contain P6-specific instructions, and the test machine needs
2159 access to the internet so that corecheck/tests/res_search
2160 (a test that the DNS resolver works) can function.
2161
sewardj9d916ed2003-07-14 23:38:40 +00002162As ever, thanks for the vast amount of feedback :) and bug reports :(
2163We may not answer all messages, but we do at least look at all of
2164them, and tend to fix the most frequently reported bugs.
2165
2166
2167
sewardj37918822003-05-05 01:05:09 +00002168Version 1.9.6 (7 May 2003 or thereabouts)
2169~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2170
2171Major changes in 1.9.6:
2172
2173- Improved threading support for glibc >= 2.3.2 (SuSE 8.2,
2174 RedHat 9, to name but two ...) It turned out that 1.9.5
2175 had problems with threading support on glibc >= 2.3.2,
2176 usually manifested by threaded programs deadlocking in system calls,
2177 or running unbelievably slowly. Hopefully these are fixed now. 1.9.6
2178 is the first valgrind which gives reasonable support for
2179 glibc-2.3.2. Also fixed a 2.3.2 problem with pthread_atfork().
2180
2181- Majorly expanded FAQ.txt. We've added workarounds for all
2182 common problems for which a workaround is known.
2183
2184Minor changes in 1.9.6:
2185
2186- Fix identification of the main thread's stack. Incorrect
2187 identification of it was causing some on-stack addresses to not get
2188 identified as such. This only affected the usefulness of some error
2189 messages; the correctness of the checks made is unchanged.
2190
2191- Support for kernels >= 2.5.68.
2192
2193- Dummy implementations of __libc_current_sigrtmin,
2194 __libc_current_sigrtmax and __libc_allocate_rtsig, hopefully
2195 good enough to keep alive programs which previously died for lack of
2196 them.
2197
2198- Fix bug in the VALGRIND_DISCARD_TRANSLATIONS client request.
2199
sewardj3d47b792003-05-05 22:15:35 +00002200- Fix bug in the DWARF2 debug line info loader, when instructions
2201 following each other have source lines far from each other
2202 (e.g. with inlined functions).
2203
sewardj37918822003-05-05 01:05:09 +00002204- Debug info reading: read symbols from both "symtab" and "dynsym"
2205 sections, rather than merely from the one that comes last in the
2206 file.
2207
2208- New syscall support: prctl(), creat(), lookup_dcookie().
2209
2210- When checking calls to accept(), recvfrom(), getsocketopt(),
2211 don't complain if buffer values are NULL.
2212
2213- Try and avoid assertion failures in
2214 mash_LD_PRELOAD_and_LD_LIBRARY_PATH.
2215
2216- Minor bug fixes in cg_annotate.
2217
2218
2219
sewardj90238792003-05-05 00:23:42 +00002220Version 1.9.5 (7 April 2003)
2221~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2222
2223It occurs to me that it would be helpful for valgrind users to record
2224in the source distribution the changes in each release. So I now
2225attempt to mend my errant ways :-) Changes in this and future releases
2226will be documented in the NEWS file in the source distribution.
2227
2228Major changes in 1.9.5:
2229
2230- (Critical bug fix): Fix a bug in the FPU simulation. This was
2231 causing some floating point conditional tests not to work right.
2232 Several people reported this. If you had floating point code which
2233 didn't work right on 1.9.1 to 1.9.4, it's worth trying 1.9.5.
2234
2235- Partial support for Red Hat 9. RH9 uses the new Native Posix
2236 Threads Library (NPTL), instead of the older LinuxThreads.
2237 This potentially causes problems with V which will take some
2238 time to correct. In the meantime we have partially worked around
2239 this, and so 1.9.5 works on RH9. Threaded programs still work,
2240 but they may deadlock, because some system calls (accept, read,
2241 write, etc) which should be nonblocking, in fact do block. This
2242 is a known bug which we are looking into.
2243
2244 If you can, your best bet (unfortunately) is to avoid using
2245 1.9.5 on a Red Hat 9 system, or on any NPTL-based distribution.
2246 If your glibc is 2.3.1 or earlier, you're almost certainly OK.
2247
2248Minor changes in 1.9.5:
2249
2250- Added some #errors to valgrind.h to ensure people don't include
2251 it accidentally in their sources. This is a change from 1.0.X
2252 which was never properly documented. The right thing to include
2253 is now memcheck.h. Some people reported problems and strange
2254 behaviour when (incorrectly) including valgrind.h in code with
2255 1.9.1 -- 1.9.4. This is no longer possible.
2256
2257- Add some __extension__ bits and pieces so that gcc configured
2258 for valgrind-checking compiles even with -Werror. If you
2259 don't understand this, ignore it. Of interest to gcc developers
2260 only.
2261
2262- Removed a pointless check which caused problems interworking
2263 with Clearcase. V would complain about shared objects whose
2264 names did not end ".so", and refuse to run. This is now fixed.
2265 In fact it was fixed in 1.9.4 but not documented.
2266
2267- Fixed a bug causing an assertion failure of "waiters == 1"
2268 somewhere in vg_scheduler.c, when running large threaded apps,
2269 notably MySQL.
2270
2271- Add support for the munlock system call (124).
2272
2273Some comments about future releases:
2274
22751.9.5 is, we hope, the most stable Valgrind so far. It pretty much
2276supersedes the 1.0.X branch. If you are a valgrind packager, please
2277consider making 1.9.5 available to your users. You can regard the
22781.0.X branch as obsolete: 1.9.5 is stable and vastly superior. There
2279are no plans at all for further releases of the 1.0.X branch.
2280
2281If you want a leading-edge valgrind, consider building the cvs head
2282(from SourceForge), or getting a snapshot of it. Current cool stuff
2283going in includes MMX support (done); SSE/SSE2 support (in progress),
2284a significant (10-20%) performance improvement (done), and the usual
2285large collection of minor changes. Hopefully we will be able to
2286improve our NPTL support, but no promises.
2287