blob: c9cb8f743eab13a8fe83db7fdb3611849723f6ed [file] [log] [blame]
jseward43230652003-12-14 00:14:54 +00001
njn8c927302005-03-12 16:45:01 +00002Stable release 2.4.0 (March 2005) -- CHANGES RELATIVE TO 2.2.0
3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
52.4.0 represents another architectural change for Valgrind. The most
6significant user-visible change is that we no longer emulate
7libpthread; this has both pluses and minuses.
8
9* Memcheck is now the default tool
10
11* The default stack backtrace is now 12 call frames
12
13* Suppressions can have up to 25 call frame matches, rather than
14 just 4
15
16* libpthread has gone along with all the bugs associated with it.
17 Instead, Valgrind now emulates the kernel's threading syscalls
18 (clone, etc), and lets you use your standard system libpthread.
19 This means:
20
21 - There should be many fewer system dependencies and strange
22 library-related bugs. There is a small performance improvement,
23 and a large stability improvement.
24
25 - On the downside, this means that Valgrind can no longer report
26 on problems with how your program uses threads. It also means
27 that Helgrind is currently non-functional. We're hoping to
28 fix these for a (near) future release.
29
30* Addrcheck and memcheck use a lot less memory for many programs.
31 These tools no longer need to allocate shadow memory if there are
32 large regions of memory with the same A/V states - such as an
33 mmaped file.
34
35* Addrcheck and memcheck's leak-detector has been improved. It now
36 reports many more types of memory leak, including leaked cycles.
37 When reporting leaked memory, it can distinguish between directly
38 leaked memory (memory with no references), and indirectly leaked
39 memory (memory only referred to by other leaked memory).
40
41* Memcheck's confusion over the effect of mprotect() has been fixed;
42 previously mprotect could erroneously make undefined data defined.
43
44* State passed to signal handlers may be modified so that it will take
45 effect when the signal returns. You will need run with --single-step=yes
46 to make this useful.
47
48* In general, signal handling should now be indistinguishable from
49 running natively.
50
51* Valgrind is built in Position Independent Executable (PIE) format if
52 the toolchain supports it. This allows it to take advantage of all
53 the available address space on systems with 4Gbyte user address
54 spaces.
55
56* Valgrind can now run itself (requires PIE support).
57
58* Syscall arguments are now checked for validity. Previously all memory
59 used by syscalls was checked, but now the actual values passed
60 are also checked.
61
62* Syscall wrappers are now more robust against bad addresses being
63 passed to syscalls; they will fail with EFAULT rather than killing
64 Valgrind with SIGSEGV.
65
66* Because clone() is directly supported, many non-pthread uses of
67 it will work. Partial sharing (where some resources are shared,
68 and some are not) is not supported.
69
jseward34ed74f2004-08-30 18:04:42 +000070Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.0.0
71~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseward7d180d92004-08-30 18:15:37 +0000722.2.0 brings nine months worth of improvements and bug fixes. We
73believe it to be a worthy successor to 2.0.0. There are literally
74hundreds of bug fixes and minor improvements. There are also some
75fairly major user-visible changes:
76
77* A complete overhaul of handling of system calls and signals, and
78 their interaction with threads. In general, the accuracy of the
79 system call, thread and signal simulations is much improved:
80
81 - Blocking system calls behave exactly as they do when running
82 natively (not on valgrind). That is, if a syscall blocks only the
83 calling thread when running natively, than it behaves the same on
84 valgrind. No more mysterious hangs because V doesn't know that some
85 syscall or other, should block only the calling thread.
86
87 - Interrupted syscalls should now give more faithful results.
88
89 - Signal contexts in signal handlers are supported.
90
91* Improvements to NPTL support to the extent that V now works
92 properly on NPTL-only setups.
93
94* Greater isolation between Valgrind and the program being run, so
95 the program is less likely to inadvertently kill Valgrind by
96 doing wild writes.
97
98* Massif: a new space profiling tool. Try it! It's cool, and it'll
99 tell you in detail where and when your C/C++ code is allocating heap.
100 Draws pretty .ps pictures of memory use against time. A potentially
101 powerful tool for making sense of your program's space use.
102
103* File descriptor leakage checks. When enabled, Valgrind will print out
104 a list of open file descriptors on exit.
105
106* Improved SSE2/SSE3 support.
107
jseward2eb002b2004-08-31 00:14:02 +0000108* Time-stamped output; use --time-stamp=yes
109
jseward34ed74f2004-08-30 18:04:42 +0000110
111
112Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.1.2
113~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1142.2.0 is not much different from 2.1.2, released seven weeks ago.
115A number of bugs have been fixed, most notably #85658, which gave
116problems for quite a few people. There have been many internal
117cleanups, but those are not user visible.
118
119The following bugs have been fixed since 2.1.2:
120
12185658 Assert in coregrind/vg_libpthread.c:2326 (open64) !=
122 (void*)0 failed
123 This bug was reported multiple times, and so the following
124 duplicates of it are also fixed: 87620, 85796, 85935, 86065,
125 86919, 86988, 87917, 88156
126
12780716 Semaphore mapping bug caused by unmap (sem_destroy)
128 (Was fixed prior to 2.1.2)
129
13086987 semctl and shmctl syscalls family is not handled properly
131
13286696 valgrind 2.1.2 + RH AS2.1 + librt
133
13486730 valgrind locks up at end of run with assertion failure
135 in __pthread_unwind
136
13786641 memcheck doesn't work with Mesa OpenGL/ATI on Suse 9.1
138 (also fixes 74298, a duplicate of this)
139
14085947 MMX/SSE unhandled instruction 'sfence'
141
14284978 Wrong error "Conditional jump or move depends on
143 uninitialised value" resulting from "sbbl %reg, %reg"
144
14586254 ssort() fails when signed int return type from comparison is
146 too small to handle result of unsigned int subtraction
147
14887089 memalign( 4, xxx) makes valgrind assert
149
jseward2eb002b2004-08-31 00:14:02 +000015086407 Add support for low-level parallel port driver ioctls.
jseward34ed74f2004-08-30 18:04:42 +0000151
15270587 Add timestamps to Valgrind output? (wishlist)
153
15484937 vg_libpthread.c:2505 (se_remap): Assertion `res == 0'
155 (fixed prior to 2.1.2)
156
15786317 cannot load libSDL-1.2.so.0 using valgrind
158
15986989 memcpy from mac_replace_strmem.c complains about
160 uninitialized pointers passed when length to copy is zero
161
16285811 gnu pascal symbol causes segmentation fault; ok in 2.0.0
163
16479138 writing to sbrk()'d memory causes segfault
165
16677369 sched deadlock while signal received during pthread_join
167 and the joined thread exited
168
16988115 In signal handler for SIGFPE, siginfo->si_addr is wrong
170 under Valgrind
171
17278765 Massif crashes on app exit if FP exceptions are enabled
173
174Additionally there are the following changes, which are not
175connected to any bug report numbers, AFAICS:
176
177* Fix scary bug causing mis-identification of SSE stores vs
178 loads and so causing memcheck to sometimes give nonsense results
179 on SSE code.
180
181* Add support for the POSIX message queue system calls.
182
183* Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
184 NOT allow Valgrind to work with 64-bit executables - only with 32-bit
185 executables on an AMD64 box.
186
187* At configure time, only check whether linux/mii.h can be processed
188 so that we don't generate ugly warnings by trying to compile it.
189
jseward2eb002b2004-08-31 00:14:02 +0000190* Add support for POSIX clocks and timers.
191
jseward34ed74f2004-08-30 18:04:42 +0000192
193
jseward9cd978c2004-07-17 13:38:12 +0000194Developer (cvs head) release 2.1.2 (18 July 2004)
jsewardbd0a6e42004-07-17 12:19:43 +0000195~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1962.1.2 contains four months worth of bug fixes and refinements.
jseward9cd978c2004-07-17 13:38:12 +0000197Although officially a developer release, we believe it to be stable
198enough for widespread day-to-day use. 2.1.2 is pretty good, so try it
199first, although there is a chance it won't work. If so then try 2.0.0
200and tell us what went wrong." 2.1.2 fixes a lot of problems present
201in 2.0.0 and is generally a much better product.
jsewardbd0a6e42004-07-17 12:19:43 +0000202
jseward9cd978c2004-07-17 13:38:12 +0000203Relative to 2.1.1, a large number of minor problems with 2.1.1 have
204been fixed, and so if you use 2.1.1 you should try 2.1.2. Users of
205the last stable release, 2.0.0, might also want to try this release.
jsewardbd0a6e42004-07-17 12:19:43 +0000206
207The following bugs, and probably many more, have been fixed. These
208are listed at http://bugs.kde.org. Reporting a bug for valgrind in
209the http://bugs.kde.org is much more likely to get you a fix than
210mailing developers directly, so please continue to keep sending bugs
211there.
212
21376869 Crashes when running any tool under Fedora Core 2 test1
214 This fixes the problem with returning from a signal handler
jseward0400d4d2004-07-17 23:26:46 +0000215 when VDSOs are turned off in FC2.
jsewardbd0a6e42004-07-17 12:19:43 +0000216
jseward0400d4d2004-07-17 23:26:46 +000021769508 java 1.4.2 client fails with erroneous "stack size too small".
218 This fix makes more of the pthread stack attribute related
219 functions work properly. Java still doesn't work though.
jsewardbd0a6e42004-07-17 12:19:43 +0000220
22171906 malloc alignment should be 8, not 4
222 All memory returned by malloc/new etc is now at least
223 8-byte aligned.
224
jsewarda6017a42004-07-17 23:44:35 +000022581970 vg_alloc_ThreadState: no free slots available
226 (closed because the workaround is simple: increase
227 VG_N_THREADS, rebuild and try again.)
228
jsewardbd0a6e42004-07-17 12:19:43 +000022978514 Conditional jump or move depends on uninitialized value(s)
230 (a slight mishanding of FP code in memcheck)
231
jsewarda6017a42004-07-17 23:44:35 +000023277952 pThread Support (crash) (due to initialisation-ordering probs)
233 (also 85118)
234
jsewardbd0a6e42004-07-17 12:19:43 +000023580942 Addrcheck wasn't doing overlap checking as it should.
23678048 return NULL on malloc/new etc failure, instead of asserting
23773655 operator new() override in user .so files often doesn't get picked up
23883060 Valgrind does not handle native kernel AIO
23969872 Create proper coredumps after fatal signals
24082026 failure with new glibc versions: __libc_* functions are not exported
24170344 UNIMPLEMENTED FUNCTION: tcdrain
24281297 Cancellation of pthread_cond_wait does not require mutex
24382872 Using debug info from additional packages (wishlist)
24483025 Support for ioctls FIGETBSZ and FIBMAP
24583340 Support for ioctl HDIO_GET_IDENTITY
24679714 Support for the semtimedop system call.
24777022 Support for ioctls FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO
24882098 hp2ps ansification (wishlist)
24983573 Valgrind SIGSEGV on execve
25082999 show which cmdline option was erroneous (wishlist)
25183040 make valgrind VPATH and distcheck-clean (wishlist)
jsewarda6017a42004-07-17 23:44:35 +000025283998 Assertion `newfd > vgPlain_max_fd' failed (see below)
25382722 Unchecked mmap in as_pad leads to mysterious failures later
25478958 memcheck seg faults while running Mozilla
jsewarda2c08002004-07-18 09:24:57 +000025585416 Arguments with colon (e.g. --logsocket) ignored
jsewardbd0a6e42004-07-17 12:19:43 +0000256
257
258Additionally there are the following changes, which are not
259connected to any bug report numbers, AFAICS:
260
261* Rearranged address space layout relative to 2.1.1, so that
262 Valgrind/tools will run out of memory later than currently in many
263 circumstances. This is good news esp. for Calltree. It should
264 be possible for client programs to allocate over 800MB of
265 memory when using memcheck now.
266
jseward9cd978c2004-07-17 13:38:12 +0000267* Improved checking when laying out memory. Should hopefully avoid
268 the random segmentation faults that 2.1.1 sometimes caused.
269
jsewardbd0a6e42004-07-17 12:19:43 +0000270* Support for Fedora Core 2 and SuSE 9.1. Improvements to NPTL
271 support to the extent that V now works properly on NPTL-only setups.
272
273* Renamed the following options:
274 --logfile-fd --> --log-fd
275 --logfile --> --log-file
276 --logsocket --> --log-socket
277 to be consistent with each other and other options (esp. --input-fd).
278
279* Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
280 improve the checking of other interface related ioctls.
281
jsewardbd0a6e42004-07-17 12:19:43 +0000282* Fix building with gcc-3.4.1.
283
284* Remove limit on number of semaphores supported.
285
jsewardbd0a6e42004-07-17 12:19:43 +0000286* Add support for syscalls: set_tid_address (258), acct (51).
287
288* Support instruction "repne movs" -- not official but seems to occur.
289
290* Implement an emulated soft limit for file descriptors in addition to
291 the current reserved area, which effectively acts as a hard limit. The
292 setrlimit system call now simply updates the emulated limits as best
293 as possible - the hard limit is not allowed to move at all and just
294 returns EPERM if you try and change it. This should stop reductions
295 in the soft limit causing assertions when valgrind tries to allocate
296 descriptors from the reserved area.
jsewarda6017a42004-07-17 23:44:35 +0000297 (This actually came from bug #83998).
jsewardbd0a6e42004-07-17 12:19:43 +0000298
nethercote76e8fd92004-07-21 10:37:31 +0000299* Major overhaul of Cachegrind implementation. First user-visible change
nethercote5e63bfb2004-07-17 12:49:53 +0000300 is that cachegrind.out files are now typically 90% smaller than they
nethercote76e8fd92004-07-21 10:37:31 +0000301 used to be; code annotation times are correspondingly much smaller.
302 Second user-visible change is that hit/miss counts for code that is
303 unloaded at run-time is no longer dumped into a single "discard" pile,
304 but accurately preserved.
jsewardbd0a6e42004-07-17 12:19:43 +0000305
306* Client requests for telling valgrind about memory pools.
307
308
309
jseward9cd978c2004-07-17 13:38:12 +0000310Developer (cvs head) release 2.1.1 (12 March 2004)
311~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsewardbd0a6e42004-07-17 12:19:43 +00003122.1.1 contains some internal structural changes needed for V's
jsewarde3e77042004-03-12 21:07:05 +0000313long-term future. These don't affect end-users. Most notable
314user-visible changes are:
315
316* Greater isolation between Valgrind and the program being run, so
317 the program is less likely to inadvertently kill Valgrind by
318 doing wild writes.
319
320* Massif: a new space profiling tool. Try it! It's cool, and it'll
321 tell you in detail where and when your C/C++ code is allocating heap.
322 Draws pretty .ps pictures of memory use against time. A potentially
323 powerful tool for making sense of your program's space use.
324
325* Fixes for many bugs, including support for more SSE2/SSE3 instructions,
326 various signal/syscall things, and various problems with debug
327 info readers.
328
329* Support for glibc-2.3.3 based systems.
330
331We are now doing automatic overnight build-and-test runs on a variety
332of distros. As a result, we believe 2.1.1 builds and runs on:
333Red Hat 7.2, 7.3, 8.0, 9, Fedora Core 1, SuSE 8.2, SuSE 9.
334
335
336The following bugs, and probably many more, have been fixed. These
337are listed at http://bugs.kde.org. Reporting a bug for valgrind in
338the http://bugs.kde.org is much more likely to get you a fix than
339mailing developers directly, so please continue to keep sending bugs
340there.
341
34269616 glibc 2.3.2 w/NPTL is massively different than what valgrind expects
34369856 I don't know how to instrument MMXish stuff (Helgrind)
34473892 valgrind segfaults starting with Objective-C debug info
345 (fix for S-type stabs)
34673145 Valgrind complains too much about close(<reserved fd>)
34773902 Shadow memory allocation seems to fail on RedHat 8.0
34868633 VG_N_SEMAPHORES too low (V itself was leaking semaphores)
34975099 impossible to trace multiprocess programs
35076839 the `impossible' happened: disInstr: INT but not 0x80 !
35176762 vg_to_ucode.c:3748 (dis_push_segreg): Assertion `sz == 4' failed.
35276747 cannot include valgrind.h in c++ program
35376223 parsing B(3,10) gave NULL type => impossible happens
35475604 shmdt handling problem
35576416 Problems with gcc 3.4 snap 20040225
35675614 using -gstabs when building your programs the `impossible' happened
35775787 Patch for some CDROM ioctls CDORM_GET_MCN, CDROM_SEND_PACKET,
35875294 gcc 3.4 snapshot's libstdc++ have unsupported instructions.
359 (REP RET)
36073326 vg_symtab2.c:272 (addScopeRange): Assertion `range->size > 0' failed.
36172596 not recognizing __libc_malloc
36269489 Would like to attach ddd to running program
36372781 Cachegrind crashes with kde programs
36473055 Illegal operand at DXTCV11CompressBlockSSE2 (more SSE opcodes)
36573026 Descriptor leak check reports port numbers wrongly
36671705 README_MISSING_SYSCALL_OR_IOCTL out of date
36772643 Improve support for SSE/SSE2 instructions
36872484 valgrind leaves it's own signal mask in place when execing
36972650 Signal Handling always seems to restart system calls
37072006 The mmap system call turns all errors in ENOMEM
37171781 gdb attach is pretty useless
37271180 unhandled instruction bytes: 0xF 0xAE 0x85 0xE8
37369886 writes to zero page cause valgrind to assert on exit
37471791 crash when valgrinding gimp 1.3 (stabs reader problem)
37569783 unhandled syscall: 218
37669782 unhandled instruction bytes: 0x66 0xF 0x2B 0x80
37770385 valgrind fails if the soft file descriptor limit is less
378 than about 828
37969529 "rep; nop" should do a yield
38070827 programs with lots of shared libraries report "mmap failed"
381 for some of them when reading symbols
38271028 glibc's strnlen is optimised enough to confuse valgrind
383
384
385
386
jseward43230652003-12-14 00:14:54 +0000387Unstable (cvs head) release 2.1.0 (15 December 2003)
388~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389For whatever it's worth, 2.1.0 actually seems pretty darn stable to me
390(Julian). It looks eminently usable, and given that it fixes some
391significant bugs, may well be worth using on a day-to-day basis.
3922.1.0 is known to build and pass regression tests on: SuSE 9, SuSE
3938.2, RedHat 8.
394
3952.1.0 most notably includes Jeremy Fitzhardinge's complete overhaul of
396handling of system calls and signals, and their interaction with
397threads. In general, the accuracy of the system call, thread and
398signal simulations is much improved. Specifically:
399
400- Blocking system calls behave exactly as they do when running
401 natively (not on valgrind). That is, if a syscall blocks only the
402 calling thread when running natively, than it behaves the same on
403 valgrind. No more mysterious hangs because V doesn't know that some
404 syscall or other, should block only the calling thread.
405
406- Interrupted syscalls should now give more faithful results.
407
408- Finally, signal contexts in signal handlers are supported. As a
409 result, konqueror on SuSE 9 no longer segfaults when notified of
410 file changes in directories it is watching.
411
412Other changes:
413
414- Robert Walsh's file descriptor leakage checks. When enabled,
415 Valgrind will print out a list of open file descriptors on
416 exit. Along with each file descriptor, Valgrind prints out a stack
417 backtrace of where the file was opened and any details relating to the
418 file descriptor such as the file name or socket details.
419 To use, give: --track-fds=yes
420
421- Implemented a few more SSE/SSE2 instructions.
422
423- Less crud on the stack when you do 'where' inside a GDB attach.
424
425- Fixed the following bugs:
426 68360: Valgrind does not compile against 2.6.0-testX kernels
427 68525: CVS head doesn't compile on C90 compilers
428 68566: pkgconfig support (wishlist)
429 68588: Assertion `sz == 4' failed in vg_to_ucode.c (disInstr)
430 69140: valgrind not able to explicitly specify a path to a binary.
431 69432: helgrind asserts encountering a MutexErr when there are
432 EraserErr suppressions
433
jseward0b12daf2003-12-14 14:35:28 +0000434- Increase the max size of the translation cache from 200k average bbs
435 to 300k average bbs. Programs on the size of OOo (680m17) are
436 thrashing the cache at the smaller size, creating large numbers of
437 retranslations and wasting significant time as a result.
438
jseward43230652003-12-14 00:14:54 +0000439
440
441Stable release 2.0.0 (5 Nov 2003)
442~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
443
4442.0.0 improves SSE/SSE2 support, fixes some minor bugs, and
445improves support for SuSE 9 and the Red Hat "Severn" beta.
446
447- Further improvements to SSE/SSE2 support. The entire test suite of
448 the GNU Scientific Library (gsl-1.4) compiled with Intel Icc 7.1
449 20030307Z '-g -O -xW' now works. I think this gives pretty good
450 coverage of SSE/SSE2 floating point instructions, or at least the
451 subset emitted by Icc.
452
453- Also added support for the following instructions:
454 MOVNTDQ UCOMISD UNPCKLPS UNPCKHPS SQRTSS
455 PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS).
456
457- CFI support for GDB version 6. Needed to enable newer GDBs
458 to figure out where they are when using --gdb-attach=yes.
459
460- Fix this:
461 mc_translate.c:1091 (memcheck_instrument): Assertion
462 `u_in->size == 4 || u_in->size == 16' failed.
463
464- Return an error rather than panicing when given a bad socketcall.
465
466- Fix checking of syscall rt_sigtimedwait().
467
468- Implement __NR_clock_gettime (syscall 265). Needed on Red Hat Severn.
469
470- Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
471 bytes long, when it could be shorter, which could cause false
472 positives.
473
474- Support use of select() for very large numbers of file descriptors.
475
476- Don't fail silently if the executable is statically linked, or is
477 setuid/setgid. Print an error message instead.
478
479- Support for old DWARF-1 format line number info.
480
481
482
483Snapshot 20031012 (12 October 2003)
484~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
485
486Three months worth of bug fixes, roughly. Most significant single
487change is improved SSE/SSE2 support, mostly thanks to Dirk Mueller.
488
48920031012 builds on Red Hat Fedora ("Severn") but doesn't really work
490(curiosly, mozilla runs OK, but a modest "ls -l" bombs). I hope to
491get a working version out soon. It may or may not work ok on the
492forthcoming SuSE 9; I hear positive noises about it but haven't been
493able to verify this myself (not until I get hold of a copy of 9).
494
495A detailed list of changes, in no particular order:
496
497- Describe --gen-suppressions in the FAQ.
498
499- Syscall __NR_waitpid supported.
500
501- Minor MMX bug fix.
502
503- -v prints program's argv[] at startup.
504
505- More glibc-2.3 suppressions.
506
507- Suppressions for stack underrun bug(s) in the c++ support library
508 distributed with Intel Icc 7.0.
509
510- Fix problems reading /proc/self/maps.
511
512- Fix a couple of messages that should have been suppressed by -q,
513 but weren't.
514
515- Make Addrcheck understand "Overlap" suppressions.
516
517- At startup, check if program is statically linked and bail out if so.
518
519- Cachegrind: Auto-detect Intel Pentium-M, also VIA Nehemiah
520
521- Memcheck/addrcheck: minor speed optimisations
522
523- Handle syscall __NR_brk more correctly than before.
524
525- Fixed incorrect allocate/free mismatch errors when using
526 operator new(unsigned, std::nothrow_t const&)
527 operator new[](unsigned, std::nothrow_t const&)
528
529- Support POSIX pthread spinlocks.
530
531- Fixups for clean compilation with gcc-3.3.1.
daywalker5d945de2003-09-26 00:32:53 +0000532
533- Implemented more opcodes:
534 - push %es
535 - push %ds
536 - pop %es
537 - pop %ds
538 - movntq
539 - sfence
540 - pshufw
541 - pavgb
542 - ucomiss
543 - enter
daywalkerb18d2532003-09-27 20:15:01 +0000544 - mov imm32, %esp
545 - all "in" and "out" opcodes
daywalker79aad842003-09-30 22:58:12 +0000546 - inc/dec %esp
jseward43230652003-12-14 00:14:54 +0000547 - A whole bunch of SSE/SSE2 instructions
daywalker5d945de2003-09-26 00:32:53 +0000548
jseward43230652003-12-14 00:14:54 +0000549- Memcheck: don't bomb on SSE/SSE2 code.
daywalker5d945de2003-09-26 00:32:53 +0000550
sewardj90238792003-05-05 00:23:42 +0000551
sewardj945f39f2003-07-25 21:11:40 +0000552Snapshot 20030725 (25 July 2003)
553~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
554
555Fixes some minor problems in 20030716.
556
557- Fix bugs in overlap checking for strcpy/memcpy etc.
558
559- Do overlap checking with Addrcheck as well as Memcheck.
560
561- Fix this:
562 Memcheck: the `impossible' happened:
563 get_error_name: unexpected type
564
565- Install headers needed to compile new skins.
566
sewardje3dd2e02003-07-27 08:04:48 +0000567- Remove leading spaces and colon in the LD_LIBRARY_PATH / LD_PRELOAD
sewardj945f39f2003-07-25 21:11:40 +0000568 passed to non-traced children.
569
sewardjb9eda952003-07-26 21:39:05 +0000570- Fix file descriptor leak in valgrind-listener.
571
sewardje3dd2e02003-07-27 08:04:48 +0000572- Fix longstanding bug in which the allocation point of a
573 block resized by realloc was not correctly set. This may
574 have caused confusing error messages.
sewardj945f39f2003-07-25 21:11:40 +0000575
576
sewardj626fd892003-07-16 20:10:26 +0000577Snapshot 20030716 (16 July 2003)
sewardj9d916ed2003-07-14 23:38:40 +0000578~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
579
sewardj626fd892003-07-16 20:10:26 +000058020030716 is a snapshot of our current CVS head (development) branch.
sewardj9d916ed2003-07-14 23:38:40 +0000581This is the branch which will become valgrind-2.0. It contains
582significant enhancements over the 1.9.X branch.
583
584Despite this being a snapshot of the CVS head, it is believed to be
585quite stable -- at least as stable as 1.9.6 or 1.0.4, if not more so
586-- and therefore suitable for widespread use. Please let us know asap
587if it causes problems for you.
588
589Two reasons for releasing a snapshot now are:
590
591- It's been a while since 1.9.6, and this snapshot fixes
592 various problems that 1.9.6 has with threaded programs
593 on glibc-2.3.X based systems.
594
595- So as to make available improvements in the 2.0 line.
596
sewardj626fd892003-07-16 20:10:26 +0000597Major changes in 20030716, as compared to 1.9.6:
sewardj9d916ed2003-07-14 23:38:40 +0000598
599- More fixes to threading support on glibc-2.3.1 and 2.3.2-based
600 systems (SuSE 8.2, Red Hat 9). If you have had problems
601 with inconsistent/illogical behaviour of errno, h_errno or the DNS
sewardj626fd892003-07-16 20:10:26 +0000602 resolver functions in threaded programs, 20030716 should improve
sewardj9d916ed2003-07-14 23:38:40 +0000603 matters. This snapshot seems stable enough to run OpenOffice.org
604 1.1rc on Red Hat 7.3, SuSE 8.2 and Red Hat 9, and that's a big
605 threaded app if ever I saw one.
606
607- Automatic generation of suppression records; you no longer
608 need to write them by hand. Use --gen-suppressions=yes.
609
sewardj21511802003-07-22 17:47:42 +0000610- strcpy/memcpy/etc check their arguments for overlaps, when
611 running with the Memcheck or Addrcheck skins.
612
613- malloc_usable_size() is now supported.
614
615- new client requests:
616 - VALGRIND_COUNT_ERRORS, VALGRIND_COUNT_LEAKS:
617 useful with regression testing
618 - VALGRIND_NON_SIMD_CALL[0123]: for running arbitrary functions
619 on real CPU (use with caution!)
620
sewardj9d916ed2003-07-14 23:38:40 +0000621- The GDB attach mechanism is more flexible. Allow the GDB to
622 be run to be specified by --gdb-path=/path/to/gdb, and specify
623 which file descriptor V will read its input from with
624 --input-fd=<number>.
625
sewardj21511802003-07-22 17:47:42 +0000626- Cachegrind gives more accurate results (wasn't tracking instructions in
627 malloc() and friends previously, is now).
628
sewardj9d916ed2003-07-14 23:38:40 +0000629- Complete support for the MMX instruction set.
630
631- Partial support for the SSE and SSE2 instruction sets. Work for this
632 is ongoing. About half the SSE/SSE2 instructions are done, so
633 some SSE based programs may work. Currently you need to specify
634 --skin=addrcheck. Basically not suitable for real use yet.
635
636- Significant speedups (10%-20%) for standard memory checking.
637
638- Fix assertion failure in pthread_once().
639
640- Fix this:
641 valgrind: vg_intercept.c:598 (vgAllRoadsLeadToRome_select):
642 Assertion `ms_end >= ms_now' failed.
643
644- Implement pthread_mutexattr_setpshared.
645
646- Understand Pentium 4 branch hints. Also implemented a couple more
647 obscure x86 instructions.
648
649- Lots of other minor bug fixes.
650
sewardj626fd892003-07-16 20:10:26 +0000651- We have a decent regression test system, for the first time.
652 This doesn't help you directly, but it does make it a lot easier
653 for us to track the quality of the system, especially across
654 multiple linux distributions.
655
656 You can run the regression tests with 'make regtest' after 'make
657 install' completes. On SuSE 8.2 and Red Hat 9 I get this:
658
659 == 84 tests, 0 stderr failures, 0 stdout failures ==
660
661 On Red Hat 8, I get this:
662
663 == 84 tests, 2 stderr failures, 1 stdout failure ==
664 corecheck/tests/res_search (stdout)
665 memcheck/tests/sigaltstack (stderr)
666
667 sigaltstack is probably harmless. res_search doesn't work
668 on R H 8 even running natively, so I'm not too worried.
669
670 On Red Hat 7.3, a glibc-2.2.5 system, I get these harmless failures:
671
672 == 84 tests, 2 stderr failures, 1 stdout failure ==
673 corecheck/tests/pth_atfork1 (stdout)
674 corecheck/tests/pth_atfork1 (stderr)
675 memcheck/tests/sigaltstack (stderr)
676
677 You need to run on a PII system, at least, since some tests
678 contain P6-specific instructions, and the test machine needs
679 access to the internet so that corecheck/tests/res_search
680 (a test that the DNS resolver works) can function.
681
sewardj9d916ed2003-07-14 23:38:40 +0000682As ever, thanks for the vast amount of feedback :) and bug reports :(
683We may not answer all messages, but we do at least look at all of
684them, and tend to fix the most frequently reported bugs.
685
686
687
sewardj37918822003-05-05 01:05:09 +0000688Version 1.9.6 (7 May 2003 or thereabouts)
689~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
690
691Major changes in 1.9.6:
692
693- Improved threading support for glibc >= 2.3.2 (SuSE 8.2,
694 RedHat 9, to name but two ...) It turned out that 1.9.5
695 had problems with threading support on glibc >= 2.3.2,
696 usually manifested by threaded programs deadlocking in system calls,
697 or running unbelievably slowly. Hopefully these are fixed now. 1.9.6
698 is the first valgrind which gives reasonable support for
699 glibc-2.3.2. Also fixed a 2.3.2 problem with pthread_atfork().
700
701- Majorly expanded FAQ.txt. We've added workarounds for all
702 common problems for which a workaround is known.
703
704Minor changes in 1.9.6:
705
706- Fix identification of the main thread's stack. Incorrect
707 identification of it was causing some on-stack addresses to not get
708 identified as such. This only affected the usefulness of some error
709 messages; the correctness of the checks made is unchanged.
710
711- Support for kernels >= 2.5.68.
712
713- Dummy implementations of __libc_current_sigrtmin,
714 __libc_current_sigrtmax and __libc_allocate_rtsig, hopefully
715 good enough to keep alive programs which previously died for lack of
716 them.
717
718- Fix bug in the VALGRIND_DISCARD_TRANSLATIONS client request.
719
sewardj3d47b792003-05-05 22:15:35 +0000720- Fix bug in the DWARF2 debug line info loader, when instructions
721 following each other have source lines far from each other
722 (e.g. with inlined functions).
723
sewardj37918822003-05-05 01:05:09 +0000724- Debug info reading: read symbols from both "symtab" and "dynsym"
725 sections, rather than merely from the one that comes last in the
726 file.
727
728- New syscall support: prctl(), creat(), lookup_dcookie().
729
730- When checking calls to accept(), recvfrom(), getsocketopt(),
731 don't complain if buffer values are NULL.
732
733- Try and avoid assertion failures in
734 mash_LD_PRELOAD_and_LD_LIBRARY_PATH.
735
736- Minor bug fixes in cg_annotate.
737
738
739
sewardj90238792003-05-05 00:23:42 +0000740Version 1.9.5 (7 April 2003)
741~~~~~~~~~~~~~~~~~~~~~~~~~~~~
742
743It occurs to me that it would be helpful for valgrind users to record
744in the source distribution the changes in each release. So I now
745attempt to mend my errant ways :-) Changes in this and future releases
746will be documented in the NEWS file in the source distribution.
747
748Major changes in 1.9.5:
749
750- (Critical bug fix): Fix a bug in the FPU simulation. This was
751 causing some floating point conditional tests not to work right.
752 Several people reported this. If you had floating point code which
753 didn't work right on 1.9.1 to 1.9.4, it's worth trying 1.9.5.
754
755- Partial support for Red Hat 9. RH9 uses the new Native Posix
756 Threads Library (NPTL), instead of the older LinuxThreads.
757 This potentially causes problems with V which will take some
758 time to correct. In the meantime we have partially worked around
759 this, and so 1.9.5 works on RH9. Threaded programs still work,
760 but they may deadlock, because some system calls (accept, read,
761 write, etc) which should be nonblocking, in fact do block. This
762 is a known bug which we are looking into.
763
764 If you can, your best bet (unfortunately) is to avoid using
765 1.9.5 on a Red Hat 9 system, or on any NPTL-based distribution.
766 If your glibc is 2.3.1 or earlier, you're almost certainly OK.
767
768Minor changes in 1.9.5:
769
770- Added some #errors to valgrind.h to ensure people don't include
771 it accidentally in their sources. This is a change from 1.0.X
772 which was never properly documented. The right thing to include
773 is now memcheck.h. Some people reported problems and strange
774 behaviour when (incorrectly) including valgrind.h in code with
775 1.9.1 -- 1.9.4. This is no longer possible.
776
777- Add some __extension__ bits and pieces so that gcc configured
778 for valgrind-checking compiles even with -Werror. If you
779 don't understand this, ignore it. Of interest to gcc developers
780 only.
781
782- Removed a pointless check which caused problems interworking
783 with Clearcase. V would complain about shared objects whose
784 names did not end ".so", and refuse to run. This is now fixed.
785 In fact it was fixed in 1.9.4 but not documented.
786
787- Fixed a bug causing an assertion failure of "waiters == 1"
788 somewhere in vg_scheduler.c, when running large threaded apps,
789 notably MySQL.
790
791- Add support for the munlock system call (124).
792
793Some comments about future releases:
794
7951.9.5 is, we hope, the most stable Valgrind so far. It pretty much
796supersedes the 1.0.X branch. If you are a valgrind packager, please
797consider making 1.9.5 available to your users. You can regard the
7981.0.X branch as obsolete: 1.9.5 is stable and vastly superior. There
799are no plans at all for further releases of the 1.0.X branch.
800
801If you want a leading-edge valgrind, consider building the cvs head
802(from SourceForge), or getting a snapshot of it. Current cool stuff
803going in includes MMX support (done); SSE/SSE2 support (in progress),
804a significant (10-20%) performance improvement (done), and the usual
805large collection of minor changes. Hopefully we will be able to
806improve our NPTL support, but no promises.
807