blob: 89713c85cbff0a18c3a5bed4e096195780b1dea2 [file] [log] [blame]
jseward43230652003-12-14 00:14:54 +00001
njn4a9f6f42005-07-19 23:46:08 +00002[[TODO: fix all the TODO items!]]
3
4Release 3.0.0 ([[TODO: add release date]])
5~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63.0.0 is a major overhaul of Valgrind. The most significant user-visible
7change is that Valgrind now supports architectures other than x86.
8The new architectures it supports are AMD64 and PPC32, and the
9infrastructure is present for other architectures to be added later.
10
11The AMD64 support works well, but has some shortcomings:
12
13 - It generally won't be as solid as the x86 version. For example, support
14 for more obscure instructions and system calls may be missing. We will
15 fix these as they arise.
16
17 - Address space may be limited; see the point about position-independent
18 executables below.
19
20The PPC32 support is very basic. It may not work reliably even for small
21programs, but it's a start. Many thanks to Paul Mackerras for his great
22work that enabled this support.
23
24Other user-visible changes:
25
26- No longer building Valgrind as a position-indendependent executable (PIE)
27 by default, as it caused too many problems.
28
29 Without PIE enabled, AMD64 programs will only be able to access 2GB of
30 address space. We will fix this eventually, but not for the moment.
31
32 Use --enable-pie at configure-time to turn this on.
33
34- Support for programs that use stack-switching has been improved. Use
35 the --max-stackframe flag for simple cases, and the
36 VALGRIND_STACK_REGISTER, VALGRIND_STACK_DEREGISTER and
37 VALGRIND_STACK_CHANGE client requests for trickier cases.
38
39- Support for programs that use self-modifying code has been improved, in
40 particular programs that put temporary code fragments on the stack.
41 This helps for C programs compiled with GCC that use nested functions, and
42 also Ada programs. This is controlled with the --smc-support flag,
43 although the default setting should work in most cases.
44
45- Output can now be printed in XML format. This should make it easier for
46 other tools (such as GUI front-ends) to use Valgrind output as input.
47 The --xml flag controls this.
48 [[TODO: describe the related CLOs added (eg. --log-file-qualifier)]]
49
50- Programs that allocate many heap blocks may run faster, due to
51 improvements in certain data structures.
52
53- Addrcheck is currently not working. We hope to get it working again soon.
54 Helgrind is still not working, as was the case for the 2.4.0 release.
55
56- [[TODO: add more here]]
57
58Changes that are not user-visible:
59
60- The JITter has been completely rewritten, and is now in a separate
61 library, called Vex. This enabled a lot of the user-visible changes, such
62 as new architecture support. It may run slower than the old JITter;
63 feedback about this would be useful.
64
65- The code has been modularized significantly, and should be easier to
66 navigate and understand.
67
68- Lots of code has been rewritten.
69
70- [[TODO: add more here]]
71
72BUGS FIXED
73
74[[TODO: add the full list here (once the RCs are out of the way?)]]
75
76
njn8c927302005-03-12 16:45:01 +000077Stable release 2.4.0 (March 2005) -- CHANGES RELATIVE TO 2.2.0
njn1aa5ae42005-03-26 16:04:27 +000078~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
792.4.0 brings many significant changes and bug fixes. The most
80significant user-visible change is that we no longer supply our own
81pthread implementation. Instead, Valgrind is finally capable of
82running the native thread library, either LinuxThreads or NPTL.
njn8c927302005-03-12 16:45:01 +000083
njn1aa5ae42005-03-26 16:04:27 +000084This means our libpthread has gone, along with the bugs associated
85with it. Valgrind now supports the kernel's threading syscalls, and
86lets you use your standard system libpthread. As a result:
njn8c927302005-03-12 16:45:01 +000087
njn1aa5ae42005-03-26 16:04:27 +000088* There are many fewer system dependencies and strange library-related
89 bugs. There is a small performance improvement, and a large
90 stability improvement.
njn8c927302005-03-12 16:45:01 +000091
njn1aa5ae42005-03-26 16:04:27 +000092* On the downside, Valgrind can no longer report misuses of the POSIX
93 PThreads API. It also means that Helgrind currently does not work.
94 We hope to fix these problems in a future release.
njn8c927302005-03-12 16:45:01 +000095
njn1aa5ae42005-03-26 16:04:27 +000096Note that running the native thread libraries does not mean Valgrind
97is able to provide genuine concurrent execution on SMPs. We still
98impose the restriction that only one thread is running at any given
99time.
njn8c927302005-03-12 16:45:01 +0000100
njn1aa5ae42005-03-26 16:04:27 +0000101There are many other significant changes too:
njn8c927302005-03-12 16:45:01 +0000102
njn1aa5ae42005-03-26 16:04:27 +0000103* Memcheck is (once again) the default tool.
njn8c927302005-03-12 16:45:01 +0000104
njn1aa5ae42005-03-26 16:04:27 +0000105* The default stack backtrace is now 12 call frames, rather than 4.
njn8c927302005-03-12 16:45:01 +0000106
njn1aa5ae42005-03-26 16:04:27 +0000107* Suppressions can have up to 25 call frame matches, rather than 4.
njn8c927302005-03-12 16:45:01 +0000108
njn1aa5ae42005-03-26 16:04:27 +0000109* Memcheck and Addrcheck use less memory. Under some circumstances,
110 they no longer allocate shadow memory if there are large regions of
111 memory with the same A/V states - such as an mmaped file.
njn8c927302005-03-12 16:45:01 +0000112
njn1aa5ae42005-03-26 16:04:27 +0000113* The memory-leak detector in Memcheck and Addrcheck has been
114 improved. It now reports more types of memory leak, including
115 leaked cycles. When reporting leaked memory, it can distinguish
116 between directly leaked memory (memory with no references), and
117 indirectly leaked memory (memory only referred to by other leaked
118 memory).
njn8c927302005-03-12 16:45:01 +0000119
njn1aa5ae42005-03-26 16:04:27 +0000120* Memcheck's confusion over the effect of mprotect() has been fixed:
121 previously mprotect could erroneously mark undefined data as
122 defined.
njn8c927302005-03-12 16:45:01 +0000123
njn1aa5ae42005-03-26 16:04:27 +0000124* Signal handling is much improved and should be very close to what
125 you get when running natively.
126
127 One result of this is that Valgrind observes changes to sigcontexts
128 passed to signal handlers. Such modifications will take effect when
129 the signal returns. You will need to run with --single-step=yes to
130 make this useful.
njn8c927302005-03-12 16:45:01 +0000131
132* Valgrind is built in Position Independent Executable (PIE) format if
njn1aa5ae42005-03-26 16:04:27 +0000133 your toolchain supports it. This allows it to take advantage of all
njn8c927302005-03-12 16:45:01 +0000134 the available address space on systems with 4Gbyte user address
135 spaces.
136
137* Valgrind can now run itself (requires PIE support).
138
njn1aa5ae42005-03-26 16:04:27 +0000139* Syscall arguments are now checked for validity. Previously all
140 memory used by syscalls was checked, but now the actual values
141 passed are also checked.
njn8c927302005-03-12 16:45:01 +0000142
njn1aa5ae42005-03-26 16:04:27 +0000143* Syscall wrappers are more robust against bad addresses being passed
144 to syscalls: they will fail with EFAULT rather than killing Valgrind
145 with SIGSEGV.
njn8c927302005-03-12 16:45:01 +0000146
njn1aa5ae42005-03-26 16:04:27 +0000147* Because clone() is directly supported, some non-pthread uses of it
148 will work. Partial sharing (where some resources are shared, and
149 some are not) is not supported.
150
151* open() and readlink() on /proc/self/exe are supported.
152
153BUGS FIXED:
154
15588520 pipe+fork+dup2 kills the main program
15688604 Valgrind Aborts when using $VALGRIND_OPTS and user progra...
15788614 valgrind: vg_libpthread.c:2323 (read): Assertion `read_pt...
15888703 Stabs parser fails to handle ";"
15988886 ioctl wrappers for TIOCMBIS and TIOCMBIC
16089032 valgrind pthread_cond_timedwait fails
16189106 the 'impossible' happened
16289139 Missing sched_setaffinity & sched_getaffinity
16389198 valgrind lacks support for SIOCSPGRP and SIOCGPGRP
16489263 Missing ioctl translations for scsi-generic and CD playing
16589440 tests/deadlock.c line endings
16689481 `impossible' happened: EXEC FAILED
16789663 valgrind 2.2.0 crash on Redhat 7.2
16889792 Report pthread_mutex_lock() deadlocks instead of returnin...
16990111 statvfs64 gives invalid error/warning
17090128 crash+memory fault with stabs generated by gnat for a run...
17190778 VALGRIND_CHECK_DEFINED() not as documented in memcheck.h
17290834 cachegrind crashes at end of program without reporting re...
17391028 valgrind: vg_memory.c:229 (vgPlain_unmap_range): Assertio...
17491162 valgrind crash while debugging drivel 1.2.1
17591199 Unimplemented function
17691325 Signal routing does not propagate the siginfo structure
17791599 Assertion `cv == ((void *)0)'
17891604 rw_lookup clears orig and sends the NULL value to rw_new
17991821 Small problems building valgrind with $top_builddir ne $t...
18091844 signal 11 (SIGSEGV) at get_tcb (libpthread.c:86) in corec...
18192264 UNIMPLEMENTED FUNCTION: pthread_condattr_setpshared
18292331 per-target flags necessitate AM_PROG_CC_C_O
18392420 valgrind doesn't compile with linux 2.6.8.1/9
18492513 Valgrind 2.2.0 generates some warning messages
18592528 vg_symtab2.c:170 (addLoc): Assertion `loc->size > 0' failed.
18693096 unhandled ioctl 0x4B3A and 0x5601
18793117 Tool and core interface versions do not match
18893128 Can't run valgrind --tool=memcheck because of unimplement...
18993174 Valgrind can crash if passed bad args to certain syscalls
19093309 Stack frame in new thread is badly aligned
19193328 Wrong types used with sys_sigprocmask()
19293763 /usr/include/asm/msr.h is missing
19393776 valgrind: vg_memory.c:508 (vgPlain_find_map_space): Asser...
19493810 fcntl() argument checking a bit too strict
19594378 Assertion `tst->sigqueue_head != tst->sigqueue_tail' failed.
19694429 valgrind 2.2.0 segfault with mmap64 in glibc 2.3.3
19794645 Impossible happened: PINSRW mem
19894953 valgrind: the `impossible' happened: SIGSEGV
19995667 Valgrind does not work with any KDE app
20096243 Assertion 'res==0' failed
20196252 stage2 loader of valgrind fails to allocate memory
20296520 All programs crashing at _dl_start (in /lib/ld-2.3.3.so) ...
20396660 ioctl CDROMREADTOCENTRY causes bogus warnings
20496747 After looping in a segfault handler, the impossible happens
20596923 Zero sized arrays crash valgrind trace back with SIGFPE
20696948 valgrind stops with assertion failure regarding mmap2
20796966 valgrind fails when application opens more than 16 sockets
20897398 valgrind: vg_libpthread.c:2667 Assertion failed
20997407 valgrind: vg_mylibc.c:1226 (vgPlain_safe_fd): Assertion `...
21097427 "Warning: invalid file descriptor -1 in syscall close()" ...
21197785 missing backtrace
21297792 build in obj dir fails - autoconf / makefile cleanup
21397880 pthread_mutex_lock fails from shared library (special ker...
21497975 program aborts without ang VG messages
21598129 Failed when open and close file 230000 times using stdio
21698175 Crashes when using valgrind-2.2.0 with a program using al...
21798288 Massif broken
21898303 UNIMPLEMENTED FUNCTION pthread_condattr_setpshared
21998630 failed--compilation missing warnings.pm, fails to make he...
22098756 Cannot valgrind signal-heavy kdrive X server
22198966 valgrinding the JVM fails with a sanity check assertion
22299035 Valgrind crashes while profiling
22399142 loops with message "Signal 11 being dropped from thread 0...
22499195 threaded apps crash on thread start (using QThread::start...
22599348 Assertion `vgPlain_lseek(core_fd, 0, 1) == phdrs[i].p_off...
22699568 False negative due to mishandling of mprotect
22799738 valgrind memcheck crashes on program that uses sigitimer
22899923 0-sized allocations are reported as leaks
22999949 program seg faults after exit()
230100036 "newSuperblock's request for 1048576 bytes failed"
231100116 valgrind: (pthread_cond_init): Assertion `sizeof(* cond) ...
232100486 memcheck reports "valgrind: the `impossible' happened: V...
233100833 second call to "mremap" fails with EINVAL
234101156 (vgPlain_find_map_space): Assertion `(addr & ((1 << 12)-1...
235101173 Assertion `recDepth >= 0 && recDepth < 500' failed
236101291 creating threads in a forked process fails
237101313 valgrind causes different behavior when resizing a window...
238101423 segfault for c++ array of floats
239101562 valgrind massif dies on SIGINT even with signal handler r...
240
njn8c927302005-03-12 16:45:01 +0000241
jseward34ed74f2004-08-30 18:04:42 +0000242Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.0.0
243~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseward7d180d92004-08-30 18:15:37 +00002442.2.0 brings nine months worth of improvements and bug fixes. We
245believe it to be a worthy successor to 2.0.0. There are literally
246hundreds of bug fixes and minor improvements. There are also some
247fairly major user-visible changes:
248
249* A complete overhaul of handling of system calls and signals, and
250 their interaction with threads. In general, the accuracy of the
251 system call, thread and signal simulations is much improved:
252
253 - Blocking system calls behave exactly as they do when running
254 natively (not on valgrind). That is, if a syscall blocks only the
255 calling thread when running natively, than it behaves the same on
256 valgrind. No more mysterious hangs because V doesn't know that some
257 syscall or other, should block only the calling thread.
258
259 - Interrupted syscalls should now give more faithful results.
260
261 - Signal contexts in signal handlers are supported.
262
263* Improvements to NPTL support to the extent that V now works
264 properly on NPTL-only setups.
265
266* Greater isolation between Valgrind and the program being run, so
267 the program is less likely to inadvertently kill Valgrind by
268 doing wild writes.
269
270* Massif: a new space profiling tool. Try it! It's cool, and it'll
271 tell you in detail where and when your C/C++ code is allocating heap.
272 Draws pretty .ps pictures of memory use against time. A potentially
273 powerful tool for making sense of your program's space use.
274
275* File descriptor leakage checks. When enabled, Valgrind will print out
276 a list of open file descriptors on exit.
277
278* Improved SSE2/SSE3 support.
279
jseward2eb002b2004-08-31 00:14:02 +0000280* Time-stamped output; use --time-stamp=yes
281
jseward34ed74f2004-08-30 18:04:42 +0000282
283
284Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.1.2
285~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2862.2.0 is not much different from 2.1.2, released seven weeks ago.
287A number of bugs have been fixed, most notably #85658, which gave
288problems for quite a few people. There have been many internal
289cleanups, but those are not user visible.
290
291The following bugs have been fixed since 2.1.2:
292
29385658 Assert in coregrind/vg_libpthread.c:2326 (open64) !=
294 (void*)0 failed
295 This bug was reported multiple times, and so the following
296 duplicates of it are also fixed: 87620, 85796, 85935, 86065,
297 86919, 86988, 87917, 88156
298
29980716 Semaphore mapping bug caused by unmap (sem_destroy)
300 (Was fixed prior to 2.1.2)
301
30286987 semctl and shmctl syscalls family is not handled properly
303
30486696 valgrind 2.1.2 + RH AS2.1 + librt
305
30686730 valgrind locks up at end of run with assertion failure
307 in __pthread_unwind
308
30986641 memcheck doesn't work with Mesa OpenGL/ATI on Suse 9.1
310 (also fixes 74298, a duplicate of this)
311
31285947 MMX/SSE unhandled instruction 'sfence'
313
31484978 Wrong error "Conditional jump or move depends on
315 uninitialised value" resulting from "sbbl %reg, %reg"
316
31786254 ssort() fails when signed int return type from comparison is
318 too small to handle result of unsigned int subtraction
319
32087089 memalign( 4, xxx) makes valgrind assert
321
jseward2eb002b2004-08-31 00:14:02 +000032286407 Add support for low-level parallel port driver ioctls.
jseward34ed74f2004-08-30 18:04:42 +0000323
32470587 Add timestamps to Valgrind output? (wishlist)
325
32684937 vg_libpthread.c:2505 (se_remap): Assertion `res == 0'
327 (fixed prior to 2.1.2)
328
32986317 cannot load libSDL-1.2.so.0 using valgrind
330
33186989 memcpy from mac_replace_strmem.c complains about
332 uninitialized pointers passed when length to copy is zero
333
33485811 gnu pascal symbol causes segmentation fault; ok in 2.0.0
335
33679138 writing to sbrk()'d memory causes segfault
337
33877369 sched deadlock while signal received during pthread_join
339 and the joined thread exited
340
34188115 In signal handler for SIGFPE, siginfo->si_addr is wrong
342 under Valgrind
343
34478765 Massif crashes on app exit if FP exceptions are enabled
345
346Additionally there are the following changes, which are not
347connected to any bug report numbers, AFAICS:
348
349* Fix scary bug causing mis-identification of SSE stores vs
350 loads and so causing memcheck to sometimes give nonsense results
351 on SSE code.
352
353* Add support for the POSIX message queue system calls.
354
355* Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
356 NOT allow Valgrind to work with 64-bit executables - only with 32-bit
357 executables on an AMD64 box.
358
359* At configure time, only check whether linux/mii.h can be processed
360 so that we don't generate ugly warnings by trying to compile it.
361
jseward2eb002b2004-08-31 00:14:02 +0000362* Add support for POSIX clocks and timers.
363
jseward34ed74f2004-08-30 18:04:42 +0000364
365
jseward9cd978c2004-07-17 13:38:12 +0000366Developer (cvs head) release 2.1.2 (18 July 2004)
jsewardbd0a6e42004-07-17 12:19:43 +0000367~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3682.1.2 contains four months worth of bug fixes and refinements.
jseward9cd978c2004-07-17 13:38:12 +0000369Although officially a developer release, we believe it to be stable
370enough for widespread day-to-day use. 2.1.2 is pretty good, so try it
371first, although there is a chance it won't work. If so then try 2.0.0
372and tell us what went wrong." 2.1.2 fixes a lot of problems present
373in 2.0.0 and is generally a much better product.
jsewardbd0a6e42004-07-17 12:19:43 +0000374
jseward9cd978c2004-07-17 13:38:12 +0000375Relative to 2.1.1, a large number of minor problems with 2.1.1 have
376been fixed, and so if you use 2.1.1 you should try 2.1.2. Users of
377the last stable release, 2.0.0, might also want to try this release.
jsewardbd0a6e42004-07-17 12:19:43 +0000378
379The following bugs, and probably many more, have been fixed. These
380are listed at http://bugs.kde.org. Reporting a bug for valgrind in
381the http://bugs.kde.org is much more likely to get you a fix than
382mailing developers directly, so please continue to keep sending bugs
383there.
384
38576869 Crashes when running any tool under Fedora Core 2 test1
386 This fixes the problem with returning from a signal handler
jseward0400d4d2004-07-17 23:26:46 +0000387 when VDSOs are turned off in FC2.
jsewardbd0a6e42004-07-17 12:19:43 +0000388
jseward0400d4d2004-07-17 23:26:46 +000038969508 java 1.4.2 client fails with erroneous "stack size too small".
390 This fix makes more of the pthread stack attribute related
391 functions work properly. Java still doesn't work though.
jsewardbd0a6e42004-07-17 12:19:43 +0000392
39371906 malloc alignment should be 8, not 4
394 All memory returned by malloc/new etc is now at least
395 8-byte aligned.
396
jsewarda6017a42004-07-17 23:44:35 +000039781970 vg_alloc_ThreadState: no free slots available
398 (closed because the workaround is simple: increase
399 VG_N_THREADS, rebuild and try again.)
400
jsewardbd0a6e42004-07-17 12:19:43 +000040178514 Conditional jump or move depends on uninitialized value(s)
402 (a slight mishanding of FP code in memcheck)
403
jsewarda6017a42004-07-17 23:44:35 +000040477952 pThread Support (crash) (due to initialisation-ordering probs)
405 (also 85118)
406
jsewardbd0a6e42004-07-17 12:19:43 +000040780942 Addrcheck wasn't doing overlap checking as it should.
40878048 return NULL on malloc/new etc failure, instead of asserting
40973655 operator new() override in user .so files often doesn't get picked up
41083060 Valgrind does not handle native kernel AIO
41169872 Create proper coredumps after fatal signals
41282026 failure with new glibc versions: __libc_* functions are not exported
41370344 UNIMPLEMENTED FUNCTION: tcdrain
41481297 Cancellation of pthread_cond_wait does not require mutex
41582872 Using debug info from additional packages (wishlist)
41683025 Support for ioctls FIGETBSZ and FIBMAP
41783340 Support for ioctl HDIO_GET_IDENTITY
41879714 Support for the semtimedop system call.
41977022 Support for ioctls FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO
42082098 hp2ps ansification (wishlist)
42183573 Valgrind SIGSEGV on execve
42282999 show which cmdline option was erroneous (wishlist)
42383040 make valgrind VPATH and distcheck-clean (wishlist)
jsewarda6017a42004-07-17 23:44:35 +000042483998 Assertion `newfd > vgPlain_max_fd' failed (see below)
42582722 Unchecked mmap in as_pad leads to mysterious failures later
42678958 memcheck seg faults while running Mozilla
jsewarda2c08002004-07-18 09:24:57 +000042785416 Arguments with colon (e.g. --logsocket) ignored
jsewardbd0a6e42004-07-17 12:19:43 +0000428
429
430Additionally there are the following changes, which are not
431connected to any bug report numbers, AFAICS:
432
433* Rearranged address space layout relative to 2.1.1, so that
434 Valgrind/tools will run out of memory later than currently in many
435 circumstances. This is good news esp. for Calltree. It should
436 be possible for client programs to allocate over 800MB of
437 memory when using memcheck now.
438
jseward9cd978c2004-07-17 13:38:12 +0000439* Improved checking when laying out memory. Should hopefully avoid
440 the random segmentation faults that 2.1.1 sometimes caused.
441
jsewardbd0a6e42004-07-17 12:19:43 +0000442* Support for Fedora Core 2 and SuSE 9.1. Improvements to NPTL
443 support to the extent that V now works properly on NPTL-only setups.
444
445* Renamed the following options:
446 --logfile-fd --> --log-fd
447 --logfile --> --log-file
448 --logsocket --> --log-socket
449 to be consistent with each other and other options (esp. --input-fd).
450
451* Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
452 improve the checking of other interface related ioctls.
453
jsewardbd0a6e42004-07-17 12:19:43 +0000454* Fix building with gcc-3.4.1.
455
456* Remove limit on number of semaphores supported.
457
jsewardbd0a6e42004-07-17 12:19:43 +0000458* Add support for syscalls: set_tid_address (258), acct (51).
459
460* Support instruction "repne movs" -- not official but seems to occur.
461
462* Implement an emulated soft limit for file descriptors in addition to
463 the current reserved area, which effectively acts as a hard limit. The
464 setrlimit system call now simply updates the emulated limits as best
465 as possible - the hard limit is not allowed to move at all and just
466 returns EPERM if you try and change it. This should stop reductions
467 in the soft limit causing assertions when valgrind tries to allocate
468 descriptors from the reserved area.
jsewarda6017a42004-07-17 23:44:35 +0000469 (This actually came from bug #83998).
jsewardbd0a6e42004-07-17 12:19:43 +0000470
nethercote76e8fd92004-07-21 10:37:31 +0000471* Major overhaul of Cachegrind implementation. First user-visible change
nethercote5e63bfb2004-07-17 12:49:53 +0000472 is that cachegrind.out files are now typically 90% smaller than they
nethercote76e8fd92004-07-21 10:37:31 +0000473 used to be; code annotation times are correspondingly much smaller.
474 Second user-visible change is that hit/miss counts for code that is
475 unloaded at run-time is no longer dumped into a single "discard" pile,
476 but accurately preserved.
jsewardbd0a6e42004-07-17 12:19:43 +0000477
478* Client requests for telling valgrind about memory pools.
479
480
481
jseward9cd978c2004-07-17 13:38:12 +0000482Developer (cvs head) release 2.1.1 (12 March 2004)
483~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsewardbd0a6e42004-07-17 12:19:43 +00004842.1.1 contains some internal structural changes needed for V's
jsewarde3e77042004-03-12 21:07:05 +0000485long-term future. These don't affect end-users. Most notable
486user-visible changes are:
487
488* Greater isolation between Valgrind and the program being run, so
489 the program is less likely to inadvertently kill Valgrind by
490 doing wild writes.
491
492* Massif: a new space profiling tool. Try it! It's cool, and it'll
493 tell you in detail where and when your C/C++ code is allocating heap.
494 Draws pretty .ps pictures of memory use against time. A potentially
495 powerful tool for making sense of your program's space use.
496
497* Fixes for many bugs, including support for more SSE2/SSE3 instructions,
498 various signal/syscall things, and various problems with debug
499 info readers.
500
501* Support for glibc-2.3.3 based systems.
502
503We are now doing automatic overnight build-and-test runs on a variety
504of distros. As a result, we believe 2.1.1 builds and runs on:
505Red Hat 7.2, 7.3, 8.0, 9, Fedora Core 1, SuSE 8.2, SuSE 9.
506
507
508The following bugs, and probably many more, have been fixed. These
509are listed at http://bugs.kde.org. Reporting a bug for valgrind in
510the http://bugs.kde.org is much more likely to get you a fix than
511mailing developers directly, so please continue to keep sending bugs
512there.
513
51469616 glibc 2.3.2 w/NPTL is massively different than what valgrind expects
51569856 I don't know how to instrument MMXish stuff (Helgrind)
51673892 valgrind segfaults starting with Objective-C debug info
517 (fix for S-type stabs)
51873145 Valgrind complains too much about close(<reserved fd>)
51973902 Shadow memory allocation seems to fail on RedHat 8.0
52068633 VG_N_SEMAPHORES too low (V itself was leaking semaphores)
52175099 impossible to trace multiprocess programs
52276839 the `impossible' happened: disInstr: INT but not 0x80 !
52376762 vg_to_ucode.c:3748 (dis_push_segreg): Assertion `sz == 4' failed.
52476747 cannot include valgrind.h in c++ program
52576223 parsing B(3,10) gave NULL type => impossible happens
52675604 shmdt handling problem
52776416 Problems with gcc 3.4 snap 20040225
52875614 using -gstabs when building your programs the `impossible' happened
52975787 Patch for some CDROM ioctls CDORM_GET_MCN, CDROM_SEND_PACKET,
53075294 gcc 3.4 snapshot's libstdc++ have unsupported instructions.
531 (REP RET)
53273326 vg_symtab2.c:272 (addScopeRange): Assertion `range->size > 0' failed.
53372596 not recognizing __libc_malloc
53469489 Would like to attach ddd to running program
53572781 Cachegrind crashes with kde programs
53673055 Illegal operand at DXTCV11CompressBlockSSE2 (more SSE opcodes)
53773026 Descriptor leak check reports port numbers wrongly
53871705 README_MISSING_SYSCALL_OR_IOCTL out of date
53972643 Improve support for SSE/SSE2 instructions
54072484 valgrind leaves it's own signal mask in place when execing
54172650 Signal Handling always seems to restart system calls
54272006 The mmap system call turns all errors in ENOMEM
54371781 gdb attach is pretty useless
54471180 unhandled instruction bytes: 0xF 0xAE 0x85 0xE8
54569886 writes to zero page cause valgrind to assert on exit
54671791 crash when valgrinding gimp 1.3 (stabs reader problem)
54769783 unhandled syscall: 218
54869782 unhandled instruction bytes: 0x66 0xF 0x2B 0x80
54970385 valgrind fails if the soft file descriptor limit is less
550 than about 828
55169529 "rep; nop" should do a yield
55270827 programs with lots of shared libraries report "mmap failed"
553 for some of them when reading symbols
55471028 glibc's strnlen is optimised enough to confuse valgrind
555
556
557
558
jseward43230652003-12-14 00:14:54 +0000559Unstable (cvs head) release 2.1.0 (15 December 2003)
560~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
561For whatever it's worth, 2.1.0 actually seems pretty darn stable to me
562(Julian). It looks eminently usable, and given that it fixes some
563significant bugs, may well be worth using on a day-to-day basis.
5642.1.0 is known to build and pass regression tests on: SuSE 9, SuSE
5658.2, RedHat 8.
566
5672.1.0 most notably includes Jeremy Fitzhardinge's complete overhaul of
568handling of system calls and signals, and their interaction with
569threads. In general, the accuracy of the system call, thread and
570signal simulations is much improved. Specifically:
571
572- Blocking system calls behave exactly as they do when running
573 natively (not on valgrind). That is, if a syscall blocks only the
574 calling thread when running natively, than it behaves the same on
575 valgrind. No more mysterious hangs because V doesn't know that some
576 syscall or other, should block only the calling thread.
577
578- Interrupted syscalls should now give more faithful results.
579
580- Finally, signal contexts in signal handlers are supported. As a
581 result, konqueror on SuSE 9 no longer segfaults when notified of
582 file changes in directories it is watching.
583
584Other changes:
585
586- Robert Walsh's file descriptor leakage checks. When enabled,
587 Valgrind will print out a list of open file descriptors on
588 exit. Along with each file descriptor, Valgrind prints out a stack
589 backtrace of where the file was opened and any details relating to the
590 file descriptor such as the file name or socket details.
591 To use, give: --track-fds=yes
592
593- Implemented a few more SSE/SSE2 instructions.
594
595- Less crud on the stack when you do 'where' inside a GDB attach.
596
597- Fixed the following bugs:
598 68360: Valgrind does not compile against 2.6.0-testX kernels
599 68525: CVS head doesn't compile on C90 compilers
600 68566: pkgconfig support (wishlist)
601 68588: Assertion `sz == 4' failed in vg_to_ucode.c (disInstr)
602 69140: valgrind not able to explicitly specify a path to a binary.
603 69432: helgrind asserts encountering a MutexErr when there are
604 EraserErr suppressions
605
jseward0b12daf2003-12-14 14:35:28 +0000606- Increase the max size of the translation cache from 200k average bbs
607 to 300k average bbs. Programs on the size of OOo (680m17) are
608 thrashing the cache at the smaller size, creating large numbers of
609 retranslations and wasting significant time as a result.
610
jseward43230652003-12-14 00:14:54 +0000611
612
613Stable release 2.0.0 (5 Nov 2003)
614~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
615
6162.0.0 improves SSE/SSE2 support, fixes some minor bugs, and
617improves support for SuSE 9 and the Red Hat "Severn" beta.
618
619- Further improvements to SSE/SSE2 support. The entire test suite of
620 the GNU Scientific Library (gsl-1.4) compiled with Intel Icc 7.1
621 20030307Z '-g -O -xW' now works. I think this gives pretty good
622 coverage of SSE/SSE2 floating point instructions, or at least the
623 subset emitted by Icc.
624
625- Also added support for the following instructions:
626 MOVNTDQ UCOMISD UNPCKLPS UNPCKHPS SQRTSS
627 PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS).
628
629- CFI support for GDB version 6. Needed to enable newer GDBs
630 to figure out where they are when using --gdb-attach=yes.
631
632- Fix this:
633 mc_translate.c:1091 (memcheck_instrument): Assertion
634 `u_in->size == 4 || u_in->size == 16' failed.
635
636- Return an error rather than panicing when given a bad socketcall.
637
638- Fix checking of syscall rt_sigtimedwait().
639
640- Implement __NR_clock_gettime (syscall 265). Needed on Red Hat Severn.
641
642- Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
643 bytes long, when it could be shorter, which could cause false
644 positives.
645
646- Support use of select() for very large numbers of file descriptors.
647
648- Don't fail silently if the executable is statically linked, or is
649 setuid/setgid. Print an error message instead.
650
651- Support for old DWARF-1 format line number info.
652
653
654
655Snapshot 20031012 (12 October 2003)
656~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
657
658Three months worth of bug fixes, roughly. Most significant single
659change is improved SSE/SSE2 support, mostly thanks to Dirk Mueller.
660
66120031012 builds on Red Hat Fedora ("Severn") but doesn't really work
662(curiosly, mozilla runs OK, but a modest "ls -l" bombs). I hope to
663get a working version out soon. It may or may not work ok on the
664forthcoming SuSE 9; I hear positive noises about it but haven't been
665able to verify this myself (not until I get hold of a copy of 9).
666
667A detailed list of changes, in no particular order:
668
669- Describe --gen-suppressions in the FAQ.
670
671- Syscall __NR_waitpid supported.
672
673- Minor MMX bug fix.
674
675- -v prints program's argv[] at startup.
676
677- More glibc-2.3 suppressions.
678
679- Suppressions for stack underrun bug(s) in the c++ support library
680 distributed with Intel Icc 7.0.
681
682- Fix problems reading /proc/self/maps.
683
684- Fix a couple of messages that should have been suppressed by -q,
685 but weren't.
686
687- Make Addrcheck understand "Overlap" suppressions.
688
689- At startup, check if program is statically linked and bail out if so.
690
691- Cachegrind: Auto-detect Intel Pentium-M, also VIA Nehemiah
692
693- Memcheck/addrcheck: minor speed optimisations
694
695- Handle syscall __NR_brk more correctly than before.
696
697- Fixed incorrect allocate/free mismatch errors when using
698 operator new(unsigned, std::nothrow_t const&)
699 operator new[](unsigned, std::nothrow_t const&)
700
701- Support POSIX pthread spinlocks.
702
703- Fixups for clean compilation with gcc-3.3.1.
daywalker5d945de2003-09-26 00:32:53 +0000704
705- Implemented more opcodes:
706 - push %es
707 - push %ds
708 - pop %es
709 - pop %ds
710 - movntq
711 - sfence
712 - pshufw
713 - pavgb
714 - ucomiss
715 - enter
daywalkerb18d2532003-09-27 20:15:01 +0000716 - mov imm32, %esp
717 - all "in" and "out" opcodes
daywalker79aad842003-09-30 22:58:12 +0000718 - inc/dec %esp
jseward43230652003-12-14 00:14:54 +0000719 - A whole bunch of SSE/SSE2 instructions
daywalker5d945de2003-09-26 00:32:53 +0000720
jseward43230652003-12-14 00:14:54 +0000721- Memcheck: don't bomb on SSE/SSE2 code.
daywalker5d945de2003-09-26 00:32:53 +0000722
sewardj90238792003-05-05 00:23:42 +0000723
sewardj945f39f2003-07-25 21:11:40 +0000724Snapshot 20030725 (25 July 2003)
725~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
726
727Fixes some minor problems in 20030716.
728
729- Fix bugs in overlap checking for strcpy/memcpy etc.
730
731- Do overlap checking with Addrcheck as well as Memcheck.
732
733- Fix this:
734 Memcheck: the `impossible' happened:
735 get_error_name: unexpected type
736
737- Install headers needed to compile new skins.
738
sewardje3dd2e02003-07-27 08:04:48 +0000739- Remove leading spaces and colon in the LD_LIBRARY_PATH / LD_PRELOAD
sewardj945f39f2003-07-25 21:11:40 +0000740 passed to non-traced children.
741
sewardjb9eda952003-07-26 21:39:05 +0000742- Fix file descriptor leak in valgrind-listener.
743
sewardje3dd2e02003-07-27 08:04:48 +0000744- Fix longstanding bug in which the allocation point of a
745 block resized by realloc was not correctly set. This may
746 have caused confusing error messages.
sewardj945f39f2003-07-25 21:11:40 +0000747
748
sewardj626fd892003-07-16 20:10:26 +0000749Snapshot 20030716 (16 July 2003)
sewardj9d916ed2003-07-14 23:38:40 +0000750~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
751
sewardj626fd892003-07-16 20:10:26 +000075220030716 is a snapshot of our current CVS head (development) branch.
sewardj9d916ed2003-07-14 23:38:40 +0000753This is the branch which will become valgrind-2.0. It contains
754significant enhancements over the 1.9.X branch.
755
756Despite this being a snapshot of the CVS head, it is believed to be
757quite stable -- at least as stable as 1.9.6 or 1.0.4, if not more so
758-- and therefore suitable for widespread use. Please let us know asap
759if it causes problems for you.
760
761Two reasons for releasing a snapshot now are:
762
763- It's been a while since 1.9.6, and this snapshot fixes
764 various problems that 1.9.6 has with threaded programs
765 on glibc-2.3.X based systems.
766
767- So as to make available improvements in the 2.0 line.
768
sewardj626fd892003-07-16 20:10:26 +0000769Major changes in 20030716, as compared to 1.9.6:
sewardj9d916ed2003-07-14 23:38:40 +0000770
771- More fixes to threading support on glibc-2.3.1 and 2.3.2-based
772 systems (SuSE 8.2, Red Hat 9). If you have had problems
773 with inconsistent/illogical behaviour of errno, h_errno or the DNS
sewardj626fd892003-07-16 20:10:26 +0000774 resolver functions in threaded programs, 20030716 should improve
sewardj9d916ed2003-07-14 23:38:40 +0000775 matters. This snapshot seems stable enough to run OpenOffice.org
776 1.1rc on Red Hat 7.3, SuSE 8.2 and Red Hat 9, and that's a big
777 threaded app if ever I saw one.
778
779- Automatic generation of suppression records; you no longer
780 need to write them by hand. Use --gen-suppressions=yes.
781
sewardj21511802003-07-22 17:47:42 +0000782- strcpy/memcpy/etc check their arguments for overlaps, when
783 running with the Memcheck or Addrcheck skins.
784
785- malloc_usable_size() is now supported.
786
787- new client requests:
788 - VALGRIND_COUNT_ERRORS, VALGRIND_COUNT_LEAKS:
789 useful with regression testing
790 - VALGRIND_NON_SIMD_CALL[0123]: for running arbitrary functions
791 on real CPU (use with caution!)
792
sewardj9d916ed2003-07-14 23:38:40 +0000793- The GDB attach mechanism is more flexible. Allow the GDB to
794 be run to be specified by --gdb-path=/path/to/gdb, and specify
795 which file descriptor V will read its input from with
796 --input-fd=<number>.
797
sewardj21511802003-07-22 17:47:42 +0000798- Cachegrind gives more accurate results (wasn't tracking instructions in
799 malloc() and friends previously, is now).
800
sewardj9d916ed2003-07-14 23:38:40 +0000801- Complete support for the MMX instruction set.
802
803- Partial support for the SSE and SSE2 instruction sets. Work for this
804 is ongoing. About half the SSE/SSE2 instructions are done, so
805 some SSE based programs may work. Currently you need to specify
806 --skin=addrcheck. Basically not suitable for real use yet.
807
808- Significant speedups (10%-20%) for standard memory checking.
809
810- Fix assertion failure in pthread_once().
811
812- Fix this:
813 valgrind: vg_intercept.c:598 (vgAllRoadsLeadToRome_select):
814 Assertion `ms_end >= ms_now' failed.
815
816- Implement pthread_mutexattr_setpshared.
817
818- Understand Pentium 4 branch hints. Also implemented a couple more
819 obscure x86 instructions.
820
821- Lots of other minor bug fixes.
822
sewardj626fd892003-07-16 20:10:26 +0000823- We have a decent regression test system, for the first time.
824 This doesn't help you directly, but it does make it a lot easier
825 for us to track the quality of the system, especially across
826 multiple linux distributions.
827
828 You can run the regression tests with 'make regtest' after 'make
829 install' completes. On SuSE 8.2 and Red Hat 9 I get this:
830
831 == 84 tests, 0 stderr failures, 0 stdout failures ==
832
833 On Red Hat 8, I get this:
834
835 == 84 tests, 2 stderr failures, 1 stdout failure ==
836 corecheck/tests/res_search (stdout)
837 memcheck/tests/sigaltstack (stderr)
838
839 sigaltstack is probably harmless. res_search doesn't work
840 on R H 8 even running natively, so I'm not too worried.
841
842 On Red Hat 7.3, a glibc-2.2.5 system, I get these harmless failures:
843
844 == 84 tests, 2 stderr failures, 1 stdout failure ==
845 corecheck/tests/pth_atfork1 (stdout)
846 corecheck/tests/pth_atfork1 (stderr)
847 memcheck/tests/sigaltstack (stderr)
848
849 You need to run on a PII system, at least, since some tests
850 contain P6-specific instructions, and the test machine needs
851 access to the internet so that corecheck/tests/res_search
852 (a test that the DNS resolver works) can function.
853
sewardj9d916ed2003-07-14 23:38:40 +0000854As ever, thanks for the vast amount of feedback :) and bug reports :(
855We may not answer all messages, but we do at least look at all of
856them, and tend to fix the most frequently reported bugs.
857
858
859
sewardj37918822003-05-05 01:05:09 +0000860Version 1.9.6 (7 May 2003 or thereabouts)
861~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
862
863Major changes in 1.9.6:
864
865- Improved threading support for glibc >= 2.3.2 (SuSE 8.2,
866 RedHat 9, to name but two ...) It turned out that 1.9.5
867 had problems with threading support on glibc >= 2.3.2,
868 usually manifested by threaded programs deadlocking in system calls,
869 or running unbelievably slowly. Hopefully these are fixed now. 1.9.6
870 is the first valgrind which gives reasonable support for
871 glibc-2.3.2. Also fixed a 2.3.2 problem with pthread_atfork().
872
873- Majorly expanded FAQ.txt. We've added workarounds for all
874 common problems for which a workaround is known.
875
876Minor changes in 1.9.6:
877
878- Fix identification of the main thread's stack. Incorrect
879 identification of it was causing some on-stack addresses to not get
880 identified as such. This only affected the usefulness of some error
881 messages; the correctness of the checks made is unchanged.
882
883- Support for kernels >= 2.5.68.
884
885- Dummy implementations of __libc_current_sigrtmin,
886 __libc_current_sigrtmax and __libc_allocate_rtsig, hopefully
887 good enough to keep alive programs which previously died for lack of
888 them.
889
890- Fix bug in the VALGRIND_DISCARD_TRANSLATIONS client request.
891
sewardj3d47b792003-05-05 22:15:35 +0000892- Fix bug in the DWARF2 debug line info loader, when instructions
893 following each other have source lines far from each other
894 (e.g. with inlined functions).
895
sewardj37918822003-05-05 01:05:09 +0000896- Debug info reading: read symbols from both "symtab" and "dynsym"
897 sections, rather than merely from the one that comes last in the
898 file.
899
900- New syscall support: prctl(), creat(), lookup_dcookie().
901
902- When checking calls to accept(), recvfrom(), getsocketopt(),
903 don't complain if buffer values are NULL.
904
905- Try and avoid assertion failures in
906 mash_LD_PRELOAD_and_LD_LIBRARY_PATH.
907
908- Minor bug fixes in cg_annotate.
909
910
911
sewardj90238792003-05-05 00:23:42 +0000912Version 1.9.5 (7 April 2003)
913~~~~~~~~~~~~~~~~~~~~~~~~~~~~
914
915It occurs to me that it would be helpful for valgrind users to record
916in the source distribution the changes in each release. So I now
917attempt to mend my errant ways :-) Changes in this and future releases
918will be documented in the NEWS file in the source distribution.
919
920Major changes in 1.9.5:
921
922- (Critical bug fix): Fix a bug in the FPU simulation. This was
923 causing some floating point conditional tests not to work right.
924 Several people reported this. If you had floating point code which
925 didn't work right on 1.9.1 to 1.9.4, it's worth trying 1.9.5.
926
927- Partial support for Red Hat 9. RH9 uses the new Native Posix
928 Threads Library (NPTL), instead of the older LinuxThreads.
929 This potentially causes problems with V which will take some
930 time to correct. In the meantime we have partially worked around
931 this, and so 1.9.5 works on RH9. Threaded programs still work,
932 but they may deadlock, because some system calls (accept, read,
933 write, etc) which should be nonblocking, in fact do block. This
934 is a known bug which we are looking into.
935
936 If you can, your best bet (unfortunately) is to avoid using
937 1.9.5 on a Red Hat 9 system, or on any NPTL-based distribution.
938 If your glibc is 2.3.1 or earlier, you're almost certainly OK.
939
940Minor changes in 1.9.5:
941
942- Added some #errors to valgrind.h to ensure people don't include
943 it accidentally in their sources. This is a change from 1.0.X
944 which was never properly documented. The right thing to include
945 is now memcheck.h. Some people reported problems and strange
946 behaviour when (incorrectly) including valgrind.h in code with
947 1.9.1 -- 1.9.4. This is no longer possible.
948
949- Add some __extension__ bits and pieces so that gcc configured
950 for valgrind-checking compiles even with -Werror. If you
951 don't understand this, ignore it. Of interest to gcc developers
952 only.
953
954- Removed a pointless check which caused problems interworking
955 with Clearcase. V would complain about shared objects whose
956 names did not end ".so", and refuse to run. This is now fixed.
957 In fact it was fixed in 1.9.4 but not documented.
958
959- Fixed a bug causing an assertion failure of "waiters == 1"
960 somewhere in vg_scheduler.c, when running large threaded apps,
961 notably MySQL.
962
963- Add support for the munlock system call (124).
964
965Some comments about future releases:
966
9671.9.5 is, we hope, the most stable Valgrind so far. It pretty much
968supersedes the 1.0.X branch. If you are a valgrind packager, please
969consider making 1.9.5 available to your users. You can regard the
9701.0.X branch as obsolete: 1.9.5 is stable and vastly superior. There
971are no plans at all for further releases of the 1.0.X branch.
972
973If you want a leading-edge valgrind, consider building the cvs head
974(from SourceForge), or getting a snapshot of it. Current cool stuff
975going in includes MMX support (done); SSE/SSE2 support (in progress),
976a significant (10-20%) performance improvement (done), and the usual
977large collection of minor changes. Hopefully we will be able to
978improve our NPTL support, but no promises.
979