blob: 44f9445dc1eda8c889d0e8f74a806abd3e3642d3 [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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
njn7b1a6a42005-07-20 04:20:44 +000063.0.0 is a major overhaul of Valgrind. The most significant
7user-visible change is that Valgrind now supports architectures other
8than x86. The new architectures it supports are AMD64 and PPC32, and
9the infrastructure is present for other architectures to be added later.
njn4a9f6f42005-07-19 23:46:08 +000010
11The AMD64 support works well, but has some shortcomings:
12
njn7b1a6a42005-07-20 04:20:44 +000013- It generally won't be as solid as the x86 version. For example,
14 support for more obscure instructions and system calls may be missing.
15 We will fix these as they arise.
njn4a9f6f42005-07-19 23:46:08 +000016
njn7b1a6a42005-07-20 04:20:44 +000017- Address space may be limited; see the point about
18 position-independent executables below.
njn4a9f6f42005-07-19 23:46:08 +000019
njn7b1a6a42005-07-20 04:20:44 +000020- If Valgrind is built on an AMD64 machine, it will only run 64-bit
21 executables. If you want to run 32-bit x86 executables under Valgrind
22 on an AMD64, you will need to build Valgrind on an x86 machine and
23 copy it to the AMD64 machine. And it probably won't work if you do
24 something tricky like exec'ing a 32-bit program from a 64-bit program
25 while using --trace-children=yes. We hope to improve this situation
26 in the future.
27
28The PPC32 support is very basic. It may not work reliably even for
29small programs, but it's a start. Many thanks to Paul Mackerras for his
30great work that enabled this support.
njn4a9f6f42005-07-19 23:46:08 +000031
32Other user-visible changes:
33
njn7b1a6a42005-07-20 04:20:44 +000034- No longer building Valgrind as a position-indendependent executable
35 (PIE) by default, as it caused too many problems.
njn4a9f6f42005-07-19 23:46:08 +000036
37 Without PIE enabled, AMD64 programs will only be able to access 2GB of
38 address space. We will fix this eventually, but not for the moment.
39
40 Use --enable-pie at configure-time to turn this on.
41
42- Support for programs that use stack-switching has been improved. Use
43 the --max-stackframe flag for simple cases, and the
44 VALGRIND_STACK_REGISTER, VALGRIND_STACK_DEREGISTER and
45 VALGRIND_STACK_CHANGE client requests for trickier cases.
46
njn7b1a6a42005-07-20 04:20:44 +000047- Support for programs that use self-modifying code has been improved,
48 in particular programs that put temporary code fragments on the stack.
49 This helps for C programs compiled with GCC that use nested functions,
njne7723322005-07-24 17:19:09 +000050 and also Ada programs. This is controlled with the --smc-check
njn7b1a6a42005-07-20 04:20:44 +000051 flag, although the default setting should work in most cases.
njn4a9f6f42005-07-19 23:46:08 +000052
njn7b1a6a42005-07-20 04:20:44 +000053- Output can now be printed in XML format. This should make it easier
54 for other tools (such as GUI front-ends) to use Valgrind output as
55 input. The --xml flag controls this. [[TODO: describe the related
56 CLOs added (eg. --log-file-qualifier)]]
njn4a9f6f42005-07-19 23:46:08 +000057
58- Programs that allocate many heap blocks may run faster, due to
59 improvements in certain data structures.
60
njn7b1a6a42005-07-20 04:20:44 +000061- Addrcheck is currently not working. We hope to get it working again
62 soon. Helgrind is still not working, as was the case for the 2.4.0
63 release.
njn4a9f6f42005-07-19 23:46:08 +000064
65- [[TODO: add more here]]
66
67Changes that are not user-visible:
68
69- The JITter has been completely rewritten, and is now in a separate
njn7b1a6a42005-07-20 04:20:44 +000070 library, called Vex. This enabled a lot of the user-visible changes,
71 such as new architecture support. It may run slower than the old
72 JITter; feedback about this would be useful.
njn4a9f6f42005-07-19 23:46:08 +000073
74- The code has been modularized significantly, and should be easier to
75 navigate and understand.
76
77- Lots of code has been rewritten.
78
79- [[TODO: add more here]]
80
81BUGS FIXED
82
83[[TODO: add the full list here (once the RCs are out of the way?)]]
84
85
njn8c927302005-03-12 16:45:01 +000086Stable release 2.4.0 (March 2005) -- CHANGES RELATIVE TO 2.2.0
njn1aa5ae42005-03-26 16:04:27 +000087~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
882.4.0 brings many significant changes and bug fixes. The most
89significant user-visible change is that we no longer supply our own
90pthread implementation. Instead, Valgrind is finally capable of
91running the native thread library, either LinuxThreads or NPTL.
njn8c927302005-03-12 16:45:01 +000092
njn1aa5ae42005-03-26 16:04:27 +000093This means our libpthread has gone, along with the bugs associated
94with it. Valgrind now supports the kernel's threading syscalls, and
95lets you use your standard system libpthread. As a result:
njn8c927302005-03-12 16:45:01 +000096
njn1aa5ae42005-03-26 16:04:27 +000097* There are many fewer system dependencies and strange library-related
98 bugs. There is a small performance improvement, and a large
99 stability improvement.
njn8c927302005-03-12 16:45:01 +0000100
njn1aa5ae42005-03-26 16:04:27 +0000101* On the downside, Valgrind can no longer report misuses of the POSIX
102 PThreads API. It also means that Helgrind currently does not work.
103 We hope to fix these problems in a future release.
njn8c927302005-03-12 16:45:01 +0000104
njn1aa5ae42005-03-26 16:04:27 +0000105Note that running the native thread libraries does not mean Valgrind
106is able to provide genuine concurrent execution on SMPs. We still
107impose the restriction that only one thread is running at any given
108time.
njn8c927302005-03-12 16:45:01 +0000109
njn1aa5ae42005-03-26 16:04:27 +0000110There are many other significant changes too:
njn8c927302005-03-12 16:45:01 +0000111
njn1aa5ae42005-03-26 16:04:27 +0000112* Memcheck is (once again) the default tool.
njn8c927302005-03-12 16:45:01 +0000113
njn1aa5ae42005-03-26 16:04:27 +0000114* The default stack backtrace is now 12 call frames, rather than 4.
njn8c927302005-03-12 16:45:01 +0000115
njn1aa5ae42005-03-26 16:04:27 +0000116* Suppressions can have up to 25 call frame matches, rather than 4.
njn8c927302005-03-12 16:45:01 +0000117
njn1aa5ae42005-03-26 16:04:27 +0000118* Memcheck and Addrcheck use less memory. Under some circumstances,
119 they no longer allocate shadow memory if there are large regions of
120 memory with the same A/V states - such as an mmaped file.
njn8c927302005-03-12 16:45:01 +0000121
njn1aa5ae42005-03-26 16:04:27 +0000122* The memory-leak detector in Memcheck and Addrcheck has been
123 improved. It now reports more types of memory leak, including
124 leaked cycles. When reporting leaked memory, it can distinguish
125 between directly leaked memory (memory with no references), and
126 indirectly leaked memory (memory only referred to by other leaked
127 memory).
njn8c927302005-03-12 16:45:01 +0000128
njn1aa5ae42005-03-26 16:04:27 +0000129* Memcheck's confusion over the effect of mprotect() has been fixed:
130 previously mprotect could erroneously mark undefined data as
131 defined.
njn8c927302005-03-12 16:45:01 +0000132
njn1aa5ae42005-03-26 16:04:27 +0000133* Signal handling is much improved and should be very close to what
134 you get when running natively.
135
136 One result of this is that Valgrind observes changes to sigcontexts
137 passed to signal handlers. Such modifications will take effect when
138 the signal returns. You will need to run with --single-step=yes to
139 make this useful.
njn8c927302005-03-12 16:45:01 +0000140
141* Valgrind is built in Position Independent Executable (PIE) format if
njn1aa5ae42005-03-26 16:04:27 +0000142 your toolchain supports it. This allows it to take advantage of all
njn8c927302005-03-12 16:45:01 +0000143 the available address space on systems with 4Gbyte user address
144 spaces.
145
146* Valgrind can now run itself (requires PIE support).
147
njn1aa5ae42005-03-26 16:04:27 +0000148* Syscall arguments are now checked for validity. Previously all
149 memory used by syscalls was checked, but now the actual values
150 passed are also checked.
njn8c927302005-03-12 16:45:01 +0000151
njn1aa5ae42005-03-26 16:04:27 +0000152* Syscall wrappers are more robust against bad addresses being passed
153 to syscalls: they will fail with EFAULT rather than killing Valgrind
154 with SIGSEGV.
njn8c927302005-03-12 16:45:01 +0000155
njn1aa5ae42005-03-26 16:04:27 +0000156* Because clone() is directly supported, some non-pthread uses of it
157 will work. Partial sharing (where some resources are shared, and
158 some are not) is not supported.
159
160* open() and readlink() on /proc/self/exe are supported.
161
162BUGS FIXED:
163
16488520 pipe+fork+dup2 kills the main program
16588604 Valgrind Aborts when using $VALGRIND_OPTS and user progra...
16688614 valgrind: vg_libpthread.c:2323 (read): Assertion `read_pt...
16788703 Stabs parser fails to handle ";"
16888886 ioctl wrappers for TIOCMBIS and TIOCMBIC
16989032 valgrind pthread_cond_timedwait fails
17089106 the 'impossible' happened
17189139 Missing sched_setaffinity & sched_getaffinity
17289198 valgrind lacks support for SIOCSPGRP and SIOCGPGRP
17389263 Missing ioctl translations for scsi-generic and CD playing
17489440 tests/deadlock.c line endings
17589481 `impossible' happened: EXEC FAILED
17689663 valgrind 2.2.0 crash on Redhat 7.2
17789792 Report pthread_mutex_lock() deadlocks instead of returnin...
17890111 statvfs64 gives invalid error/warning
17990128 crash+memory fault with stabs generated by gnat for a run...
18090778 VALGRIND_CHECK_DEFINED() not as documented in memcheck.h
18190834 cachegrind crashes at end of program without reporting re...
18291028 valgrind: vg_memory.c:229 (vgPlain_unmap_range): Assertio...
18391162 valgrind crash while debugging drivel 1.2.1
18491199 Unimplemented function
18591325 Signal routing does not propagate the siginfo structure
18691599 Assertion `cv == ((void *)0)'
18791604 rw_lookup clears orig and sends the NULL value to rw_new
18891821 Small problems building valgrind with $top_builddir ne $t...
18991844 signal 11 (SIGSEGV) at get_tcb (libpthread.c:86) in corec...
19092264 UNIMPLEMENTED FUNCTION: pthread_condattr_setpshared
19192331 per-target flags necessitate AM_PROG_CC_C_O
19292420 valgrind doesn't compile with linux 2.6.8.1/9
19392513 Valgrind 2.2.0 generates some warning messages
19492528 vg_symtab2.c:170 (addLoc): Assertion `loc->size > 0' failed.
19593096 unhandled ioctl 0x4B3A and 0x5601
19693117 Tool and core interface versions do not match
19793128 Can't run valgrind --tool=memcheck because of unimplement...
19893174 Valgrind can crash if passed bad args to certain syscalls
19993309 Stack frame in new thread is badly aligned
20093328 Wrong types used with sys_sigprocmask()
20193763 /usr/include/asm/msr.h is missing
20293776 valgrind: vg_memory.c:508 (vgPlain_find_map_space): Asser...
20393810 fcntl() argument checking a bit too strict
20494378 Assertion `tst->sigqueue_head != tst->sigqueue_tail' failed.
20594429 valgrind 2.2.0 segfault with mmap64 in glibc 2.3.3
20694645 Impossible happened: PINSRW mem
20794953 valgrind: the `impossible' happened: SIGSEGV
20895667 Valgrind does not work with any KDE app
20996243 Assertion 'res==0' failed
21096252 stage2 loader of valgrind fails to allocate memory
21196520 All programs crashing at _dl_start (in /lib/ld-2.3.3.so) ...
21296660 ioctl CDROMREADTOCENTRY causes bogus warnings
21396747 After looping in a segfault handler, the impossible happens
21496923 Zero sized arrays crash valgrind trace back with SIGFPE
21596948 valgrind stops with assertion failure regarding mmap2
21696966 valgrind fails when application opens more than 16 sockets
21797398 valgrind: vg_libpthread.c:2667 Assertion failed
21897407 valgrind: vg_mylibc.c:1226 (vgPlain_safe_fd): Assertion `...
21997427 "Warning: invalid file descriptor -1 in syscall close()" ...
22097785 missing backtrace
22197792 build in obj dir fails - autoconf / makefile cleanup
22297880 pthread_mutex_lock fails from shared library (special ker...
22397975 program aborts without ang VG messages
22498129 Failed when open and close file 230000 times using stdio
22598175 Crashes when using valgrind-2.2.0 with a program using al...
22698288 Massif broken
22798303 UNIMPLEMENTED FUNCTION pthread_condattr_setpshared
22898630 failed--compilation missing warnings.pm, fails to make he...
22998756 Cannot valgrind signal-heavy kdrive X server
23098966 valgrinding the JVM fails with a sanity check assertion
23199035 Valgrind crashes while profiling
23299142 loops with message "Signal 11 being dropped from thread 0...
23399195 threaded apps crash on thread start (using QThread::start...
23499348 Assertion `vgPlain_lseek(core_fd, 0, 1) == phdrs[i].p_off...
23599568 False negative due to mishandling of mprotect
23699738 valgrind memcheck crashes on program that uses sigitimer
23799923 0-sized allocations are reported as leaks
23899949 program seg faults after exit()
239100036 "newSuperblock's request for 1048576 bytes failed"
240100116 valgrind: (pthread_cond_init): Assertion `sizeof(* cond) ...
241100486 memcheck reports "valgrind: the `impossible' happened: V...
242100833 second call to "mremap" fails with EINVAL
243101156 (vgPlain_find_map_space): Assertion `(addr & ((1 << 12)-1...
244101173 Assertion `recDepth >= 0 && recDepth < 500' failed
245101291 creating threads in a forked process fails
246101313 valgrind causes different behavior when resizing a window...
247101423 segfault for c++ array of floats
248101562 valgrind massif dies on SIGINT even with signal handler r...
249
njn8c927302005-03-12 16:45:01 +0000250
jseward34ed74f2004-08-30 18:04:42 +0000251Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.0.0
252~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseward7d180d92004-08-30 18:15:37 +00002532.2.0 brings nine months worth of improvements and bug fixes. We
254believe it to be a worthy successor to 2.0.0. There are literally
255hundreds of bug fixes and minor improvements. There are also some
256fairly major user-visible changes:
257
258* A complete overhaul of handling of system calls and signals, and
259 their interaction with threads. In general, the accuracy of the
260 system call, thread and signal simulations is much improved:
261
262 - Blocking system calls behave exactly as they do when running
263 natively (not on valgrind). That is, if a syscall blocks only the
264 calling thread when running natively, than it behaves the same on
265 valgrind. No more mysterious hangs because V doesn't know that some
266 syscall or other, should block only the calling thread.
267
268 - Interrupted syscalls should now give more faithful results.
269
270 - Signal contexts in signal handlers are supported.
271
272* Improvements to NPTL support to the extent that V now works
273 properly on NPTL-only setups.
274
275* Greater isolation between Valgrind and the program being run, so
276 the program is less likely to inadvertently kill Valgrind by
277 doing wild writes.
278
279* Massif: a new space profiling tool. Try it! It's cool, and it'll
280 tell you in detail where and when your C/C++ code is allocating heap.
281 Draws pretty .ps pictures of memory use against time. A potentially
282 powerful tool for making sense of your program's space use.
283
284* File descriptor leakage checks. When enabled, Valgrind will print out
285 a list of open file descriptors on exit.
286
287* Improved SSE2/SSE3 support.
288
jseward2eb002b2004-08-31 00:14:02 +0000289* Time-stamped output; use --time-stamp=yes
290
jseward34ed74f2004-08-30 18:04:42 +0000291
292
293Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.1.2
294~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2952.2.0 is not much different from 2.1.2, released seven weeks ago.
296A number of bugs have been fixed, most notably #85658, which gave
297problems for quite a few people. There have been many internal
298cleanups, but those are not user visible.
299
300The following bugs have been fixed since 2.1.2:
301
30285658 Assert in coregrind/vg_libpthread.c:2326 (open64) !=
303 (void*)0 failed
304 This bug was reported multiple times, and so the following
305 duplicates of it are also fixed: 87620, 85796, 85935, 86065,
306 86919, 86988, 87917, 88156
307
30880716 Semaphore mapping bug caused by unmap (sem_destroy)
309 (Was fixed prior to 2.1.2)
310
31186987 semctl and shmctl syscalls family is not handled properly
312
31386696 valgrind 2.1.2 + RH AS2.1 + librt
314
31586730 valgrind locks up at end of run with assertion failure
316 in __pthread_unwind
317
31886641 memcheck doesn't work with Mesa OpenGL/ATI on Suse 9.1
319 (also fixes 74298, a duplicate of this)
320
32185947 MMX/SSE unhandled instruction 'sfence'
322
32384978 Wrong error "Conditional jump or move depends on
324 uninitialised value" resulting from "sbbl %reg, %reg"
325
32686254 ssort() fails when signed int return type from comparison is
327 too small to handle result of unsigned int subtraction
328
32987089 memalign( 4, xxx) makes valgrind assert
330
jseward2eb002b2004-08-31 00:14:02 +000033186407 Add support for low-level parallel port driver ioctls.
jseward34ed74f2004-08-30 18:04:42 +0000332
33370587 Add timestamps to Valgrind output? (wishlist)
334
33584937 vg_libpthread.c:2505 (se_remap): Assertion `res == 0'
336 (fixed prior to 2.1.2)
337
33886317 cannot load libSDL-1.2.so.0 using valgrind
339
34086989 memcpy from mac_replace_strmem.c complains about
341 uninitialized pointers passed when length to copy is zero
342
34385811 gnu pascal symbol causes segmentation fault; ok in 2.0.0
344
34579138 writing to sbrk()'d memory causes segfault
346
34777369 sched deadlock while signal received during pthread_join
348 and the joined thread exited
349
35088115 In signal handler for SIGFPE, siginfo->si_addr is wrong
351 under Valgrind
352
35378765 Massif crashes on app exit if FP exceptions are enabled
354
355Additionally there are the following changes, which are not
356connected to any bug report numbers, AFAICS:
357
358* Fix scary bug causing mis-identification of SSE stores vs
359 loads and so causing memcheck to sometimes give nonsense results
360 on SSE code.
361
362* Add support for the POSIX message queue system calls.
363
364* Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
365 NOT allow Valgrind to work with 64-bit executables - only with 32-bit
366 executables on an AMD64 box.
367
368* At configure time, only check whether linux/mii.h can be processed
369 so that we don't generate ugly warnings by trying to compile it.
370
jseward2eb002b2004-08-31 00:14:02 +0000371* Add support for POSIX clocks and timers.
372
jseward34ed74f2004-08-30 18:04:42 +0000373
374
jseward9cd978c2004-07-17 13:38:12 +0000375Developer (cvs head) release 2.1.2 (18 July 2004)
jsewardbd0a6e42004-07-17 12:19:43 +0000376~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3772.1.2 contains four months worth of bug fixes and refinements.
jseward9cd978c2004-07-17 13:38:12 +0000378Although officially a developer release, we believe it to be stable
379enough for widespread day-to-day use. 2.1.2 is pretty good, so try it
380first, although there is a chance it won't work. If so then try 2.0.0
381and tell us what went wrong." 2.1.2 fixes a lot of problems present
382in 2.0.0 and is generally a much better product.
jsewardbd0a6e42004-07-17 12:19:43 +0000383
jseward9cd978c2004-07-17 13:38:12 +0000384Relative to 2.1.1, a large number of minor problems with 2.1.1 have
385been fixed, and so if you use 2.1.1 you should try 2.1.2. Users of
386the last stable release, 2.0.0, might also want to try this release.
jsewardbd0a6e42004-07-17 12:19:43 +0000387
388The following bugs, and probably many more, have been fixed. These
389are listed at http://bugs.kde.org. Reporting a bug for valgrind in
390the http://bugs.kde.org is much more likely to get you a fix than
391mailing developers directly, so please continue to keep sending bugs
392there.
393
39476869 Crashes when running any tool under Fedora Core 2 test1
395 This fixes the problem with returning from a signal handler
jseward0400d4d2004-07-17 23:26:46 +0000396 when VDSOs are turned off in FC2.
jsewardbd0a6e42004-07-17 12:19:43 +0000397
jseward0400d4d2004-07-17 23:26:46 +000039869508 java 1.4.2 client fails with erroneous "stack size too small".
399 This fix makes more of the pthread stack attribute related
400 functions work properly. Java still doesn't work though.
jsewardbd0a6e42004-07-17 12:19:43 +0000401
40271906 malloc alignment should be 8, not 4
403 All memory returned by malloc/new etc is now at least
404 8-byte aligned.
405
jsewarda6017a42004-07-17 23:44:35 +000040681970 vg_alloc_ThreadState: no free slots available
407 (closed because the workaround is simple: increase
408 VG_N_THREADS, rebuild and try again.)
409
jsewardbd0a6e42004-07-17 12:19:43 +000041078514 Conditional jump or move depends on uninitialized value(s)
411 (a slight mishanding of FP code in memcheck)
412
jsewarda6017a42004-07-17 23:44:35 +000041377952 pThread Support (crash) (due to initialisation-ordering probs)
414 (also 85118)
415
jsewardbd0a6e42004-07-17 12:19:43 +000041680942 Addrcheck wasn't doing overlap checking as it should.
41778048 return NULL on malloc/new etc failure, instead of asserting
41873655 operator new() override in user .so files often doesn't get picked up
41983060 Valgrind does not handle native kernel AIO
42069872 Create proper coredumps after fatal signals
42182026 failure with new glibc versions: __libc_* functions are not exported
42270344 UNIMPLEMENTED FUNCTION: tcdrain
42381297 Cancellation of pthread_cond_wait does not require mutex
42482872 Using debug info from additional packages (wishlist)
42583025 Support for ioctls FIGETBSZ and FIBMAP
42683340 Support for ioctl HDIO_GET_IDENTITY
42779714 Support for the semtimedop system call.
42877022 Support for ioctls FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO
42982098 hp2ps ansification (wishlist)
43083573 Valgrind SIGSEGV on execve
43182999 show which cmdline option was erroneous (wishlist)
43283040 make valgrind VPATH and distcheck-clean (wishlist)
jsewarda6017a42004-07-17 23:44:35 +000043383998 Assertion `newfd > vgPlain_max_fd' failed (see below)
43482722 Unchecked mmap in as_pad leads to mysterious failures later
43578958 memcheck seg faults while running Mozilla
jsewarda2c08002004-07-18 09:24:57 +000043685416 Arguments with colon (e.g. --logsocket) ignored
jsewardbd0a6e42004-07-17 12:19:43 +0000437
438
439Additionally there are the following changes, which are not
440connected to any bug report numbers, AFAICS:
441
442* Rearranged address space layout relative to 2.1.1, so that
443 Valgrind/tools will run out of memory later than currently in many
444 circumstances. This is good news esp. for Calltree. It should
445 be possible for client programs to allocate over 800MB of
446 memory when using memcheck now.
447
jseward9cd978c2004-07-17 13:38:12 +0000448* Improved checking when laying out memory. Should hopefully avoid
449 the random segmentation faults that 2.1.1 sometimes caused.
450
jsewardbd0a6e42004-07-17 12:19:43 +0000451* Support for Fedora Core 2 and SuSE 9.1. Improvements to NPTL
452 support to the extent that V now works properly on NPTL-only setups.
453
454* Renamed the following options:
455 --logfile-fd --> --log-fd
456 --logfile --> --log-file
457 --logsocket --> --log-socket
458 to be consistent with each other and other options (esp. --input-fd).
459
460* Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
461 improve the checking of other interface related ioctls.
462
jsewardbd0a6e42004-07-17 12:19:43 +0000463* Fix building with gcc-3.4.1.
464
465* Remove limit on number of semaphores supported.
466
jsewardbd0a6e42004-07-17 12:19:43 +0000467* Add support for syscalls: set_tid_address (258), acct (51).
468
469* Support instruction "repne movs" -- not official but seems to occur.
470
471* Implement an emulated soft limit for file descriptors in addition to
472 the current reserved area, which effectively acts as a hard limit. The
473 setrlimit system call now simply updates the emulated limits as best
474 as possible - the hard limit is not allowed to move at all and just
475 returns EPERM if you try and change it. This should stop reductions
476 in the soft limit causing assertions when valgrind tries to allocate
477 descriptors from the reserved area.
jsewarda6017a42004-07-17 23:44:35 +0000478 (This actually came from bug #83998).
jsewardbd0a6e42004-07-17 12:19:43 +0000479
nethercote76e8fd92004-07-21 10:37:31 +0000480* Major overhaul of Cachegrind implementation. First user-visible change
nethercote5e63bfb2004-07-17 12:49:53 +0000481 is that cachegrind.out files are now typically 90% smaller than they
nethercote76e8fd92004-07-21 10:37:31 +0000482 used to be; code annotation times are correspondingly much smaller.
483 Second user-visible change is that hit/miss counts for code that is
484 unloaded at run-time is no longer dumped into a single "discard" pile,
485 but accurately preserved.
jsewardbd0a6e42004-07-17 12:19:43 +0000486
487* Client requests for telling valgrind about memory pools.
488
489
490
jseward9cd978c2004-07-17 13:38:12 +0000491Developer (cvs head) release 2.1.1 (12 March 2004)
492~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsewardbd0a6e42004-07-17 12:19:43 +00004932.1.1 contains some internal structural changes needed for V's
jsewarde3e77042004-03-12 21:07:05 +0000494long-term future. These don't affect end-users. Most notable
495user-visible changes are:
496
497* Greater isolation between Valgrind and the program being run, so
498 the program is less likely to inadvertently kill Valgrind by
499 doing wild writes.
500
501* Massif: a new space profiling tool. Try it! It's cool, and it'll
502 tell you in detail where and when your C/C++ code is allocating heap.
503 Draws pretty .ps pictures of memory use against time. A potentially
504 powerful tool for making sense of your program's space use.
505
506* Fixes for many bugs, including support for more SSE2/SSE3 instructions,
507 various signal/syscall things, and various problems with debug
508 info readers.
509
510* Support for glibc-2.3.3 based systems.
511
512We are now doing automatic overnight build-and-test runs on a variety
513of distros. As a result, we believe 2.1.1 builds and runs on:
514Red Hat 7.2, 7.3, 8.0, 9, Fedora Core 1, SuSE 8.2, SuSE 9.
515
516
517The following bugs, and probably many more, have been fixed. These
518are listed at http://bugs.kde.org. Reporting a bug for valgrind in
519the http://bugs.kde.org is much more likely to get you a fix than
520mailing developers directly, so please continue to keep sending bugs
521there.
522
52369616 glibc 2.3.2 w/NPTL is massively different than what valgrind expects
52469856 I don't know how to instrument MMXish stuff (Helgrind)
52573892 valgrind segfaults starting with Objective-C debug info
526 (fix for S-type stabs)
52773145 Valgrind complains too much about close(<reserved fd>)
52873902 Shadow memory allocation seems to fail on RedHat 8.0
52968633 VG_N_SEMAPHORES too low (V itself was leaking semaphores)
53075099 impossible to trace multiprocess programs
53176839 the `impossible' happened: disInstr: INT but not 0x80 !
53276762 vg_to_ucode.c:3748 (dis_push_segreg): Assertion `sz == 4' failed.
53376747 cannot include valgrind.h in c++ program
53476223 parsing B(3,10) gave NULL type => impossible happens
53575604 shmdt handling problem
53676416 Problems with gcc 3.4 snap 20040225
53775614 using -gstabs when building your programs the `impossible' happened
53875787 Patch for some CDROM ioctls CDORM_GET_MCN, CDROM_SEND_PACKET,
53975294 gcc 3.4 snapshot's libstdc++ have unsupported instructions.
540 (REP RET)
54173326 vg_symtab2.c:272 (addScopeRange): Assertion `range->size > 0' failed.
54272596 not recognizing __libc_malloc
54369489 Would like to attach ddd to running program
54472781 Cachegrind crashes with kde programs
54573055 Illegal operand at DXTCV11CompressBlockSSE2 (more SSE opcodes)
54673026 Descriptor leak check reports port numbers wrongly
54771705 README_MISSING_SYSCALL_OR_IOCTL out of date
54872643 Improve support for SSE/SSE2 instructions
54972484 valgrind leaves it's own signal mask in place when execing
55072650 Signal Handling always seems to restart system calls
55172006 The mmap system call turns all errors in ENOMEM
55271781 gdb attach is pretty useless
55371180 unhandled instruction bytes: 0xF 0xAE 0x85 0xE8
55469886 writes to zero page cause valgrind to assert on exit
55571791 crash when valgrinding gimp 1.3 (stabs reader problem)
55669783 unhandled syscall: 218
55769782 unhandled instruction bytes: 0x66 0xF 0x2B 0x80
55870385 valgrind fails if the soft file descriptor limit is less
559 than about 828
56069529 "rep; nop" should do a yield
56170827 programs with lots of shared libraries report "mmap failed"
562 for some of them when reading symbols
56371028 glibc's strnlen is optimised enough to confuse valgrind
564
565
566
567
jseward43230652003-12-14 00:14:54 +0000568Unstable (cvs head) release 2.1.0 (15 December 2003)
569~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
570For whatever it's worth, 2.1.0 actually seems pretty darn stable to me
571(Julian). It looks eminently usable, and given that it fixes some
572significant bugs, may well be worth using on a day-to-day basis.
5732.1.0 is known to build and pass regression tests on: SuSE 9, SuSE
5748.2, RedHat 8.
575
5762.1.0 most notably includes Jeremy Fitzhardinge's complete overhaul of
577handling of system calls and signals, and their interaction with
578threads. In general, the accuracy of the system call, thread and
579signal simulations is much improved. Specifically:
580
581- Blocking system calls behave exactly as they do when running
582 natively (not on valgrind). That is, if a syscall blocks only the
583 calling thread when running natively, than it behaves the same on
584 valgrind. No more mysterious hangs because V doesn't know that some
585 syscall or other, should block only the calling thread.
586
587- Interrupted syscalls should now give more faithful results.
588
589- Finally, signal contexts in signal handlers are supported. As a
590 result, konqueror on SuSE 9 no longer segfaults when notified of
591 file changes in directories it is watching.
592
593Other changes:
594
595- Robert Walsh's file descriptor leakage checks. When enabled,
596 Valgrind will print out a list of open file descriptors on
597 exit. Along with each file descriptor, Valgrind prints out a stack
598 backtrace of where the file was opened and any details relating to the
599 file descriptor such as the file name or socket details.
600 To use, give: --track-fds=yes
601
602- Implemented a few more SSE/SSE2 instructions.
603
604- Less crud on the stack when you do 'where' inside a GDB attach.
605
606- Fixed the following bugs:
607 68360: Valgrind does not compile against 2.6.0-testX kernels
608 68525: CVS head doesn't compile on C90 compilers
609 68566: pkgconfig support (wishlist)
610 68588: Assertion `sz == 4' failed in vg_to_ucode.c (disInstr)
611 69140: valgrind not able to explicitly specify a path to a binary.
612 69432: helgrind asserts encountering a MutexErr when there are
613 EraserErr suppressions
614
jseward0b12daf2003-12-14 14:35:28 +0000615- Increase the max size of the translation cache from 200k average bbs
616 to 300k average bbs. Programs on the size of OOo (680m17) are
617 thrashing the cache at the smaller size, creating large numbers of
618 retranslations and wasting significant time as a result.
619
jseward43230652003-12-14 00:14:54 +0000620
621
622Stable release 2.0.0 (5 Nov 2003)
623~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
624
6252.0.0 improves SSE/SSE2 support, fixes some minor bugs, and
626improves support for SuSE 9 and the Red Hat "Severn" beta.
627
628- Further improvements to SSE/SSE2 support. The entire test suite of
629 the GNU Scientific Library (gsl-1.4) compiled with Intel Icc 7.1
630 20030307Z '-g -O -xW' now works. I think this gives pretty good
631 coverage of SSE/SSE2 floating point instructions, or at least the
632 subset emitted by Icc.
633
634- Also added support for the following instructions:
635 MOVNTDQ UCOMISD UNPCKLPS UNPCKHPS SQRTSS
636 PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS).
637
638- CFI support for GDB version 6. Needed to enable newer GDBs
639 to figure out where they are when using --gdb-attach=yes.
640
641- Fix this:
642 mc_translate.c:1091 (memcheck_instrument): Assertion
643 `u_in->size == 4 || u_in->size == 16' failed.
644
645- Return an error rather than panicing when given a bad socketcall.
646
647- Fix checking of syscall rt_sigtimedwait().
648
649- Implement __NR_clock_gettime (syscall 265). Needed on Red Hat Severn.
650
651- Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
652 bytes long, when it could be shorter, which could cause false
653 positives.
654
655- Support use of select() for very large numbers of file descriptors.
656
657- Don't fail silently if the executable is statically linked, or is
658 setuid/setgid. Print an error message instead.
659
660- Support for old DWARF-1 format line number info.
661
662
663
664Snapshot 20031012 (12 October 2003)
665~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
666
667Three months worth of bug fixes, roughly. Most significant single
668change is improved SSE/SSE2 support, mostly thanks to Dirk Mueller.
669
67020031012 builds on Red Hat Fedora ("Severn") but doesn't really work
671(curiosly, mozilla runs OK, but a modest "ls -l" bombs). I hope to
672get a working version out soon. It may or may not work ok on the
673forthcoming SuSE 9; I hear positive noises about it but haven't been
674able to verify this myself (not until I get hold of a copy of 9).
675
676A detailed list of changes, in no particular order:
677
678- Describe --gen-suppressions in the FAQ.
679
680- Syscall __NR_waitpid supported.
681
682- Minor MMX bug fix.
683
684- -v prints program's argv[] at startup.
685
686- More glibc-2.3 suppressions.
687
688- Suppressions for stack underrun bug(s) in the c++ support library
689 distributed with Intel Icc 7.0.
690
691- Fix problems reading /proc/self/maps.
692
693- Fix a couple of messages that should have been suppressed by -q,
694 but weren't.
695
696- Make Addrcheck understand "Overlap" suppressions.
697
698- At startup, check if program is statically linked and bail out if so.
699
700- Cachegrind: Auto-detect Intel Pentium-M, also VIA Nehemiah
701
702- Memcheck/addrcheck: minor speed optimisations
703
704- Handle syscall __NR_brk more correctly than before.
705
706- Fixed incorrect allocate/free mismatch errors when using
707 operator new(unsigned, std::nothrow_t const&)
708 operator new[](unsigned, std::nothrow_t const&)
709
710- Support POSIX pthread spinlocks.
711
712- Fixups for clean compilation with gcc-3.3.1.
daywalker5d945de2003-09-26 00:32:53 +0000713
714- Implemented more opcodes:
715 - push %es
716 - push %ds
717 - pop %es
718 - pop %ds
719 - movntq
720 - sfence
721 - pshufw
722 - pavgb
723 - ucomiss
724 - enter
daywalkerb18d2532003-09-27 20:15:01 +0000725 - mov imm32, %esp
726 - all "in" and "out" opcodes
daywalker79aad842003-09-30 22:58:12 +0000727 - inc/dec %esp
jseward43230652003-12-14 00:14:54 +0000728 - A whole bunch of SSE/SSE2 instructions
daywalker5d945de2003-09-26 00:32:53 +0000729
jseward43230652003-12-14 00:14:54 +0000730- Memcheck: don't bomb on SSE/SSE2 code.
daywalker5d945de2003-09-26 00:32:53 +0000731
sewardj90238792003-05-05 00:23:42 +0000732
sewardj945f39f2003-07-25 21:11:40 +0000733Snapshot 20030725 (25 July 2003)
734~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
735
736Fixes some minor problems in 20030716.
737
738- Fix bugs in overlap checking for strcpy/memcpy etc.
739
740- Do overlap checking with Addrcheck as well as Memcheck.
741
742- Fix this:
743 Memcheck: the `impossible' happened:
744 get_error_name: unexpected type
745
746- Install headers needed to compile new skins.
747
sewardje3dd2e02003-07-27 08:04:48 +0000748- Remove leading spaces and colon in the LD_LIBRARY_PATH / LD_PRELOAD
sewardj945f39f2003-07-25 21:11:40 +0000749 passed to non-traced children.
750
sewardjb9eda952003-07-26 21:39:05 +0000751- Fix file descriptor leak in valgrind-listener.
752
sewardje3dd2e02003-07-27 08:04:48 +0000753- Fix longstanding bug in which the allocation point of a
754 block resized by realloc was not correctly set. This may
755 have caused confusing error messages.
sewardj945f39f2003-07-25 21:11:40 +0000756
757
sewardj626fd892003-07-16 20:10:26 +0000758Snapshot 20030716 (16 July 2003)
sewardj9d916ed2003-07-14 23:38:40 +0000759~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
760
sewardj626fd892003-07-16 20:10:26 +000076120030716 is a snapshot of our current CVS head (development) branch.
sewardj9d916ed2003-07-14 23:38:40 +0000762This is the branch which will become valgrind-2.0. It contains
763significant enhancements over the 1.9.X branch.
764
765Despite this being a snapshot of the CVS head, it is believed to be
766quite stable -- at least as stable as 1.9.6 or 1.0.4, if not more so
767-- and therefore suitable for widespread use. Please let us know asap
768if it causes problems for you.
769
770Two reasons for releasing a snapshot now are:
771
772- It's been a while since 1.9.6, and this snapshot fixes
773 various problems that 1.9.6 has with threaded programs
774 on glibc-2.3.X based systems.
775
776- So as to make available improvements in the 2.0 line.
777
sewardj626fd892003-07-16 20:10:26 +0000778Major changes in 20030716, as compared to 1.9.6:
sewardj9d916ed2003-07-14 23:38:40 +0000779
780- More fixes to threading support on glibc-2.3.1 and 2.3.2-based
781 systems (SuSE 8.2, Red Hat 9). If you have had problems
782 with inconsistent/illogical behaviour of errno, h_errno or the DNS
sewardj626fd892003-07-16 20:10:26 +0000783 resolver functions in threaded programs, 20030716 should improve
sewardj9d916ed2003-07-14 23:38:40 +0000784 matters. This snapshot seems stable enough to run OpenOffice.org
785 1.1rc on Red Hat 7.3, SuSE 8.2 and Red Hat 9, and that's a big
786 threaded app if ever I saw one.
787
788- Automatic generation of suppression records; you no longer
789 need to write them by hand. Use --gen-suppressions=yes.
790
sewardj21511802003-07-22 17:47:42 +0000791- strcpy/memcpy/etc check their arguments for overlaps, when
792 running with the Memcheck or Addrcheck skins.
793
794- malloc_usable_size() is now supported.
795
796- new client requests:
797 - VALGRIND_COUNT_ERRORS, VALGRIND_COUNT_LEAKS:
798 useful with regression testing
799 - VALGRIND_NON_SIMD_CALL[0123]: for running arbitrary functions
800 on real CPU (use with caution!)
801
sewardj9d916ed2003-07-14 23:38:40 +0000802- The GDB attach mechanism is more flexible. Allow the GDB to
803 be run to be specified by --gdb-path=/path/to/gdb, and specify
804 which file descriptor V will read its input from with
805 --input-fd=<number>.
806
sewardj21511802003-07-22 17:47:42 +0000807- Cachegrind gives more accurate results (wasn't tracking instructions in
808 malloc() and friends previously, is now).
809
sewardj9d916ed2003-07-14 23:38:40 +0000810- Complete support for the MMX instruction set.
811
812- Partial support for the SSE and SSE2 instruction sets. Work for this
813 is ongoing. About half the SSE/SSE2 instructions are done, so
814 some SSE based programs may work. Currently you need to specify
815 --skin=addrcheck. Basically not suitable for real use yet.
816
817- Significant speedups (10%-20%) for standard memory checking.
818
819- Fix assertion failure in pthread_once().
820
821- Fix this:
822 valgrind: vg_intercept.c:598 (vgAllRoadsLeadToRome_select):
823 Assertion `ms_end >= ms_now' failed.
824
825- Implement pthread_mutexattr_setpshared.
826
827- Understand Pentium 4 branch hints. Also implemented a couple more
828 obscure x86 instructions.
829
830- Lots of other minor bug fixes.
831
sewardj626fd892003-07-16 20:10:26 +0000832- We have a decent regression test system, for the first time.
833 This doesn't help you directly, but it does make it a lot easier
834 for us to track the quality of the system, especially across
835 multiple linux distributions.
836
837 You can run the regression tests with 'make regtest' after 'make
838 install' completes. On SuSE 8.2 and Red Hat 9 I get this:
839
840 == 84 tests, 0 stderr failures, 0 stdout failures ==
841
842 On Red Hat 8, I get this:
843
844 == 84 tests, 2 stderr failures, 1 stdout failure ==
845 corecheck/tests/res_search (stdout)
846 memcheck/tests/sigaltstack (stderr)
847
848 sigaltstack is probably harmless. res_search doesn't work
849 on R H 8 even running natively, so I'm not too worried.
850
851 On Red Hat 7.3, a glibc-2.2.5 system, I get these harmless failures:
852
853 == 84 tests, 2 stderr failures, 1 stdout failure ==
854 corecheck/tests/pth_atfork1 (stdout)
855 corecheck/tests/pth_atfork1 (stderr)
856 memcheck/tests/sigaltstack (stderr)
857
858 You need to run on a PII system, at least, since some tests
859 contain P6-specific instructions, and the test machine needs
860 access to the internet so that corecheck/tests/res_search
861 (a test that the DNS resolver works) can function.
862
sewardj9d916ed2003-07-14 23:38:40 +0000863As ever, thanks for the vast amount of feedback :) and bug reports :(
864We may not answer all messages, but we do at least look at all of
865them, and tend to fix the most frequently reported bugs.
866
867
868
sewardj37918822003-05-05 01:05:09 +0000869Version 1.9.6 (7 May 2003 or thereabouts)
870~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
871
872Major changes in 1.9.6:
873
874- Improved threading support for glibc >= 2.3.2 (SuSE 8.2,
875 RedHat 9, to name but two ...) It turned out that 1.9.5
876 had problems with threading support on glibc >= 2.3.2,
877 usually manifested by threaded programs deadlocking in system calls,
878 or running unbelievably slowly. Hopefully these are fixed now. 1.9.6
879 is the first valgrind which gives reasonable support for
880 glibc-2.3.2. Also fixed a 2.3.2 problem with pthread_atfork().
881
882- Majorly expanded FAQ.txt. We've added workarounds for all
883 common problems for which a workaround is known.
884
885Minor changes in 1.9.6:
886
887- Fix identification of the main thread's stack. Incorrect
888 identification of it was causing some on-stack addresses to not get
889 identified as such. This only affected the usefulness of some error
890 messages; the correctness of the checks made is unchanged.
891
892- Support for kernels >= 2.5.68.
893
894- Dummy implementations of __libc_current_sigrtmin,
895 __libc_current_sigrtmax and __libc_allocate_rtsig, hopefully
896 good enough to keep alive programs which previously died for lack of
897 them.
898
899- Fix bug in the VALGRIND_DISCARD_TRANSLATIONS client request.
900
sewardj3d47b792003-05-05 22:15:35 +0000901- Fix bug in the DWARF2 debug line info loader, when instructions
902 following each other have source lines far from each other
903 (e.g. with inlined functions).
904
sewardj37918822003-05-05 01:05:09 +0000905- Debug info reading: read symbols from both "symtab" and "dynsym"
906 sections, rather than merely from the one that comes last in the
907 file.
908
909- New syscall support: prctl(), creat(), lookup_dcookie().
910
911- When checking calls to accept(), recvfrom(), getsocketopt(),
912 don't complain if buffer values are NULL.
913
914- Try and avoid assertion failures in
915 mash_LD_PRELOAD_and_LD_LIBRARY_PATH.
916
917- Minor bug fixes in cg_annotate.
918
919
920
sewardj90238792003-05-05 00:23:42 +0000921Version 1.9.5 (7 April 2003)
922~~~~~~~~~~~~~~~~~~~~~~~~~~~~
923
924It occurs to me that it would be helpful for valgrind users to record
925in the source distribution the changes in each release. So I now
926attempt to mend my errant ways :-) Changes in this and future releases
927will be documented in the NEWS file in the source distribution.
928
929Major changes in 1.9.5:
930
931- (Critical bug fix): Fix a bug in the FPU simulation. This was
932 causing some floating point conditional tests not to work right.
933 Several people reported this. If you had floating point code which
934 didn't work right on 1.9.1 to 1.9.4, it's worth trying 1.9.5.
935
936- Partial support for Red Hat 9. RH9 uses the new Native Posix
937 Threads Library (NPTL), instead of the older LinuxThreads.
938 This potentially causes problems with V which will take some
939 time to correct. In the meantime we have partially worked around
940 this, and so 1.9.5 works on RH9. Threaded programs still work,
941 but they may deadlock, because some system calls (accept, read,
942 write, etc) which should be nonblocking, in fact do block. This
943 is a known bug which we are looking into.
944
945 If you can, your best bet (unfortunately) is to avoid using
946 1.9.5 on a Red Hat 9 system, or on any NPTL-based distribution.
947 If your glibc is 2.3.1 or earlier, you're almost certainly OK.
948
949Minor changes in 1.9.5:
950
951- Added some #errors to valgrind.h to ensure people don't include
952 it accidentally in their sources. This is a change from 1.0.X
953 which was never properly documented. The right thing to include
954 is now memcheck.h. Some people reported problems and strange
955 behaviour when (incorrectly) including valgrind.h in code with
956 1.9.1 -- 1.9.4. This is no longer possible.
957
958- Add some __extension__ bits and pieces so that gcc configured
959 for valgrind-checking compiles even with -Werror. If you
960 don't understand this, ignore it. Of interest to gcc developers
961 only.
962
963- Removed a pointless check which caused problems interworking
964 with Clearcase. V would complain about shared objects whose
965 names did not end ".so", and refuse to run. This is now fixed.
966 In fact it was fixed in 1.9.4 but not documented.
967
968- Fixed a bug causing an assertion failure of "waiters == 1"
969 somewhere in vg_scheduler.c, when running large threaded apps,
970 notably MySQL.
971
972- Add support for the munlock system call (124).
973
974Some comments about future releases:
975
9761.9.5 is, we hope, the most stable Valgrind so far. It pretty much
977supersedes the 1.0.X branch. If you are a valgrind packager, please
978consider making 1.9.5 available to your users. You can regard the
9791.0.X branch as obsolete: 1.9.5 is stable and vastly superior. There
980are no plans at all for further releases of the 1.0.X branch.
981
982If you want a leading-edge valgrind, consider building the cvs head
983(from SourceForge), or getting a snapshot of it. Current cool stuff
984going in includes MMX support (done); SSE/SSE2 support (in progress),
985a significant (10-20%) performance improvement (done), and the usual
986large collection of minor changes. Hopefully we will be able to
987improve our NPTL support, but no promises.
988