blob: 185983aa73b7637fba2d2fcbf56a78dc8fdfe936 [file] [log] [blame]
jseward43230652003-12-14 00:14:54 +00001
sewardjcd62fe72005-08-29 13:24:51 +00002Release 3.0.1 (29 August 2005)
3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43.0.1 fixes a bunch of bugs reported in 3.0.0. There is no new
5functionality. Some of the fixed bugs are critical, so if you
6use/distribute 3.0.0, and upgrade to 3.0.1 is recommended. The fixed
7bugs are:
8
9(note: "n-i-bz" means "not in bugzilla" -- this bug does not have
10 a bugzilla entry).
11
12109313 (== 110505) x86 cmpxchg8b
13n-i-bz x86: track but ignore changes to %eflags.AC (alignment check)
14110102 dis_op2_E_G(amd64)
15110202 x86 sys_waitpid(#286)
16110203 clock_getres(,0)
17110208 execve fail wrong retval
18110274 SSE1 now mandatory for x86
19110388 amd64 0xDD 0xD1
20110464 amd64 0xDC 0x1D FCOMP
21110478 amd64 0xF 0xD PREFETCH
22n-i-bz XML <unique> printing wrong
23n-i-bz Dirk r4359 (amd64 syscalls from trunk)
24110591 amd64 and x86: rdtsc not implemented properly
25n-i-bz Nick r4384 (stub implementations of Addrcheck and Helgrind)
26110652 AMD64 valgrind crashes on cwtd instruction
27110653 AMD64 valgrind crashes on sarb $0x4,foo(%rip) instruction
28110656 PATH=/usr/bin::/bin valgrind foobar stats ./fooba
29110657 Small test fixes
30110671 vex x86->IR: unhandled instruction bytes: 0xF3 0xC3 (rep ret)
31n-i-bz Nick (Cachegrind should not assert when it encounters a client
32 request.)
33110685 amd64->IR: unhandled instruction bytes: 0xE1 0x56 (loope Jb)
34110830 configuring with --host fails to build 32 bit on 64 bit target
35110875 Assertion when execve fails
36n-i-bz Updates to Memcheck manual
37n-i-bz Fixed broken malloc_usable_size()
38110898 opteron instructions missing: btq btsq btrq bsfq
39110954 x86->IR: unhandled instruction bytes: 0xE2 0xF6 (loop Jb)
40n-i-bz Make suppressions work for "???" lines in stacktraces.
41111006 bogus warnings from linuxthreads
42111092 x86: dis_Grp2(Reg): unhandled case(x86)
43111231 sctp_getladdrs() and sctp_getpaddrs() returns uninitialized
44 memory
45111102 (comment #4) Fixed 64-bit unclean "silly arg" message
46n-i-bz vex x86->IR: unhandled instruction bytes: 0x14 0x0
47n-i-bz minor umount/fcntl wrapper fixes
48111090 Internal Error running Massif
49101204 noisy warning
50111513 Illegal opcode for SSE instruction (x86 movups)
51111555 VEX/Makefile: CC is set to gcc
52n-i-bz Fix XML bugs in FAQ
53
54
sewardjec39f332005-08-02 15:28:07 +000055Release 3.0.0 (3 August 2005)
56~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardjf9929e62005-08-02 21:05:58 +0000573.0.0 is a major overhaul of Valgrind. The most significant user
58visible change is that Valgrind now supports architectures other than
59x86. The new architectures it supports are AMD64 and PPC32, and the
60infrastructure is present for other architectures to be added later.
njn4a9f6f42005-07-19 23:46:08 +000061
sewardjf9929e62005-08-02 21:05:58 +000062AMD64 support works well, but has some shortcomings:
njn4a9f6f42005-07-19 23:46:08 +000063
njn7b1a6a42005-07-20 04:20:44 +000064- It generally won't be as solid as the x86 version. For example,
65 support for more obscure instructions and system calls may be missing.
66 We will fix these as they arise.
njn4a9f6f42005-07-19 23:46:08 +000067
sewardjc371bd02005-07-27 09:55:24 +000068- Address space may be limited; see the point about
njn7b1a6a42005-07-20 04:20:44 +000069 position-independent executables below.
njn4a9f6f42005-07-19 23:46:08 +000070
njn7b1a6a42005-07-20 04:20:44 +000071- If Valgrind is built on an AMD64 machine, it will only run 64-bit
72 executables. If you want to run 32-bit x86 executables under Valgrind
73 on an AMD64, you will need to build Valgrind on an x86 machine and
74 copy it to the AMD64 machine. And it probably won't work if you do
75 something tricky like exec'ing a 32-bit program from a 64-bit program
76 while using --trace-children=yes. We hope to improve this situation
77 in the future.
78
79The PPC32 support is very basic. It may not work reliably even for
sewardjc371bd02005-07-27 09:55:24 +000080small programs, but it's a start. Many thanks to Paul Mackerras for
81his great work that enabled this support. We are working to make
82PPC32 usable as soon as possible.
njn4a9f6f42005-07-19 23:46:08 +000083
84Other user-visible changes:
85
sewardjec39f332005-08-02 15:28:07 +000086- Valgrind is no longer built by default as a position-independent
87 executable (PIE), as this caused too many problems.
njn4a9f6f42005-07-19 23:46:08 +000088
89 Without PIE enabled, AMD64 programs will only be able to access 2GB of
90 address space. We will fix this eventually, but not for the moment.
91
92 Use --enable-pie at configure-time to turn this on.
93
94- Support for programs that use stack-switching has been improved. Use
95 the --max-stackframe flag for simple cases, and the
96 VALGRIND_STACK_REGISTER, VALGRIND_STACK_DEREGISTER and
97 VALGRIND_STACK_CHANGE client requests for trickier cases.
98
njn7b1a6a42005-07-20 04:20:44 +000099- Support for programs that use self-modifying code has been improved,
100 in particular programs that put temporary code fragments on the stack.
101 This helps for C programs compiled with GCC that use nested functions,
njne7723322005-07-24 17:19:09 +0000102 and also Ada programs. This is controlled with the --smc-check
njn7b1a6a42005-07-20 04:20:44 +0000103 flag, although the default setting should work in most cases.
njn4a9f6f42005-07-19 23:46:08 +0000104
njn7b1a6a42005-07-20 04:20:44 +0000105- Output can now be printed in XML format. This should make it easier
sewardjc371bd02005-07-27 09:55:24 +0000106 for tools such as GUI front-ends and automated error-processing
107 schemes to use Valgrind output as input. The --xml flag controls this.
108 As part of this change, ELF directory information is read from executables,
109 so absolute source file paths are available if needed.
njn4a9f6f42005-07-19 23:46:08 +0000110
111- Programs that allocate many heap blocks may run faster, due to
112 improvements in certain data structures.
113
njn7b1a6a42005-07-20 04:20:44 +0000114- Addrcheck is currently not working. We hope to get it working again
115 soon. Helgrind is still not working, as was the case for the 2.4.0
116 release.
njn4a9f6f42005-07-19 23:46:08 +0000117
sewardjc371bd02005-07-27 09:55:24 +0000118- The JITter has been completely rewritten, and is now in a separate
119 library, called Vex. This enabled a lot of the user-visible changes,
120 such as new architecture support. The new JIT unfortunately translates
121 more slowly than the old one, so programs may take longer to start.
122 We believe the code quality is produces is about the same, so once
123 started, programs should run at about the same speed. Feedback about
124 this would be useful.
125
126 On the plus side, Vex and hence Memcheck tracks value flow properly
127 through floating point and vector registers, something the 2.X line
128 could not do. That means that Memcheck is much more likely to be
129 usably accurate on vectorised code.
130
sewardjec39f332005-08-02 15:28:07 +0000131- There is a subtle change to the way exiting of threaded programs
sewardjc371bd02005-07-27 09:55:24 +0000132 is handled. In 3.0, Valgrind's final diagnostic output (leak check,
133 etc) is not printed until the last thread exits. If the last thread
134 to exit was not the original thread which started the program, any
135 other process wait()-ing on this one to exit may conclude it has
136 finished before the diagnostic output is printed. This may not be
137 what you expect. 2.X had a different scheme which avoided this
138 problem, but caused deadlocks under obscure circumstances, so we
139 are trying something different for 3.0.
140
141- Small changes in control log file naming which make it easier to
sewardjec39f332005-08-02 15:28:07 +0000142 use valgrind for debugging MPI-based programs. The relevant
143 new flags are --log-file-exactly= and --log-file-qualifier=.
sewardjc371bd02005-07-27 09:55:24 +0000144
145- As part of adding AMD64 support, DWARF2 CFI-based stack unwinding
146 support was added. In principle this means Valgrind can produce
147 meaningful backtraces on x86 code compiled with -fomit-frame-pointer
tom81868f02005-07-27 10:33:08 +0000148 providing you also compile your code with -fasynchronous-unwind-tables.
sewardjc371bd02005-07-27 09:55:24 +0000149
sewardjec39f332005-08-02 15:28:07 +0000150- The documentation build system has been completely redone.
151 The documentation masters are now in XML format, and from that
152 HTML, PostScript and PDF documentation is generated. As a result
153 the manual is now available in book form. Note that the
154 documentation in the source tarballs is pre-built, so you don't need
155 any XML processing tools to build Valgrind from a tarball.
njn4a9f6f42005-07-19 23:46:08 +0000156
157Changes that are not user-visible:
158
sewardjc371bd02005-07-27 09:55:24 +0000159- The code has been massively overhauled in order to modularise it.
160 As a result we hope it is easier to navigate and understand.
njn4a9f6f42005-07-19 23:46:08 +0000161
162- Lots of code has been rewritten.
163
sewardjf9929e62005-08-02 21:05:58 +0000164BUGS FIXED:
njn4a9f6f42005-07-19 23:46:08 +0000165
sewardj79bd9b62005-08-03 16:40:10 +0000166110046 sz == 4 assertion failed
167109810 vex amd64->IR: unhandled instruction bytes: 0xA3 0x4C 0x70 0xD7
sewardjf9929e62005-08-02 21:05:58 +0000168109802 Add a plausible_stack_size command-line parameter ?
169109783 unhandled ioctl TIOCMGET (running hw detection tool discover)
170109780 unhandled ioctl BLKSSZGET (running fdisk -l /dev/hda)
171109718 vex x86->IR: unhandled instruction: ffreep
172109429 AMD64 unhandled syscall: 127 (sigpending)
173109401 false positive uninit in strchr from ld-linux.so.2
174109385 "stabs" parse failure
175109378 amd64: unhandled instruction REP NOP
176109376 amd64: unhandled instruction LOOP Jb
177109363 AMD64 unhandled instruction bytes
178109362 AMD64 unhandled syscall: 24 (sched_yield)
179109358 fork() won't work with valgrind-3.0 SVN
180109332 amd64 unhandled instruction: ADC Ev, Gv
181109314 Bogus memcheck report on amd64
182108883 Crash; vg_memory.c:905 (vgPlain_init_shadow_range):
183 Assertion `vgPlain_defined_init_shadow_page()' failed.
184108349 mincore syscall parameter checked incorrectly
185108059 build infrastructure: small update
186107524 epoll_ctl event parameter checked on EPOLL_CTL_DEL
187107123 Vex dies with unhandled instructions: 0xD9 0x31 0xF 0xAE
188106841 auxmap & openGL problems
189106713 SDL_Init causes valgrind to exit
190106352 setcontext and makecontext not handled correctly
191106293 addresses beyond initial client stack allocation
192 not checked in VALGRIND_DO_LEAK_CHECK
193106283 PIE client programs are loaded at address 0
194105831 Assertion `vgPlain_defined_init_shadow_page()' failed.
195105039 long run-times probably due to memory manager
196104797 valgrind needs to be aware of BLKGETSIZE64
197103594 unhandled instruction: FICOM
198103320 Valgrind 2.4.0 fails to compile with gcc 3.4.3 and -O0
199103168 potentially memory leak in coregrind/ume.c
200102039 bad permissions for mapped region at address 0xB7C73680
201101881 weird assertion problem
202101543 Support fadvise64 syscalls
20375247 x86_64/amd64 support (the biggest "bug" we have ever fixed)
njn4a9f6f42005-07-19 23:46:08 +0000204
sewardj9a919512005-08-03 17:01:51 +0000205(3.0RC1: 27 July 05, vex r1303, valgrind r4283).
sewardj1346e132005-08-03 20:42:06 +0000206(3.0.0: 3 August 05, vex r1313, valgrind r4316).
sewardjbfa2b992005-07-27 17:49:17 +0000207
208
209
njn8c927302005-03-12 16:45:01 +0000210Stable release 2.4.0 (March 2005) -- CHANGES RELATIVE TO 2.2.0
njn1aa5ae42005-03-26 16:04:27 +0000211~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2122.4.0 brings many significant changes and bug fixes. The most
213significant user-visible change is that we no longer supply our own
214pthread implementation. Instead, Valgrind is finally capable of
215running the native thread library, either LinuxThreads or NPTL.
njn8c927302005-03-12 16:45:01 +0000216
njn1aa5ae42005-03-26 16:04:27 +0000217This means our libpthread has gone, along with the bugs associated
218with it. Valgrind now supports the kernel's threading syscalls, and
219lets you use your standard system libpthread. As a result:
njn8c927302005-03-12 16:45:01 +0000220
njn1aa5ae42005-03-26 16:04:27 +0000221* There are many fewer system dependencies and strange library-related
222 bugs. There is a small performance improvement, and a large
223 stability improvement.
njn8c927302005-03-12 16:45:01 +0000224
njn1aa5ae42005-03-26 16:04:27 +0000225* On the downside, Valgrind can no longer report misuses of the POSIX
226 PThreads API. It also means that Helgrind currently does not work.
227 We hope to fix these problems in a future release.
njn8c927302005-03-12 16:45:01 +0000228
njn1aa5ae42005-03-26 16:04:27 +0000229Note that running the native thread libraries does not mean Valgrind
230is able to provide genuine concurrent execution on SMPs. We still
231impose the restriction that only one thread is running at any given
232time.
njn8c927302005-03-12 16:45:01 +0000233
njn1aa5ae42005-03-26 16:04:27 +0000234There are many other significant changes too:
njn8c927302005-03-12 16:45:01 +0000235
njn1aa5ae42005-03-26 16:04:27 +0000236* Memcheck is (once again) the default tool.
njn8c927302005-03-12 16:45:01 +0000237
njn1aa5ae42005-03-26 16:04:27 +0000238* The default stack backtrace is now 12 call frames, rather than 4.
njn8c927302005-03-12 16:45:01 +0000239
njn1aa5ae42005-03-26 16:04:27 +0000240* Suppressions can have up to 25 call frame matches, rather than 4.
njn8c927302005-03-12 16:45:01 +0000241
njn1aa5ae42005-03-26 16:04:27 +0000242* Memcheck and Addrcheck use less memory. Under some circumstances,
243 they no longer allocate shadow memory if there are large regions of
244 memory with the same A/V states - such as an mmaped file.
njn8c927302005-03-12 16:45:01 +0000245
njn1aa5ae42005-03-26 16:04:27 +0000246* The memory-leak detector in Memcheck and Addrcheck has been
247 improved. It now reports more types of memory leak, including
248 leaked cycles. When reporting leaked memory, it can distinguish
249 between directly leaked memory (memory with no references), and
250 indirectly leaked memory (memory only referred to by other leaked
251 memory).
njn8c927302005-03-12 16:45:01 +0000252
njn1aa5ae42005-03-26 16:04:27 +0000253* Memcheck's confusion over the effect of mprotect() has been fixed:
254 previously mprotect could erroneously mark undefined data as
255 defined.
njn8c927302005-03-12 16:45:01 +0000256
njn1aa5ae42005-03-26 16:04:27 +0000257* Signal handling is much improved and should be very close to what
258 you get when running natively.
259
260 One result of this is that Valgrind observes changes to sigcontexts
261 passed to signal handlers. Such modifications will take effect when
262 the signal returns. You will need to run with --single-step=yes to
263 make this useful.
njn8c927302005-03-12 16:45:01 +0000264
265* Valgrind is built in Position Independent Executable (PIE) format if
njn1aa5ae42005-03-26 16:04:27 +0000266 your toolchain supports it. This allows it to take advantage of all
njn8c927302005-03-12 16:45:01 +0000267 the available address space on systems with 4Gbyte user address
268 spaces.
269
270* Valgrind can now run itself (requires PIE support).
271
njn1aa5ae42005-03-26 16:04:27 +0000272* Syscall arguments are now checked for validity. Previously all
273 memory used by syscalls was checked, but now the actual values
274 passed are also checked.
njn8c927302005-03-12 16:45:01 +0000275
njn1aa5ae42005-03-26 16:04:27 +0000276* Syscall wrappers are more robust against bad addresses being passed
277 to syscalls: they will fail with EFAULT rather than killing Valgrind
278 with SIGSEGV.
njn8c927302005-03-12 16:45:01 +0000279
njn1aa5ae42005-03-26 16:04:27 +0000280* Because clone() is directly supported, some non-pthread uses of it
281 will work. Partial sharing (where some resources are shared, and
282 some are not) is not supported.
283
284* open() and readlink() on /proc/self/exe are supported.
285
286BUGS FIXED:
287
28888520 pipe+fork+dup2 kills the main program
28988604 Valgrind Aborts when using $VALGRIND_OPTS and user progra...
29088614 valgrind: vg_libpthread.c:2323 (read): Assertion `read_pt...
29188703 Stabs parser fails to handle ";"
29288886 ioctl wrappers for TIOCMBIS and TIOCMBIC
29389032 valgrind pthread_cond_timedwait fails
29489106 the 'impossible' happened
29589139 Missing sched_setaffinity & sched_getaffinity
29689198 valgrind lacks support for SIOCSPGRP and SIOCGPGRP
29789263 Missing ioctl translations for scsi-generic and CD playing
29889440 tests/deadlock.c line endings
29989481 `impossible' happened: EXEC FAILED
30089663 valgrind 2.2.0 crash on Redhat 7.2
30189792 Report pthread_mutex_lock() deadlocks instead of returnin...
30290111 statvfs64 gives invalid error/warning
30390128 crash+memory fault with stabs generated by gnat for a run...
30490778 VALGRIND_CHECK_DEFINED() not as documented in memcheck.h
30590834 cachegrind crashes at end of program without reporting re...
30691028 valgrind: vg_memory.c:229 (vgPlain_unmap_range): Assertio...
30791162 valgrind crash while debugging drivel 1.2.1
30891199 Unimplemented function
30991325 Signal routing does not propagate the siginfo structure
31091599 Assertion `cv == ((void *)0)'
31191604 rw_lookup clears orig and sends the NULL value to rw_new
31291821 Small problems building valgrind with $top_builddir ne $t...
31391844 signal 11 (SIGSEGV) at get_tcb (libpthread.c:86) in corec...
31492264 UNIMPLEMENTED FUNCTION: pthread_condattr_setpshared
31592331 per-target flags necessitate AM_PROG_CC_C_O
31692420 valgrind doesn't compile with linux 2.6.8.1/9
31792513 Valgrind 2.2.0 generates some warning messages
31892528 vg_symtab2.c:170 (addLoc): Assertion `loc->size > 0' failed.
31993096 unhandled ioctl 0x4B3A and 0x5601
32093117 Tool and core interface versions do not match
32193128 Can't run valgrind --tool=memcheck because of unimplement...
32293174 Valgrind can crash if passed bad args to certain syscalls
32393309 Stack frame in new thread is badly aligned
32493328 Wrong types used with sys_sigprocmask()
32593763 /usr/include/asm/msr.h is missing
32693776 valgrind: vg_memory.c:508 (vgPlain_find_map_space): Asser...
32793810 fcntl() argument checking a bit too strict
32894378 Assertion `tst->sigqueue_head != tst->sigqueue_tail' failed.
32994429 valgrind 2.2.0 segfault with mmap64 in glibc 2.3.3
33094645 Impossible happened: PINSRW mem
33194953 valgrind: the `impossible' happened: SIGSEGV
33295667 Valgrind does not work with any KDE app
33396243 Assertion 'res==0' failed
33496252 stage2 loader of valgrind fails to allocate memory
33596520 All programs crashing at _dl_start (in /lib/ld-2.3.3.so) ...
33696660 ioctl CDROMREADTOCENTRY causes bogus warnings
33796747 After looping in a segfault handler, the impossible happens
33896923 Zero sized arrays crash valgrind trace back with SIGFPE
33996948 valgrind stops with assertion failure regarding mmap2
34096966 valgrind fails when application opens more than 16 sockets
34197398 valgrind: vg_libpthread.c:2667 Assertion failed
34297407 valgrind: vg_mylibc.c:1226 (vgPlain_safe_fd): Assertion `...
34397427 "Warning: invalid file descriptor -1 in syscall close()" ...
34497785 missing backtrace
34597792 build in obj dir fails - autoconf / makefile cleanup
34697880 pthread_mutex_lock fails from shared library (special ker...
34797975 program aborts without ang VG messages
34898129 Failed when open and close file 230000 times using stdio
34998175 Crashes when using valgrind-2.2.0 with a program using al...
35098288 Massif broken
35198303 UNIMPLEMENTED FUNCTION pthread_condattr_setpshared
35298630 failed--compilation missing warnings.pm, fails to make he...
35398756 Cannot valgrind signal-heavy kdrive X server
35498966 valgrinding the JVM fails with a sanity check assertion
35599035 Valgrind crashes while profiling
35699142 loops with message "Signal 11 being dropped from thread 0...
35799195 threaded apps crash on thread start (using QThread::start...
35899348 Assertion `vgPlain_lseek(core_fd, 0, 1) == phdrs[i].p_off...
35999568 False negative due to mishandling of mprotect
36099738 valgrind memcheck crashes on program that uses sigitimer
36199923 0-sized allocations are reported as leaks
36299949 program seg faults after exit()
363100036 "newSuperblock's request for 1048576 bytes failed"
364100116 valgrind: (pthread_cond_init): Assertion `sizeof(* cond) ...
365100486 memcheck reports "valgrind: the `impossible' happened: V...
366100833 second call to "mremap" fails with EINVAL
367101156 (vgPlain_find_map_space): Assertion `(addr & ((1 << 12)-1...
368101173 Assertion `recDepth >= 0 && recDepth < 500' failed
369101291 creating threads in a forked process fails
370101313 valgrind causes different behavior when resizing a window...
371101423 segfault for c++ array of floats
372101562 valgrind massif dies on SIGINT even with signal handler r...
373
njn8c927302005-03-12 16:45:01 +0000374
jseward34ed74f2004-08-30 18:04:42 +0000375Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.0.0
376~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseward7d180d92004-08-30 18:15:37 +00003772.2.0 brings nine months worth of improvements and bug fixes. We
378believe it to be a worthy successor to 2.0.0. There are literally
379hundreds of bug fixes and minor improvements. There are also some
380fairly major user-visible changes:
381
382* A complete overhaul of handling of system calls and signals, and
383 their interaction with threads. In general, the accuracy of the
384 system call, thread and signal simulations is much improved:
385
386 - Blocking system calls behave exactly as they do when running
387 natively (not on valgrind). That is, if a syscall blocks only the
388 calling thread when running natively, than it behaves the same on
389 valgrind. No more mysterious hangs because V doesn't know that some
390 syscall or other, should block only the calling thread.
391
392 - Interrupted syscalls should now give more faithful results.
393
394 - Signal contexts in signal handlers are supported.
395
396* Improvements to NPTL support to the extent that V now works
397 properly on NPTL-only setups.
398
399* Greater isolation between Valgrind and the program being run, so
400 the program is less likely to inadvertently kill Valgrind by
401 doing wild writes.
402
403* Massif: a new space profiling tool. Try it! It's cool, and it'll
404 tell you in detail where and when your C/C++ code is allocating heap.
405 Draws pretty .ps pictures of memory use against time. A potentially
406 powerful tool for making sense of your program's space use.
407
408* File descriptor leakage checks. When enabled, Valgrind will print out
409 a list of open file descriptors on exit.
410
411* Improved SSE2/SSE3 support.
412
jseward2eb002b2004-08-31 00:14:02 +0000413* Time-stamped output; use --time-stamp=yes
414
jseward34ed74f2004-08-30 18:04:42 +0000415
416
417Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.1.2
418~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4192.2.0 is not much different from 2.1.2, released seven weeks ago.
420A number of bugs have been fixed, most notably #85658, which gave
421problems for quite a few people. There have been many internal
422cleanups, but those are not user visible.
423
424The following bugs have been fixed since 2.1.2:
425
42685658 Assert in coregrind/vg_libpthread.c:2326 (open64) !=
427 (void*)0 failed
428 This bug was reported multiple times, and so the following
429 duplicates of it are also fixed: 87620, 85796, 85935, 86065,
430 86919, 86988, 87917, 88156
431
43280716 Semaphore mapping bug caused by unmap (sem_destroy)
433 (Was fixed prior to 2.1.2)
434
43586987 semctl and shmctl syscalls family is not handled properly
436
43786696 valgrind 2.1.2 + RH AS2.1 + librt
438
43986730 valgrind locks up at end of run with assertion failure
440 in __pthread_unwind
441
44286641 memcheck doesn't work with Mesa OpenGL/ATI on Suse 9.1
443 (also fixes 74298, a duplicate of this)
444
44585947 MMX/SSE unhandled instruction 'sfence'
446
44784978 Wrong error "Conditional jump or move depends on
448 uninitialised value" resulting from "sbbl %reg, %reg"
449
45086254 ssort() fails when signed int return type from comparison is
451 too small to handle result of unsigned int subtraction
452
45387089 memalign( 4, xxx) makes valgrind assert
454
jseward2eb002b2004-08-31 00:14:02 +000045586407 Add support for low-level parallel port driver ioctls.
jseward34ed74f2004-08-30 18:04:42 +0000456
45770587 Add timestamps to Valgrind output? (wishlist)
458
45984937 vg_libpthread.c:2505 (se_remap): Assertion `res == 0'
460 (fixed prior to 2.1.2)
461
46286317 cannot load libSDL-1.2.so.0 using valgrind
463
46486989 memcpy from mac_replace_strmem.c complains about
465 uninitialized pointers passed when length to copy is zero
466
46785811 gnu pascal symbol causes segmentation fault; ok in 2.0.0
468
46979138 writing to sbrk()'d memory causes segfault
470
47177369 sched deadlock while signal received during pthread_join
472 and the joined thread exited
473
47488115 In signal handler for SIGFPE, siginfo->si_addr is wrong
475 under Valgrind
476
47778765 Massif crashes on app exit if FP exceptions are enabled
478
479Additionally there are the following changes, which are not
480connected to any bug report numbers, AFAICS:
481
482* Fix scary bug causing mis-identification of SSE stores vs
483 loads and so causing memcheck to sometimes give nonsense results
484 on SSE code.
485
486* Add support for the POSIX message queue system calls.
487
488* Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
489 NOT allow Valgrind to work with 64-bit executables - only with 32-bit
490 executables on an AMD64 box.
491
492* At configure time, only check whether linux/mii.h can be processed
493 so that we don't generate ugly warnings by trying to compile it.
494
jseward2eb002b2004-08-31 00:14:02 +0000495* Add support for POSIX clocks and timers.
496
jseward34ed74f2004-08-30 18:04:42 +0000497
498
jseward9cd978c2004-07-17 13:38:12 +0000499Developer (cvs head) release 2.1.2 (18 July 2004)
jsewardbd0a6e42004-07-17 12:19:43 +0000500~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5012.1.2 contains four months worth of bug fixes and refinements.
jseward9cd978c2004-07-17 13:38:12 +0000502Although officially a developer release, we believe it to be stable
503enough for widespread day-to-day use. 2.1.2 is pretty good, so try it
504first, although there is a chance it won't work. If so then try 2.0.0
505and tell us what went wrong." 2.1.2 fixes a lot of problems present
506in 2.0.0 and is generally a much better product.
jsewardbd0a6e42004-07-17 12:19:43 +0000507
jseward9cd978c2004-07-17 13:38:12 +0000508Relative to 2.1.1, a large number of minor problems with 2.1.1 have
509been fixed, and so if you use 2.1.1 you should try 2.1.2. Users of
510the last stable release, 2.0.0, might also want to try this release.
jsewardbd0a6e42004-07-17 12:19:43 +0000511
512The following bugs, and probably many more, have been fixed. These
513are listed at http://bugs.kde.org. Reporting a bug for valgrind in
514the http://bugs.kde.org is much more likely to get you a fix than
515mailing developers directly, so please continue to keep sending bugs
516there.
517
51876869 Crashes when running any tool under Fedora Core 2 test1
519 This fixes the problem with returning from a signal handler
jseward0400d4d2004-07-17 23:26:46 +0000520 when VDSOs are turned off in FC2.
jsewardbd0a6e42004-07-17 12:19:43 +0000521
jseward0400d4d2004-07-17 23:26:46 +000052269508 java 1.4.2 client fails with erroneous "stack size too small".
523 This fix makes more of the pthread stack attribute related
524 functions work properly. Java still doesn't work though.
jsewardbd0a6e42004-07-17 12:19:43 +0000525
52671906 malloc alignment should be 8, not 4
527 All memory returned by malloc/new etc is now at least
528 8-byte aligned.
529
jsewarda6017a42004-07-17 23:44:35 +000053081970 vg_alloc_ThreadState: no free slots available
531 (closed because the workaround is simple: increase
532 VG_N_THREADS, rebuild and try again.)
533
jsewardbd0a6e42004-07-17 12:19:43 +000053478514 Conditional jump or move depends on uninitialized value(s)
535 (a slight mishanding of FP code in memcheck)
536
jsewarda6017a42004-07-17 23:44:35 +000053777952 pThread Support (crash) (due to initialisation-ordering probs)
538 (also 85118)
539
jsewardbd0a6e42004-07-17 12:19:43 +000054080942 Addrcheck wasn't doing overlap checking as it should.
54178048 return NULL on malloc/new etc failure, instead of asserting
54273655 operator new() override in user .so files often doesn't get picked up
54383060 Valgrind does not handle native kernel AIO
54469872 Create proper coredumps after fatal signals
54582026 failure with new glibc versions: __libc_* functions are not exported
54670344 UNIMPLEMENTED FUNCTION: tcdrain
54781297 Cancellation of pthread_cond_wait does not require mutex
54882872 Using debug info from additional packages (wishlist)
54983025 Support for ioctls FIGETBSZ and FIBMAP
55083340 Support for ioctl HDIO_GET_IDENTITY
55179714 Support for the semtimedop system call.
55277022 Support for ioctls FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO
55382098 hp2ps ansification (wishlist)
55483573 Valgrind SIGSEGV on execve
55582999 show which cmdline option was erroneous (wishlist)
55683040 make valgrind VPATH and distcheck-clean (wishlist)
jsewarda6017a42004-07-17 23:44:35 +000055783998 Assertion `newfd > vgPlain_max_fd' failed (see below)
55882722 Unchecked mmap in as_pad leads to mysterious failures later
55978958 memcheck seg faults while running Mozilla
jsewarda2c08002004-07-18 09:24:57 +000056085416 Arguments with colon (e.g. --logsocket) ignored
jsewardbd0a6e42004-07-17 12:19:43 +0000561
562
563Additionally there are the following changes, which are not
564connected to any bug report numbers, AFAICS:
565
566* Rearranged address space layout relative to 2.1.1, so that
567 Valgrind/tools will run out of memory later than currently in many
568 circumstances. This is good news esp. for Calltree. It should
569 be possible for client programs to allocate over 800MB of
570 memory when using memcheck now.
571
jseward9cd978c2004-07-17 13:38:12 +0000572* Improved checking when laying out memory. Should hopefully avoid
573 the random segmentation faults that 2.1.1 sometimes caused.
574
jsewardbd0a6e42004-07-17 12:19:43 +0000575* Support for Fedora Core 2 and SuSE 9.1. Improvements to NPTL
576 support to the extent that V now works properly on NPTL-only setups.
577
578* Renamed the following options:
579 --logfile-fd --> --log-fd
580 --logfile --> --log-file
581 --logsocket --> --log-socket
582 to be consistent with each other and other options (esp. --input-fd).
583
584* Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
585 improve the checking of other interface related ioctls.
586
jsewardbd0a6e42004-07-17 12:19:43 +0000587* Fix building with gcc-3.4.1.
588
589* Remove limit on number of semaphores supported.
590
jsewardbd0a6e42004-07-17 12:19:43 +0000591* Add support for syscalls: set_tid_address (258), acct (51).
592
593* Support instruction "repne movs" -- not official but seems to occur.
594
595* Implement an emulated soft limit for file descriptors in addition to
596 the current reserved area, which effectively acts as a hard limit. The
597 setrlimit system call now simply updates the emulated limits as best
598 as possible - the hard limit is not allowed to move at all and just
599 returns EPERM if you try and change it. This should stop reductions
600 in the soft limit causing assertions when valgrind tries to allocate
601 descriptors from the reserved area.
jsewarda6017a42004-07-17 23:44:35 +0000602 (This actually came from bug #83998).
jsewardbd0a6e42004-07-17 12:19:43 +0000603
nethercote76e8fd92004-07-21 10:37:31 +0000604* Major overhaul of Cachegrind implementation. First user-visible change
nethercote5e63bfb2004-07-17 12:49:53 +0000605 is that cachegrind.out files are now typically 90% smaller than they
nethercote76e8fd92004-07-21 10:37:31 +0000606 used to be; code annotation times are correspondingly much smaller.
607 Second user-visible change is that hit/miss counts for code that is
608 unloaded at run-time is no longer dumped into a single "discard" pile,
609 but accurately preserved.
jsewardbd0a6e42004-07-17 12:19:43 +0000610
611* Client requests for telling valgrind about memory pools.
612
613
614
jseward9cd978c2004-07-17 13:38:12 +0000615Developer (cvs head) release 2.1.1 (12 March 2004)
616~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsewardbd0a6e42004-07-17 12:19:43 +00006172.1.1 contains some internal structural changes needed for V's
jsewarde3e77042004-03-12 21:07:05 +0000618long-term future. These don't affect end-users. Most notable
619user-visible changes are:
620
621* Greater isolation between Valgrind and the program being run, so
622 the program is less likely to inadvertently kill Valgrind by
623 doing wild writes.
624
625* Massif: a new space profiling tool. Try it! It's cool, and it'll
626 tell you in detail where and when your C/C++ code is allocating heap.
627 Draws pretty .ps pictures of memory use against time. A potentially
628 powerful tool for making sense of your program's space use.
629
630* Fixes for many bugs, including support for more SSE2/SSE3 instructions,
631 various signal/syscall things, and various problems with debug
632 info readers.
633
634* Support for glibc-2.3.3 based systems.
635
636We are now doing automatic overnight build-and-test runs on a variety
637of distros. As a result, we believe 2.1.1 builds and runs on:
638Red Hat 7.2, 7.3, 8.0, 9, Fedora Core 1, SuSE 8.2, SuSE 9.
639
640
641The following bugs, and probably many more, have been fixed. These
642are listed at http://bugs.kde.org. Reporting a bug for valgrind in
643the http://bugs.kde.org is much more likely to get you a fix than
644mailing developers directly, so please continue to keep sending bugs
645there.
646
64769616 glibc 2.3.2 w/NPTL is massively different than what valgrind expects
64869856 I don't know how to instrument MMXish stuff (Helgrind)
64973892 valgrind segfaults starting with Objective-C debug info
650 (fix for S-type stabs)
65173145 Valgrind complains too much about close(<reserved fd>)
65273902 Shadow memory allocation seems to fail on RedHat 8.0
65368633 VG_N_SEMAPHORES too low (V itself was leaking semaphores)
65475099 impossible to trace multiprocess programs
65576839 the `impossible' happened: disInstr: INT but not 0x80 !
65676762 vg_to_ucode.c:3748 (dis_push_segreg): Assertion `sz == 4' failed.
65776747 cannot include valgrind.h in c++ program
65876223 parsing B(3,10) gave NULL type => impossible happens
65975604 shmdt handling problem
66076416 Problems with gcc 3.4 snap 20040225
66175614 using -gstabs when building your programs the `impossible' happened
66275787 Patch for some CDROM ioctls CDORM_GET_MCN, CDROM_SEND_PACKET,
66375294 gcc 3.4 snapshot's libstdc++ have unsupported instructions.
664 (REP RET)
66573326 vg_symtab2.c:272 (addScopeRange): Assertion `range->size > 0' failed.
66672596 not recognizing __libc_malloc
66769489 Would like to attach ddd to running program
66872781 Cachegrind crashes with kde programs
66973055 Illegal operand at DXTCV11CompressBlockSSE2 (more SSE opcodes)
67073026 Descriptor leak check reports port numbers wrongly
67171705 README_MISSING_SYSCALL_OR_IOCTL out of date
67272643 Improve support for SSE/SSE2 instructions
67372484 valgrind leaves it's own signal mask in place when execing
67472650 Signal Handling always seems to restart system calls
67572006 The mmap system call turns all errors in ENOMEM
67671781 gdb attach is pretty useless
67771180 unhandled instruction bytes: 0xF 0xAE 0x85 0xE8
67869886 writes to zero page cause valgrind to assert on exit
67971791 crash when valgrinding gimp 1.3 (stabs reader problem)
68069783 unhandled syscall: 218
68169782 unhandled instruction bytes: 0x66 0xF 0x2B 0x80
68270385 valgrind fails if the soft file descriptor limit is less
683 than about 828
68469529 "rep; nop" should do a yield
68570827 programs with lots of shared libraries report "mmap failed"
686 for some of them when reading symbols
68771028 glibc's strnlen is optimised enough to confuse valgrind
688
689
690
691
jseward43230652003-12-14 00:14:54 +0000692Unstable (cvs head) release 2.1.0 (15 December 2003)
693~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
694For whatever it's worth, 2.1.0 actually seems pretty darn stable to me
695(Julian). It looks eminently usable, and given that it fixes some
696significant bugs, may well be worth using on a day-to-day basis.
6972.1.0 is known to build and pass regression tests on: SuSE 9, SuSE
6988.2, RedHat 8.
699
7002.1.0 most notably includes Jeremy Fitzhardinge's complete overhaul of
701handling of system calls and signals, and their interaction with
702threads. In general, the accuracy of the system call, thread and
703signal simulations is much improved. Specifically:
704
705- Blocking system calls behave exactly as they do when running
706 natively (not on valgrind). That is, if a syscall blocks only the
707 calling thread when running natively, than it behaves the same on
708 valgrind. No more mysterious hangs because V doesn't know that some
709 syscall or other, should block only the calling thread.
710
711- Interrupted syscalls should now give more faithful results.
712
713- Finally, signal contexts in signal handlers are supported. As a
714 result, konqueror on SuSE 9 no longer segfaults when notified of
715 file changes in directories it is watching.
716
717Other changes:
718
719- Robert Walsh's file descriptor leakage checks. When enabled,
720 Valgrind will print out a list of open file descriptors on
721 exit. Along with each file descriptor, Valgrind prints out a stack
722 backtrace of where the file was opened and any details relating to the
723 file descriptor such as the file name or socket details.
724 To use, give: --track-fds=yes
725
726- Implemented a few more SSE/SSE2 instructions.
727
728- Less crud on the stack when you do 'where' inside a GDB attach.
729
730- Fixed the following bugs:
731 68360: Valgrind does not compile against 2.6.0-testX kernels
732 68525: CVS head doesn't compile on C90 compilers
733 68566: pkgconfig support (wishlist)
734 68588: Assertion `sz == 4' failed in vg_to_ucode.c (disInstr)
735 69140: valgrind not able to explicitly specify a path to a binary.
736 69432: helgrind asserts encountering a MutexErr when there are
737 EraserErr suppressions
738
jseward0b12daf2003-12-14 14:35:28 +0000739- Increase the max size of the translation cache from 200k average bbs
740 to 300k average bbs. Programs on the size of OOo (680m17) are
741 thrashing the cache at the smaller size, creating large numbers of
742 retranslations and wasting significant time as a result.
743
jseward43230652003-12-14 00:14:54 +0000744
745
746Stable release 2.0.0 (5 Nov 2003)
747~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
748
7492.0.0 improves SSE/SSE2 support, fixes some minor bugs, and
750improves support for SuSE 9 and the Red Hat "Severn" beta.
751
752- Further improvements to SSE/SSE2 support. The entire test suite of
753 the GNU Scientific Library (gsl-1.4) compiled with Intel Icc 7.1
754 20030307Z '-g -O -xW' now works. I think this gives pretty good
755 coverage of SSE/SSE2 floating point instructions, or at least the
756 subset emitted by Icc.
757
758- Also added support for the following instructions:
759 MOVNTDQ UCOMISD UNPCKLPS UNPCKHPS SQRTSS
760 PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS).
761
762- CFI support for GDB version 6. Needed to enable newer GDBs
763 to figure out where they are when using --gdb-attach=yes.
764
765- Fix this:
766 mc_translate.c:1091 (memcheck_instrument): Assertion
767 `u_in->size == 4 || u_in->size == 16' failed.
768
769- Return an error rather than panicing when given a bad socketcall.
770
771- Fix checking of syscall rt_sigtimedwait().
772
773- Implement __NR_clock_gettime (syscall 265). Needed on Red Hat Severn.
774
775- Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
776 bytes long, when it could be shorter, which could cause false
777 positives.
778
779- Support use of select() for very large numbers of file descriptors.
780
781- Don't fail silently if the executable is statically linked, or is
782 setuid/setgid. Print an error message instead.
783
784- Support for old DWARF-1 format line number info.
785
786
787
788Snapshot 20031012 (12 October 2003)
789~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
790
791Three months worth of bug fixes, roughly. Most significant single
792change is improved SSE/SSE2 support, mostly thanks to Dirk Mueller.
793
79420031012 builds on Red Hat Fedora ("Severn") but doesn't really work
795(curiosly, mozilla runs OK, but a modest "ls -l" bombs). I hope to
796get a working version out soon. It may or may not work ok on the
797forthcoming SuSE 9; I hear positive noises about it but haven't been
798able to verify this myself (not until I get hold of a copy of 9).
799
800A detailed list of changes, in no particular order:
801
802- Describe --gen-suppressions in the FAQ.
803
804- Syscall __NR_waitpid supported.
805
806- Minor MMX bug fix.
807
808- -v prints program's argv[] at startup.
809
810- More glibc-2.3 suppressions.
811
812- Suppressions for stack underrun bug(s) in the c++ support library
813 distributed with Intel Icc 7.0.
814
815- Fix problems reading /proc/self/maps.
816
817- Fix a couple of messages that should have been suppressed by -q,
818 but weren't.
819
820- Make Addrcheck understand "Overlap" suppressions.
821
822- At startup, check if program is statically linked and bail out if so.
823
824- Cachegrind: Auto-detect Intel Pentium-M, also VIA Nehemiah
825
826- Memcheck/addrcheck: minor speed optimisations
827
828- Handle syscall __NR_brk more correctly than before.
829
830- Fixed incorrect allocate/free mismatch errors when using
831 operator new(unsigned, std::nothrow_t const&)
832 operator new[](unsigned, std::nothrow_t const&)
833
834- Support POSIX pthread spinlocks.
835
836- Fixups for clean compilation with gcc-3.3.1.
daywalker5d945de2003-09-26 00:32:53 +0000837
838- Implemented more opcodes:
839 - push %es
840 - push %ds
841 - pop %es
842 - pop %ds
843 - movntq
844 - sfence
845 - pshufw
846 - pavgb
847 - ucomiss
848 - enter
daywalkerb18d2532003-09-27 20:15:01 +0000849 - mov imm32, %esp
850 - all "in" and "out" opcodes
daywalker79aad842003-09-30 22:58:12 +0000851 - inc/dec %esp
jseward43230652003-12-14 00:14:54 +0000852 - A whole bunch of SSE/SSE2 instructions
daywalker5d945de2003-09-26 00:32:53 +0000853
jseward43230652003-12-14 00:14:54 +0000854- Memcheck: don't bomb on SSE/SSE2 code.
daywalker5d945de2003-09-26 00:32:53 +0000855
sewardj90238792003-05-05 00:23:42 +0000856
sewardj945f39f2003-07-25 21:11:40 +0000857Snapshot 20030725 (25 July 2003)
858~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
859
860Fixes some minor problems in 20030716.
861
862- Fix bugs in overlap checking for strcpy/memcpy etc.
863
864- Do overlap checking with Addrcheck as well as Memcheck.
865
866- Fix this:
867 Memcheck: the `impossible' happened:
868 get_error_name: unexpected type
869
870- Install headers needed to compile new skins.
871
sewardje3dd2e02003-07-27 08:04:48 +0000872- Remove leading spaces and colon in the LD_LIBRARY_PATH / LD_PRELOAD
sewardj945f39f2003-07-25 21:11:40 +0000873 passed to non-traced children.
874
sewardjb9eda952003-07-26 21:39:05 +0000875- Fix file descriptor leak in valgrind-listener.
876
sewardje3dd2e02003-07-27 08:04:48 +0000877- Fix longstanding bug in which the allocation point of a
878 block resized by realloc was not correctly set. This may
879 have caused confusing error messages.
sewardj945f39f2003-07-25 21:11:40 +0000880
881
sewardj626fd892003-07-16 20:10:26 +0000882Snapshot 20030716 (16 July 2003)
sewardj9d916ed2003-07-14 23:38:40 +0000883~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
884
sewardj626fd892003-07-16 20:10:26 +000088520030716 is a snapshot of our current CVS head (development) branch.
sewardj9d916ed2003-07-14 23:38:40 +0000886This is the branch which will become valgrind-2.0. It contains
887significant enhancements over the 1.9.X branch.
888
889Despite this being a snapshot of the CVS head, it is believed to be
890quite stable -- at least as stable as 1.9.6 or 1.0.4, if not more so
891-- and therefore suitable for widespread use. Please let us know asap
892if it causes problems for you.
893
894Two reasons for releasing a snapshot now are:
895
896- It's been a while since 1.9.6, and this snapshot fixes
897 various problems that 1.9.6 has with threaded programs
898 on glibc-2.3.X based systems.
899
900- So as to make available improvements in the 2.0 line.
901
sewardj626fd892003-07-16 20:10:26 +0000902Major changes in 20030716, as compared to 1.9.6:
sewardj9d916ed2003-07-14 23:38:40 +0000903
904- More fixes to threading support on glibc-2.3.1 and 2.3.2-based
905 systems (SuSE 8.2, Red Hat 9). If you have had problems
906 with inconsistent/illogical behaviour of errno, h_errno or the DNS
sewardj626fd892003-07-16 20:10:26 +0000907 resolver functions in threaded programs, 20030716 should improve
sewardj9d916ed2003-07-14 23:38:40 +0000908 matters. This snapshot seems stable enough to run OpenOffice.org
909 1.1rc on Red Hat 7.3, SuSE 8.2 and Red Hat 9, and that's a big
910 threaded app if ever I saw one.
911
912- Automatic generation of suppression records; you no longer
913 need to write them by hand. Use --gen-suppressions=yes.
914
sewardj21511802003-07-22 17:47:42 +0000915- strcpy/memcpy/etc check their arguments for overlaps, when
916 running with the Memcheck or Addrcheck skins.
917
918- malloc_usable_size() is now supported.
919
920- new client requests:
921 - VALGRIND_COUNT_ERRORS, VALGRIND_COUNT_LEAKS:
922 useful with regression testing
923 - VALGRIND_NON_SIMD_CALL[0123]: for running arbitrary functions
924 on real CPU (use with caution!)
925
sewardj9d916ed2003-07-14 23:38:40 +0000926- The GDB attach mechanism is more flexible. Allow the GDB to
927 be run to be specified by --gdb-path=/path/to/gdb, and specify
928 which file descriptor V will read its input from with
929 --input-fd=<number>.
930
sewardj21511802003-07-22 17:47:42 +0000931- Cachegrind gives more accurate results (wasn't tracking instructions in
932 malloc() and friends previously, is now).
933
sewardj9d916ed2003-07-14 23:38:40 +0000934- Complete support for the MMX instruction set.
935
936- Partial support for the SSE and SSE2 instruction sets. Work for this
937 is ongoing. About half the SSE/SSE2 instructions are done, so
938 some SSE based programs may work. Currently you need to specify
939 --skin=addrcheck. Basically not suitable for real use yet.
940
941- Significant speedups (10%-20%) for standard memory checking.
942
943- Fix assertion failure in pthread_once().
944
945- Fix this:
946 valgrind: vg_intercept.c:598 (vgAllRoadsLeadToRome_select):
947 Assertion `ms_end >= ms_now' failed.
948
949- Implement pthread_mutexattr_setpshared.
950
951- Understand Pentium 4 branch hints. Also implemented a couple more
952 obscure x86 instructions.
953
954- Lots of other minor bug fixes.
955
sewardj626fd892003-07-16 20:10:26 +0000956- We have a decent regression test system, for the first time.
957 This doesn't help you directly, but it does make it a lot easier
958 for us to track the quality of the system, especially across
959 multiple linux distributions.
960
961 You can run the regression tests with 'make regtest' after 'make
962 install' completes. On SuSE 8.2 and Red Hat 9 I get this:
963
964 == 84 tests, 0 stderr failures, 0 stdout failures ==
965
966 On Red Hat 8, I get this:
967
968 == 84 tests, 2 stderr failures, 1 stdout failure ==
969 corecheck/tests/res_search (stdout)
970 memcheck/tests/sigaltstack (stderr)
971
972 sigaltstack is probably harmless. res_search doesn't work
973 on R H 8 even running natively, so I'm not too worried.
974
975 On Red Hat 7.3, a glibc-2.2.5 system, I get these harmless failures:
976
977 == 84 tests, 2 stderr failures, 1 stdout failure ==
978 corecheck/tests/pth_atfork1 (stdout)
979 corecheck/tests/pth_atfork1 (stderr)
980 memcheck/tests/sigaltstack (stderr)
981
982 You need to run on a PII system, at least, since some tests
983 contain P6-specific instructions, and the test machine needs
984 access to the internet so that corecheck/tests/res_search
985 (a test that the DNS resolver works) can function.
986
sewardj9d916ed2003-07-14 23:38:40 +0000987As ever, thanks for the vast amount of feedback :) and bug reports :(
988We may not answer all messages, but we do at least look at all of
989them, and tend to fix the most frequently reported bugs.
990
991
992
sewardj37918822003-05-05 01:05:09 +0000993Version 1.9.6 (7 May 2003 or thereabouts)
994~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
995
996Major changes in 1.9.6:
997
998- Improved threading support for glibc >= 2.3.2 (SuSE 8.2,
999 RedHat 9, to name but two ...) It turned out that 1.9.5
1000 had problems with threading support on glibc >= 2.3.2,
1001 usually manifested by threaded programs deadlocking in system calls,
1002 or running unbelievably slowly. Hopefully these are fixed now. 1.9.6
1003 is the first valgrind which gives reasonable support for
1004 glibc-2.3.2. Also fixed a 2.3.2 problem with pthread_atfork().
1005
1006- Majorly expanded FAQ.txt. We've added workarounds for all
1007 common problems for which a workaround is known.
1008
1009Minor changes in 1.9.6:
1010
1011- Fix identification of the main thread's stack. Incorrect
1012 identification of it was causing some on-stack addresses to not get
1013 identified as such. This only affected the usefulness of some error
1014 messages; the correctness of the checks made is unchanged.
1015
1016- Support for kernels >= 2.5.68.
1017
1018- Dummy implementations of __libc_current_sigrtmin,
1019 __libc_current_sigrtmax and __libc_allocate_rtsig, hopefully
1020 good enough to keep alive programs which previously died for lack of
1021 them.
1022
1023- Fix bug in the VALGRIND_DISCARD_TRANSLATIONS client request.
1024
sewardj3d47b792003-05-05 22:15:35 +00001025- Fix bug in the DWARF2 debug line info loader, when instructions
1026 following each other have source lines far from each other
1027 (e.g. with inlined functions).
1028
sewardj37918822003-05-05 01:05:09 +00001029- Debug info reading: read symbols from both "symtab" and "dynsym"
1030 sections, rather than merely from the one that comes last in the
1031 file.
1032
1033- New syscall support: prctl(), creat(), lookup_dcookie().
1034
1035- When checking calls to accept(), recvfrom(), getsocketopt(),
1036 don't complain if buffer values are NULL.
1037
1038- Try and avoid assertion failures in
1039 mash_LD_PRELOAD_and_LD_LIBRARY_PATH.
1040
1041- Minor bug fixes in cg_annotate.
1042
1043
1044
sewardj90238792003-05-05 00:23:42 +00001045Version 1.9.5 (7 April 2003)
1046~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1047
1048It occurs to me that it would be helpful for valgrind users to record
1049in the source distribution the changes in each release. So I now
1050attempt to mend my errant ways :-) Changes in this and future releases
1051will be documented in the NEWS file in the source distribution.
1052
1053Major changes in 1.9.5:
1054
1055- (Critical bug fix): Fix a bug in the FPU simulation. This was
1056 causing some floating point conditional tests not to work right.
1057 Several people reported this. If you had floating point code which
1058 didn't work right on 1.9.1 to 1.9.4, it's worth trying 1.9.5.
1059
1060- Partial support for Red Hat 9. RH9 uses the new Native Posix
1061 Threads Library (NPTL), instead of the older LinuxThreads.
1062 This potentially causes problems with V which will take some
1063 time to correct. In the meantime we have partially worked around
1064 this, and so 1.9.5 works on RH9. Threaded programs still work,
1065 but they may deadlock, because some system calls (accept, read,
1066 write, etc) which should be nonblocking, in fact do block. This
1067 is a known bug which we are looking into.
1068
1069 If you can, your best bet (unfortunately) is to avoid using
1070 1.9.5 on a Red Hat 9 system, or on any NPTL-based distribution.
1071 If your glibc is 2.3.1 or earlier, you're almost certainly OK.
1072
1073Minor changes in 1.9.5:
1074
1075- Added some #errors to valgrind.h to ensure people don't include
1076 it accidentally in their sources. This is a change from 1.0.X
1077 which was never properly documented. The right thing to include
1078 is now memcheck.h. Some people reported problems and strange
1079 behaviour when (incorrectly) including valgrind.h in code with
1080 1.9.1 -- 1.9.4. This is no longer possible.
1081
1082- Add some __extension__ bits and pieces so that gcc configured
1083 for valgrind-checking compiles even with -Werror. If you
1084 don't understand this, ignore it. Of interest to gcc developers
1085 only.
1086
1087- Removed a pointless check which caused problems interworking
1088 with Clearcase. V would complain about shared objects whose
1089 names did not end ".so", and refuse to run. This is now fixed.
1090 In fact it was fixed in 1.9.4 but not documented.
1091
1092- Fixed a bug causing an assertion failure of "waiters == 1"
1093 somewhere in vg_scheduler.c, when running large threaded apps,
1094 notably MySQL.
1095
1096- Add support for the munlock system call (124).
1097
1098Some comments about future releases:
1099
11001.9.5 is, we hope, the most stable Valgrind so far. It pretty much
1101supersedes the 1.0.X branch. If you are a valgrind packager, please
1102consider making 1.9.5 available to your users. You can regard the
11031.0.X branch as obsolete: 1.9.5 is stable and vastly superior. There
1104are no plans at all for further releases of the 1.0.X branch.
1105
1106If you want a leading-edge valgrind, consider building the cvs head
1107(from SourceForge), or getting a snapshot of it. Current cool stuff
1108going in includes MMX support (done); SSE/SSE2 support (in progress),
1109a significant (10-20%) performance improvement (done), and the usual
1110large collection of minor changes. Hopefully we will be able to
1111improve our NPTL support, but no promises.
1112