blob: 585ee1613a7ce00ae57939b4e7421d63854ddc56 [file] [log] [blame]
njna3e96762006-03-27 12:23:44 +00001Release 3.2.0 (?? April 2006)
2~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.2.0 is a feature release with a number of significant improvements:
4Performance (especially of Memcheck) is much improved, XXX...
5In detail:
6
7- Performance is much improved: programs typically run 1.20--1.40 times
njn390aa542006-03-28 00:05:16 +00008 faster under Memcheck (much more for some unusual programs) with an
9 average of about 1.30 for the programs we tested it on. The improvements
10 for Nulgrind are similar. We haven't measured Cachegrind and Massif, they
11 should be also be faster, but with smaller improvements. We are
12 interested to hear what speed-ups users get.
njna3e96762006-03-27 12:23:44 +000013
14- Memcheck uses much less memory. The amount of shadow memory used -- which
15 accounts for a large percentage of all of Memcheck's memory overhead --
16 has been reduced by a factor of more than 4 on most programs. This means
17 you should be able to run programs that use more memory than before
18 without hitting problems. This memory size reduction also contributes to
19 the speed improvements.
20
21- Addrcheck has been removed. It has not worked since version 2.4.0, and
22 with the speed and memory improvements to Memcheck it is no longer worth
23 having around. If you liked using Addrcheck because it didn't give
24 undefined value errors, you can use the new Memcheck option
25 --undef-value-errors=no to obtain this behaviour.
26
27- Valgrind now works on PPC64/Linux. [XXX: more details...]
28
29- XXX: others...
30
njndbf7ca72006-03-31 11:57:59 +000031Other user-visible changes:
32
33- There are some changes to Memcheck's client requests. Some of them have
34 changed names:
35
36 MAKE_NOACCESS --> MAKE_MEM_NOACCESS
37 MAKE_WRITABLE --> MAKE_MEM_UNDEFINED
38 MAKE_READABLE --> MAKE_MEM_DEFINED
39
40 CHECK_WRITABLE --> CHECK_MEM_IS_ADDRESSABLE
41 CHECK_READABLE --> CHECK_MEM_IS_DEFINED
42 CHECK_DEFINED --> CHECK_VALUE_IS_DEFINED
43
44 The reason for the change is that the old names are subtly misleading.
45 The old names will still work, but they are deprecated and may be removed
46 in a future release.
47
48 We also added a new client request:
49
50 MAKE_MEM_DEFINED_IF_ADDRESSABLE(a, len)
51
52 which is like MAKE_MEM_DEFINED but only affects a byte if the byte is
53 already addressable.
54
njna3e96762006-03-27 12:23:44 +000055BUGS FIXED:
56
57XXX
58
59
sewardj50654672006-03-16 11:33:14 +000060Release 3.1.1 (15 March 2006)
61~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
623.1.1 fixes a bunch of bugs reported in 3.1.0. There is no new
63functionality. The fixed bugs are:
64
65(note: "n-i-bz" means "not in bugzilla" -- this bug does not have
66 a bugzilla entry).
67
68n-i-bz ppc32: fsub 3,3,3 in dispatcher doesn't clear NaNs
69n-i-bz ppc32: __NR_{set,get}priority
70117332 x86: missing line info with icc 8.1
71117366 amd64: 0xDD 0x7C fnstsw
72118274 == 117366
73117367 amd64: 0xD9 0xF4 fxtract
74117369 amd64: __NR_getpriority (140)
75117419 ppc32: lfsu f5, -4(r11)
76117419 ppc32: fsqrt
77117936 more stabs problems (segfaults while reading debug info)
78119914 == 117936
79120345 == 117936
80118239 amd64: 0xF 0xAE 0x3F (clflush)
81118939 vm86old system call
82n-i-bz memcheck/tests/mempool reads freed memory
83n-i-bz AshleyP's custom-allocator assertion
84n-i-bz Dirk strict-aliasing stuff
85n-i-bz More space for debugger cmd line (Dan Thaler)
86n-i-bz Clarified leak checker output message
87n-i-bz AshleyP's --gen-suppressions output fix
88n-i-bz cg_annotate's --sort option broken
89n-i-bz OSet 64-bit fastcmp bug
90n-i-bz VG_(getgroups) fix (Shinichi Noda)
91n-i-bz ppc32: allocate from callee-saved FP/VMX regs
92n-i-bz misaligned path word-size bug in mc_main.c
93119297 Incorrect error message for sse code
94120410 x86: prefetchw (0xF 0xD 0x48 0x4)
95120728 TIOCSERGETLSR, TIOCGICOUNT, HDIO_GET_DMA ioctls
96120658 Build fixes for gcc 2.96
97120734 x86: Support for changing EIP in signal handler
98n-i-bz memcheck/tests/zeropage de-looping fix
99n-i-bz x86: fxtract doesn't work reliably
100121662 x86: lock xadd (0xF0 0xF 0xC0 0x2)
101121893 calloc does not always return zeroed memory
102121901 no support for syscall tkill
103n-i-bz Suppression update for Debian unstable
104122067 amd64: fcmovnu (0xDB 0xD9)
105n-i-bz ppc32: broken signal handling in cpu feature detection
106n-i-bz ppc32: rounding mode problems (improved, partial fix only)
107119482 ppc32: mtfsb1
108n-i-bz ppc32: mtocrf/mfocrf
109
110(3.1.1: 15 March 2006, vex r1597, valgrind r5771).
111
jseward43230652003-12-14 00:14:54 +0000112
sewardj4bbe9d72005-11-16 18:39:25 +0000113Release 3.1.0 (25 November 2005)
njnf63170c2005-11-12 19:09:51 +0000114~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardj4bbe9d72005-11-16 18:39:25 +00001153.1.0 is a feature release with a number of significant improvements:
116AMD64 support is much improved, PPC32 support is good enough to be
117usable, and the handling of memory management and address space is
118much more robust. In detail:
njnf63170c2005-11-12 19:09:51 +0000119
sewardj4bbe9d72005-11-16 18:39:25 +0000120- AMD64 support is much improved. The 64-bit vs. 32-bit issues in
121 3.0.X have been resolved, and it should "just work" now in all
122 cases. On AMD64 machines both 64-bit and 32-bit versions of
123 Valgrind are built. The right version will be invoked
124 automatically, even when using --trace-children and mixing execution
125 between 64-bit and 32-bit executables. Also, many more instructions
126 are supported.
njnf63170c2005-11-12 19:09:51 +0000127
sewardj4bbe9d72005-11-16 18:39:25 +0000128- PPC32 support is now good enough to be usable. It should work with
129 all tools, but please let us know if you have problems. Three
130 classes of CPUs are supported: integer only (no FP, no Altivec),
131 which covers embedded PPC uses, integer and FP but no Altivec
132 (G3-ish), and CPUs capable of Altivec too (G4, G5).
njnf63170c2005-11-12 19:09:51 +0000133
sewardj4bbe9d72005-11-16 18:39:25 +0000134- Valgrind's address space management has been overhauled. As a
135 result, Valgrind should be much more robust with programs that use
136 large amounts of memory. There should be many fewer "memory
137 exhausted" messages, and debug symbols should be read correctly on
138 large (eg. 300MB+) executables. On 32-bit machines the full address
139 space available to user programs (usually 3GB or 4GB) can be fully
140 utilised. On 64-bit machines up to 32GB of space is usable; when
141 using Memcheck that means your program can use up to about 14GB.
njnf63170c2005-11-12 19:09:51 +0000142
143 A side effect of this change is that Valgrind is no longer protected
144 against wild writes by the client. This feature was nice but relied
145 on the x86 segment registers and so wasn't portable.
146
147- Most users should not notice, but as part of the address space
sewardj4bbe9d72005-11-16 18:39:25 +0000148 manager change, the way Valgrind is built has been changed. Each
149 tool is now built as a statically linked stand-alone executable,
150 rather than as a shared object that is dynamically linked with the
151 core. The "valgrind" program invokes the appropriate tool depending
152 on the --tool option. This slightly increases the amount of disk
153 space used by Valgrind, but it greatly simplified many things and
154 removed Valgrind's dependence on glibc.
njnf63170c2005-11-12 19:09:51 +0000155
njn336c89d2005-11-20 18:14:04 +0000156Please note that Addrcheck and Helgrind are still not working. Work
157is underway to reinstate them (or equivalents). We apologise for the
158inconvenience.
159
njnf63170c2005-11-12 19:09:51 +0000160Other user-visible changes:
161
162- The --weird-hacks option has been renamed --sim-hints.
163
164- The --time-stamp option no longer gives an absolute date and time.
165 It now prints the time elapsed since the program began.
166
sewardj4bbe9d72005-11-16 18:39:25 +0000167- It should build with gcc-2.96.
168
njn7cce5b82005-11-16 20:12:22 +0000169- Valgrind can now run itself (see README_DEVELOPERS for how).
sewardj47058612005-11-16 19:13:13 +0000170 This is not much use to you, but it means the developers can now
171 profile Valgrind using Cachegrind. As a result a couple of
172 performance bad cases have been fixed.
173
sewardj6a5a69c2005-11-17 00:51:36 +0000174- The XML output format has changed slightly. See
175 docs/internals/xml-output.txt.
176
njn14c9add2005-11-18 17:36:01 +0000177- Core dumping has been reinstated (it was disabled in 3.0.0 and 3.0.1).
178 If your program crashes while running under Valgrind, a core file with
179 the name "vgcore.<pid>" will be created (if your settings allow core
180 file creation). Note that the floating point information is not all
181 there. If Valgrind itself crashes, the OS will create a normal core
182 file.
183
njnf63170c2005-11-12 19:09:51 +0000184The following are some user-visible changes that occurred in earlier
185versions that may not have been announced, or were announced but not
njn7cce5b82005-11-16 20:12:22 +0000186widely noticed. So we're mentioning them now.
njnf63170c2005-11-12 19:09:51 +0000187
188- The --tool flag is optional once again; if you omit it, Memcheck
189 is run by default.
190
191- The --num-callers flag now has a default value of 12. It was
192 previously 4.
193
njn7cce5b82005-11-16 20:12:22 +0000194- The --xml=yes flag causes Valgrind's output to be produced in XML
195 format. This is designed to make it easy for other programs to
196 consume Valgrind's output. The format is described in the file
njnf63170c2005-11-12 19:09:51 +0000197 docs/internals/xml-format.txt.
198
njn1f503992005-11-13 16:41:15 +0000199- The --gen-suppressions flag supports an "all" value that causes every
200 suppression to be printed without asking.
201
njnee88d282005-11-20 17:19:28 +0000202- The --log-file option no longer puts "pid" in the filename, eg. the
203 old name "foo.pid12345" is now "foo.12345".
204
njnc66077e2005-11-20 18:02:15 +0000205- There are several graphical front-ends for Valgrind, such as Valkyrie,
206 Alleyoop and Valgui. See http://www.valgrind.org/downloads/guis.html
207 for a list.
208
njnf63170c2005-11-12 19:09:51 +0000209BUGS FIXED:
210
sewardj4bbe9d72005-11-16 18:39:25 +0000211109861 amd64 hangs at startup
212110301 ditto
213111554 valgrind crashes with Cannot allocate memory
214111809 Memcheck tool doesn't start java
215111901 cross-platform run of cachegrind fails on opteron
216113468 (vgPlain_mprotect_range): Assertion 'r != -1' failed.
217 92071 Reading debugging info uses too much memory
218109744 memcheck loses track of mmap from direct ld-linux.so.2
219110183 tail of page with _end
220 82301 FV memory layout too rigid
221 98278 Infinite recursion possible when allocating memory
222108994 Valgrind runs out of memory due to 133x overhead
223115643 valgrind cannot allocate memory
224105974 vg_hashtable.c static hash table
225109323 ppc32: dispatch.S uses Altivec insn, which doesn't work on POWER.
226109345 ptrace_setregs not yet implemented for ppc
227110831 Would like to be able to run against both 32 and 64 bit
228 binaries on AMD64
229110829 == 110831
230111781 compile of valgrind-3.0.0 fails on my linux (gcc 2.X prob)
231112670 Cachegrind: cg_main.c:486 (handleOneStatement ...
232112941 vex x86: 0xD9 0xF4 (fxtract)
233110201 == 112941
234113015 vex amd64->IR: 0xE3 0x14 0x48 0x83 (jrcxz)
235113126 Crash with binaries built with -gstabs+/-ggdb
236104065 == 113126
237115741 == 113126
238113403 Partial SSE3 support on x86
239113541 vex: Grp5(x86) (alt encoding inc/dec) case 1
240113642 valgrind crashes when trying to read debug information
241113810 vex x86->IR: 66 0F F6 (66 + PSADBW == SSE PSADBW)
242113796 read() and write() do not work if buffer is in shared memory
243113851 vex x86->IR: (pmaddwd): 0x66 0xF 0xF5 0xC7
244114366 vex amd64 cannnot handle __asm__( "fninit" )
245114412 vex amd64->IR: 0xF 0xAD 0xC2 0xD3 (128-bit shift, shrdq?)
246114455 vex amd64->IR: 0xF 0xAC 0xD0 0x1 (also shrdq)
247115590: amd64->IR: 0x67 0xE3 0x9 0xEB (address size override)
248115953 valgrind svn r5042 does not build with parallel make (-j3)
249116057 maximum instruction size - VG_MAX_INSTR_SZB too small?
250116483 shmat failes with invalid argument
251102202 valgrind crashes when realloc'ing until out of memory
252109487 == 102202
253110536 == 102202
254112687 == 102202
255111724 vex amd64->IR: 0x41 0xF 0xAB (more BT{,S,R,C} fun n games)
256111748 vex amd64->IR: 0xDD 0xE2 (fucom)
257111785 make fails if CC contains spaces
258111829 vex x86->IR: sbb AL, Ib
259111851 vex x86->IR: 0x9F 0x89 (lahf/sahf)
260112031 iopl on AMD64 and README_MISSING_SYSCALL_OR_IOCTL update
261112152 code generation for Xin_MFence on x86 with SSE0 subarch
262112167 == 112152
263112789 == 112152
264112199 naked ar tool is used in vex makefile
265112501 vex x86->IR: movq (0xF 0x7F 0xC1 0xF) (mmx MOVQ)
266113583 == 112501
267112538 memalign crash
268113190 Broken links in docs/html/
269113230 Valgrind sys_pipe on x86-64 wrongly thinks file descriptors
270 should be 64bit
271113996 vex amd64->IR: fucomp (0xDD 0xE9)
272114196 vex x86->IR: out %eax,(%dx) (0xEF 0xC9 0xC3 0x90)
273114289 Memcheck fails to intercept malloc when used in an uclibc environment
274114756 mbind syscall support
275114757 Valgrind dies with assertion: Assertion 'noLargerThan > 0' failed
276114563 stack tracking module not informed when valgrind switches threads
277114564 clone() and stacks
278114565 == 114564
279115496 glibc crashes trying to use sysinfo page
280116200 enable fsetxattr, fgetxattr, and fremovexattr for amd64
njnf63170c2005-11-12 19:09:51 +0000281
sewardjae17e7e2005-11-20 19:45:30 +0000282(3.1.0RC1: 20 November 2005, vex r1466, valgrind r5224).
sewardjfa462022005-11-26 13:38:58 +0000283(3.1.0: 26 November 2005, vex r1471, valgrind r5235).
sewardjae17e7e2005-11-20 19:45:30 +0000284
njnf63170c2005-11-12 19:09:51 +0000285
sewardjcd62fe72005-08-29 13:24:51 +0000286Release 3.0.1 (29 August 2005)
287~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2883.0.1 fixes a bunch of bugs reported in 3.0.0. There is no new
289functionality. Some of the fixed bugs are critical, so if you
sewardjfa233892005-08-30 12:35:36 +0000290use/distribute 3.0.0, an upgrade to 3.0.1 is recommended. The fixed
sewardjcd62fe72005-08-29 13:24:51 +0000291bugs are:
292
293(note: "n-i-bz" means "not in bugzilla" -- this bug does not have
294 a bugzilla entry).
295
296109313 (== 110505) x86 cmpxchg8b
297n-i-bz x86: track but ignore changes to %eflags.AC (alignment check)
298110102 dis_op2_E_G(amd64)
299110202 x86 sys_waitpid(#286)
300110203 clock_getres(,0)
301110208 execve fail wrong retval
302110274 SSE1 now mandatory for x86
303110388 amd64 0xDD 0xD1
304110464 amd64 0xDC 0x1D FCOMP
305110478 amd64 0xF 0xD PREFETCH
306n-i-bz XML <unique> printing wrong
307n-i-bz Dirk r4359 (amd64 syscalls from trunk)
308110591 amd64 and x86: rdtsc not implemented properly
309n-i-bz Nick r4384 (stub implementations of Addrcheck and Helgrind)
310110652 AMD64 valgrind crashes on cwtd instruction
311110653 AMD64 valgrind crashes on sarb $0x4,foo(%rip) instruction
312110656 PATH=/usr/bin::/bin valgrind foobar stats ./fooba
313110657 Small test fixes
314110671 vex x86->IR: unhandled instruction bytes: 0xF3 0xC3 (rep ret)
315n-i-bz Nick (Cachegrind should not assert when it encounters a client
316 request.)
317110685 amd64->IR: unhandled instruction bytes: 0xE1 0x56 (loope Jb)
318110830 configuring with --host fails to build 32 bit on 64 bit target
319110875 Assertion when execve fails
320n-i-bz Updates to Memcheck manual
321n-i-bz Fixed broken malloc_usable_size()
322110898 opteron instructions missing: btq btsq btrq bsfq
323110954 x86->IR: unhandled instruction bytes: 0xE2 0xF6 (loop Jb)
324n-i-bz Make suppressions work for "???" lines in stacktraces.
325111006 bogus warnings from linuxthreads
326111092 x86: dis_Grp2(Reg): unhandled case(x86)
327111231 sctp_getladdrs() and sctp_getpaddrs() returns uninitialized
328 memory
329111102 (comment #4) Fixed 64-bit unclean "silly arg" message
330n-i-bz vex x86->IR: unhandled instruction bytes: 0x14 0x0
331n-i-bz minor umount/fcntl wrapper fixes
332111090 Internal Error running Massif
333101204 noisy warning
334111513 Illegal opcode for SSE instruction (x86 movups)
335111555 VEX/Makefile: CC is set to gcc
sewardjfa233892005-08-30 12:35:36 +0000336n-i-bz Fix XML bugs in FAQ
sewardjcd62fe72005-08-29 13:24:51 +0000337
sewardjfa233892005-08-30 12:35:36 +0000338(3.0.1: 29 August 05,
339 vex/branches/VEX_3_0_BRANCH r1367,
340 valgrind/branches/VALGRIND_3_0_BRANCH r4574).
sewardj820c7722005-08-29 13:44:43 +0000341
342
sewardjcd62fe72005-08-29 13:24:51 +0000343
sewardjec39f332005-08-02 15:28:07 +0000344Release 3.0.0 (3 August 2005)
345~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sewardjf9929e62005-08-02 21:05:58 +00003463.0.0 is a major overhaul of Valgrind. The most significant user
347visible change is that Valgrind now supports architectures other than
348x86. The new architectures it supports are AMD64 and PPC32, and the
349infrastructure is present for other architectures to be added later.
njn4a9f6f42005-07-19 23:46:08 +0000350
sewardjf9929e62005-08-02 21:05:58 +0000351AMD64 support works well, but has some shortcomings:
njn4a9f6f42005-07-19 23:46:08 +0000352
njn7b1a6a42005-07-20 04:20:44 +0000353- It generally won't be as solid as the x86 version. For example,
354 support for more obscure instructions and system calls may be missing.
355 We will fix these as they arise.
njn4a9f6f42005-07-19 23:46:08 +0000356
sewardjc371bd02005-07-27 09:55:24 +0000357- Address space may be limited; see the point about
njn7b1a6a42005-07-20 04:20:44 +0000358 position-independent executables below.
njn4a9f6f42005-07-19 23:46:08 +0000359
njn7b1a6a42005-07-20 04:20:44 +0000360- If Valgrind is built on an AMD64 machine, it will only run 64-bit
361 executables. If you want to run 32-bit x86 executables under Valgrind
362 on an AMD64, you will need to build Valgrind on an x86 machine and
363 copy it to the AMD64 machine. And it probably won't work if you do
364 something tricky like exec'ing a 32-bit program from a 64-bit program
365 while using --trace-children=yes. We hope to improve this situation
366 in the future.
367
368The PPC32 support is very basic. It may not work reliably even for
sewardjc371bd02005-07-27 09:55:24 +0000369small programs, but it's a start. Many thanks to Paul Mackerras for
370his great work that enabled this support. We are working to make
371PPC32 usable as soon as possible.
njn4a9f6f42005-07-19 23:46:08 +0000372
373Other user-visible changes:
374
sewardjec39f332005-08-02 15:28:07 +0000375- Valgrind is no longer built by default as a position-independent
376 executable (PIE), as this caused too many problems.
njn4a9f6f42005-07-19 23:46:08 +0000377
378 Without PIE enabled, AMD64 programs will only be able to access 2GB of
379 address space. We will fix this eventually, but not for the moment.
380
381 Use --enable-pie at configure-time to turn this on.
382
383- Support for programs that use stack-switching has been improved. Use
384 the --max-stackframe flag for simple cases, and the
385 VALGRIND_STACK_REGISTER, VALGRIND_STACK_DEREGISTER and
386 VALGRIND_STACK_CHANGE client requests for trickier cases.
387
njn7b1a6a42005-07-20 04:20:44 +0000388- Support for programs that use self-modifying code has been improved,
389 in particular programs that put temporary code fragments on the stack.
390 This helps for C programs compiled with GCC that use nested functions,
njne7723322005-07-24 17:19:09 +0000391 and also Ada programs. This is controlled with the --smc-check
njn7b1a6a42005-07-20 04:20:44 +0000392 flag, although the default setting should work in most cases.
njn4a9f6f42005-07-19 23:46:08 +0000393
njn7b1a6a42005-07-20 04:20:44 +0000394- Output can now be printed in XML format. This should make it easier
sewardjc371bd02005-07-27 09:55:24 +0000395 for tools such as GUI front-ends and automated error-processing
396 schemes to use Valgrind output as input. The --xml flag controls this.
397 As part of this change, ELF directory information is read from executables,
398 so absolute source file paths are available if needed.
njn4a9f6f42005-07-19 23:46:08 +0000399
400- Programs that allocate many heap blocks may run faster, due to
401 improvements in certain data structures.
402
njn7b1a6a42005-07-20 04:20:44 +0000403- Addrcheck is currently not working. We hope to get it working again
404 soon. Helgrind is still not working, as was the case for the 2.4.0
405 release.
njn4a9f6f42005-07-19 23:46:08 +0000406
sewardjc371bd02005-07-27 09:55:24 +0000407- The JITter has been completely rewritten, and is now in a separate
408 library, called Vex. This enabled a lot of the user-visible changes,
409 such as new architecture support. The new JIT unfortunately translates
410 more slowly than the old one, so programs may take longer to start.
411 We believe the code quality is produces is about the same, so once
412 started, programs should run at about the same speed. Feedback about
413 this would be useful.
414
415 On the plus side, Vex and hence Memcheck tracks value flow properly
416 through floating point and vector registers, something the 2.X line
417 could not do. That means that Memcheck is much more likely to be
418 usably accurate on vectorised code.
419
sewardjec39f332005-08-02 15:28:07 +0000420- There is a subtle change to the way exiting of threaded programs
sewardjc371bd02005-07-27 09:55:24 +0000421 is handled. In 3.0, Valgrind's final diagnostic output (leak check,
422 etc) is not printed until the last thread exits. If the last thread
423 to exit was not the original thread which started the program, any
424 other process wait()-ing on this one to exit may conclude it has
425 finished before the diagnostic output is printed. This may not be
426 what you expect. 2.X had a different scheme which avoided this
427 problem, but caused deadlocks under obscure circumstances, so we
428 are trying something different for 3.0.
429
430- Small changes in control log file naming which make it easier to
sewardjec39f332005-08-02 15:28:07 +0000431 use valgrind for debugging MPI-based programs. The relevant
432 new flags are --log-file-exactly= and --log-file-qualifier=.
sewardjc371bd02005-07-27 09:55:24 +0000433
434- As part of adding AMD64 support, DWARF2 CFI-based stack unwinding
435 support was added. In principle this means Valgrind can produce
436 meaningful backtraces on x86 code compiled with -fomit-frame-pointer
tom81868f02005-07-27 10:33:08 +0000437 providing you also compile your code with -fasynchronous-unwind-tables.
sewardjc371bd02005-07-27 09:55:24 +0000438
sewardjec39f332005-08-02 15:28:07 +0000439- The documentation build system has been completely redone.
440 The documentation masters are now in XML format, and from that
441 HTML, PostScript and PDF documentation is generated. As a result
442 the manual is now available in book form. Note that the
443 documentation in the source tarballs is pre-built, so you don't need
444 any XML processing tools to build Valgrind from a tarball.
njn4a9f6f42005-07-19 23:46:08 +0000445
446Changes that are not user-visible:
447
sewardjc371bd02005-07-27 09:55:24 +0000448- The code has been massively overhauled in order to modularise it.
449 As a result we hope it is easier to navigate and understand.
njn4a9f6f42005-07-19 23:46:08 +0000450
451- Lots of code has been rewritten.
452
sewardjf9929e62005-08-02 21:05:58 +0000453BUGS FIXED:
njn4a9f6f42005-07-19 23:46:08 +0000454
sewardj79bd9b62005-08-03 16:40:10 +0000455110046 sz == 4 assertion failed
456109810 vex amd64->IR: unhandled instruction bytes: 0xA3 0x4C 0x70 0xD7
sewardjf9929e62005-08-02 21:05:58 +0000457109802 Add a plausible_stack_size command-line parameter ?
458109783 unhandled ioctl TIOCMGET (running hw detection tool discover)
459109780 unhandled ioctl BLKSSZGET (running fdisk -l /dev/hda)
460109718 vex x86->IR: unhandled instruction: ffreep
461109429 AMD64 unhandled syscall: 127 (sigpending)
462109401 false positive uninit in strchr from ld-linux.so.2
463109385 "stabs" parse failure
464109378 amd64: unhandled instruction REP NOP
465109376 amd64: unhandled instruction LOOP Jb
466109363 AMD64 unhandled instruction bytes
467109362 AMD64 unhandled syscall: 24 (sched_yield)
468109358 fork() won't work with valgrind-3.0 SVN
469109332 amd64 unhandled instruction: ADC Ev, Gv
470109314 Bogus memcheck report on amd64
471108883 Crash; vg_memory.c:905 (vgPlain_init_shadow_range):
472 Assertion `vgPlain_defined_init_shadow_page()' failed.
473108349 mincore syscall parameter checked incorrectly
474108059 build infrastructure: small update
475107524 epoll_ctl event parameter checked on EPOLL_CTL_DEL
476107123 Vex dies with unhandled instructions: 0xD9 0x31 0xF 0xAE
477106841 auxmap & openGL problems
478106713 SDL_Init causes valgrind to exit
479106352 setcontext and makecontext not handled correctly
480106293 addresses beyond initial client stack allocation
481 not checked in VALGRIND_DO_LEAK_CHECK
482106283 PIE client programs are loaded at address 0
483105831 Assertion `vgPlain_defined_init_shadow_page()' failed.
484105039 long run-times probably due to memory manager
485104797 valgrind needs to be aware of BLKGETSIZE64
486103594 unhandled instruction: FICOM
487103320 Valgrind 2.4.0 fails to compile with gcc 3.4.3 and -O0
488103168 potentially memory leak in coregrind/ume.c
489102039 bad permissions for mapped region at address 0xB7C73680
490101881 weird assertion problem
491101543 Support fadvise64 syscalls
49275247 x86_64/amd64 support (the biggest "bug" we have ever fixed)
njn4a9f6f42005-07-19 23:46:08 +0000493
sewardj9a919512005-08-03 17:01:51 +0000494(3.0RC1: 27 July 05, vex r1303, valgrind r4283).
sewardj1346e132005-08-03 20:42:06 +0000495(3.0.0: 3 August 05, vex r1313, valgrind r4316).
sewardjbfa2b992005-07-27 17:49:17 +0000496
497
498
njn8c927302005-03-12 16:45:01 +0000499Stable release 2.4.0 (March 2005) -- CHANGES RELATIVE TO 2.2.0
njn1aa5ae42005-03-26 16:04:27 +0000500~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5012.4.0 brings many significant changes and bug fixes. The most
502significant user-visible change is that we no longer supply our own
503pthread implementation. Instead, Valgrind is finally capable of
504running the native thread library, either LinuxThreads or NPTL.
njn8c927302005-03-12 16:45:01 +0000505
njn1aa5ae42005-03-26 16:04:27 +0000506This means our libpthread has gone, along with the bugs associated
507with it. Valgrind now supports the kernel's threading syscalls, and
508lets you use your standard system libpthread. As a result:
njn8c927302005-03-12 16:45:01 +0000509
njn1aa5ae42005-03-26 16:04:27 +0000510* There are many fewer system dependencies and strange library-related
511 bugs. There is a small performance improvement, and a large
512 stability improvement.
njn8c927302005-03-12 16:45:01 +0000513
njn1aa5ae42005-03-26 16:04:27 +0000514* On the downside, Valgrind can no longer report misuses of the POSIX
515 PThreads API. It also means that Helgrind currently does not work.
516 We hope to fix these problems in a future release.
njn8c927302005-03-12 16:45:01 +0000517
njn1aa5ae42005-03-26 16:04:27 +0000518Note that running the native thread libraries does not mean Valgrind
519is able to provide genuine concurrent execution on SMPs. We still
520impose the restriction that only one thread is running at any given
521time.
njn8c927302005-03-12 16:45:01 +0000522
njn1aa5ae42005-03-26 16:04:27 +0000523There are many other significant changes too:
njn8c927302005-03-12 16:45:01 +0000524
njn1aa5ae42005-03-26 16:04:27 +0000525* Memcheck is (once again) the default tool.
njn8c927302005-03-12 16:45:01 +0000526
njn1aa5ae42005-03-26 16:04:27 +0000527* The default stack backtrace is now 12 call frames, rather than 4.
njn8c927302005-03-12 16:45:01 +0000528
njn1aa5ae42005-03-26 16:04:27 +0000529* Suppressions can have up to 25 call frame matches, rather than 4.
njn8c927302005-03-12 16:45:01 +0000530
njn1aa5ae42005-03-26 16:04:27 +0000531* Memcheck and Addrcheck use less memory. Under some circumstances,
532 they no longer allocate shadow memory if there are large regions of
533 memory with the same A/V states - such as an mmaped file.
njn8c927302005-03-12 16:45:01 +0000534
njn1aa5ae42005-03-26 16:04:27 +0000535* The memory-leak detector in Memcheck and Addrcheck has been
536 improved. It now reports more types of memory leak, including
537 leaked cycles. When reporting leaked memory, it can distinguish
538 between directly leaked memory (memory with no references), and
539 indirectly leaked memory (memory only referred to by other leaked
540 memory).
njn8c927302005-03-12 16:45:01 +0000541
njn1aa5ae42005-03-26 16:04:27 +0000542* Memcheck's confusion over the effect of mprotect() has been fixed:
543 previously mprotect could erroneously mark undefined data as
544 defined.
njn8c927302005-03-12 16:45:01 +0000545
njn1aa5ae42005-03-26 16:04:27 +0000546* Signal handling is much improved and should be very close to what
547 you get when running natively.
548
549 One result of this is that Valgrind observes changes to sigcontexts
550 passed to signal handlers. Such modifications will take effect when
551 the signal returns. You will need to run with --single-step=yes to
552 make this useful.
njn8c927302005-03-12 16:45:01 +0000553
554* Valgrind is built in Position Independent Executable (PIE) format if
njn1aa5ae42005-03-26 16:04:27 +0000555 your toolchain supports it. This allows it to take advantage of all
njn8c927302005-03-12 16:45:01 +0000556 the available address space on systems with 4Gbyte user address
557 spaces.
558
559* Valgrind can now run itself (requires PIE support).
560
njn1aa5ae42005-03-26 16:04:27 +0000561* Syscall arguments are now checked for validity. Previously all
562 memory used by syscalls was checked, but now the actual values
563 passed are also checked.
njn8c927302005-03-12 16:45:01 +0000564
njn1aa5ae42005-03-26 16:04:27 +0000565* Syscall wrappers are more robust against bad addresses being passed
566 to syscalls: they will fail with EFAULT rather than killing Valgrind
567 with SIGSEGV.
njn8c927302005-03-12 16:45:01 +0000568
njn1aa5ae42005-03-26 16:04:27 +0000569* Because clone() is directly supported, some non-pthread uses of it
570 will work. Partial sharing (where some resources are shared, and
571 some are not) is not supported.
572
573* open() and readlink() on /proc/self/exe are supported.
574
575BUGS FIXED:
576
57788520 pipe+fork+dup2 kills the main program
57888604 Valgrind Aborts when using $VALGRIND_OPTS and user progra...
57988614 valgrind: vg_libpthread.c:2323 (read): Assertion `read_pt...
58088703 Stabs parser fails to handle ";"
58188886 ioctl wrappers for TIOCMBIS and TIOCMBIC
58289032 valgrind pthread_cond_timedwait fails
58389106 the 'impossible' happened
58489139 Missing sched_setaffinity & sched_getaffinity
58589198 valgrind lacks support for SIOCSPGRP and SIOCGPGRP
58689263 Missing ioctl translations for scsi-generic and CD playing
58789440 tests/deadlock.c line endings
58889481 `impossible' happened: EXEC FAILED
58989663 valgrind 2.2.0 crash on Redhat 7.2
59089792 Report pthread_mutex_lock() deadlocks instead of returnin...
59190111 statvfs64 gives invalid error/warning
59290128 crash+memory fault with stabs generated by gnat for a run...
59390778 VALGRIND_CHECK_DEFINED() not as documented in memcheck.h
59490834 cachegrind crashes at end of program without reporting re...
59591028 valgrind: vg_memory.c:229 (vgPlain_unmap_range): Assertio...
59691162 valgrind crash while debugging drivel 1.2.1
59791199 Unimplemented function
59891325 Signal routing does not propagate the siginfo structure
59991599 Assertion `cv == ((void *)0)'
60091604 rw_lookup clears orig and sends the NULL value to rw_new
60191821 Small problems building valgrind with $top_builddir ne $t...
60291844 signal 11 (SIGSEGV) at get_tcb (libpthread.c:86) in corec...
60392264 UNIMPLEMENTED FUNCTION: pthread_condattr_setpshared
60492331 per-target flags necessitate AM_PROG_CC_C_O
60592420 valgrind doesn't compile with linux 2.6.8.1/9
60692513 Valgrind 2.2.0 generates some warning messages
60792528 vg_symtab2.c:170 (addLoc): Assertion `loc->size > 0' failed.
60893096 unhandled ioctl 0x4B3A and 0x5601
60993117 Tool and core interface versions do not match
61093128 Can't run valgrind --tool=memcheck because of unimplement...
61193174 Valgrind can crash if passed bad args to certain syscalls
61293309 Stack frame in new thread is badly aligned
61393328 Wrong types used with sys_sigprocmask()
61493763 /usr/include/asm/msr.h is missing
61593776 valgrind: vg_memory.c:508 (vgPlain_find_map_space): Asser...
61693810 fcntl() argument checking a bit too strict
61794378 Assertion `tst->sigqueue_head != tst->sigqueue_tail' failed.
61894429 valgrind 2.2.0 segfault with mmap64 in glibc 2.3.3
61994645 Impossible happened: PINSRW mem
62094953 valgrind: the `impossible' happened: SIGSEGV
62195667 Valgrind does not work with any KDE app
62296243 Assertion 'res==0' failed
62396252 stage2 loader of valgrind fails to allocate memory
62496520 All programs crashing at _dl_start (in /lib/ld-2.3.3.so) ...
62596660 ioctl CDROMREADTOCENTRY causes bogus warnings
62696747 After looping in a segfault handler, the impossible happens
62796923 Zero sized arrays crash valgrind trace back with SIGFPE
62896948 valgrind stops with assertion failure regarding mmap2
62996966 valgrind fails when application opens more than 16 sockets
63097398 valgrind: vg_libpthread.c:2667 Assertion failed
63197407 valgrind: vg_mylibc.c:1226 (vgPlain_safe_fd): Assertion `...
63297427 "Warning: invalid file descriptor -1 in syscall close()" ...
63397785 missing backtrace
63497792 build in obj dir fails - autoconf / makefile cleanup
63597880 pthread_mutex_lock fails from shared library (special ker...
63697975 program aborts without ang VG messages
63798129 Failed when open and close file 230000 times using stdio
63898175 Crashes when using valgrind-2.2.0 with a program using al...
63998288 Massif broken
64098303 UNIMPLEMENTED FUNCTION pthread_condattr_setpshared
64198630 failed--compilation missing warnings.pm, fails to make he...
64298756 Cannot valgrind signal-heavy kdrive X server
64398966 valgrinding the JVM fails with a sanity check assertion
64499035 Valgrind crashes while profiling
64599142 loops with message "Signal 11 being dropped from thread 0...
64699195 threaded apps crash on thread start (using QThread::start...
64799348 Assertion `vgPlain_lseek(core_fd, 0, 1) == phdrs[i].p_off...
64899568 False negative due to mishandling of mprotect
64999738 valgrind memcheck crashes on program that uses sigitimer
65099923 0-sized allocations are reported as leaks
65199949 program seg faults after exit()
652100036 "newSuperblock's request for 1048576 bytes failed"
653100116 valgrind: (pthread_cond_init): Assertion `sizeof(* cond) ...
654100486 memcheck reports "valgrind: the `impossible' happened: V...
655100833 second call to "mremap" fails with EINVAL
656101156 (vgPlain_find_map_space): Assertion `(addr & ((1 << 12)-1...
657101173 Assertion `recDepth >= 0 && recDepth < 500' failed
658101291 creating threads in a forked process fails
659101313 valgrind causes different behavior when resizing a window...
660101423 segfault for c++ array of floats
661101562 valgrind massif dies on SIGINT even with signal handler r...
662
njn8c927302005-03-12 16:45:01 +0000663
jseward34ed74f2004-08-30 18:04:42 +0000664Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.0.0
665~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseward7d180d92004-08-30 18:15:37 +00006662.2.0 brings nine months worth of improvements and bug fixes. We
667believe it to be a worthy successor to 2.0.0. There are literally
668hundreds of bug fixes and minor improvements. There are also some
669fairly major user-visible changes:
670
671* A complete overhaul of handling of system calls and signals, and
672 their interaction with threads. In general, the accuracy of the
673 system call, thread and signal simulations is much improved:
674
675 - Blocking system calls behave exactly as they do when running
676 natively (not on valgrind). That is, if a syscall blocks only the
677 calling thread when running natively, than it behaves the same on
678 valgrind. No more mysterious hangs because V doesn't know that some
679 syscall or other, should block only the calling thread.
680
681 - Interrupted syscalls should now give more faithful results.
682
683 - Signal contexts in signal handlers are supported.
684
685* Improvements to NPTL support to the extent that V now works
686 properly on NPTL-only setups.
687
688* Greater isolation between Valgrind and the program being run, so
689 the program is less likely to inadvertently kill Valgrind by
690 doing wild writes.
691
692* Massif: a new space profiling tool. Try it! It's cool, and it'll
693 tell you in detail where and when your C/C++ code is allocating heap.
694 Draws pretty .ps pictures of memory use against time. A potentially
695 powerful tool for making sense of your program's space use.
696
697* File descriptor leakage checks. When enabled, Valgrind will print out
698 a list of open file descriptors on exit.
699
700* Improved SSE2/SSE3 support.
701
jseward2eb002b2004-08-31 00:14:02 +0000702* Time-stamped output; use --time-stamp=yes
703
jseward34ed74f2004-08-30 18:04:42 +0000704
705
706Stable release 2.2.0 (31 August 2004) -- CHANGES RELATIVE TO 2.1.2
707~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7082.2.0 is not much different from 2.1.2, released seven weeks ago.
709A number of bugs have been fixed, most notably #85658, which gave
710problems for quite a few people. There have been many internal
711cleanups, but those are not user visible.
712
713The following bugs have been fixed since 2.1.2:
714
71585658 Assert in coregrind/vg_libpthread.c:2326 (open64) !=
716 (void*)0 failed
717 This bug was reported multiple times, and so the following
718 duplicates of it are also fixed: 87620, 85796, 85935, 86065,
719 86919, 86988, 87917, 88156
720
72180716 Semaphore mapping bug caused by unmap (sem_destroy)
722 (Was fixed prior to 2.1.2)
723
72486987 semctl and shmctl syscalls family is not handled properly
725
72686696 valgrind 2.1.2 + RH AS2.1 + librt
727
72886730 valgrind locks up at end of run with assertion failure
729 in __pthread_unwind
730
73186641 memcheck doesn't work with Mesa OpenGL/ATI on Suse 9.1
732 (also fixes 74298, a duplicate of this)
733
73485947 MMX/SSE unhandled instruction 'sfence'
735
73684978 Wrong error "Conditional jump or move depends on
737 uninitialised value" resulting from "sbbl %reg, %reg"
738
73986254 ssort() fails when signed int return type from comparison is
740 too small to handle result of unsigned int subtraction
741
74287089 memalign( 4, xxx) makes valgrind assert
743
jseward2eb002b2004-08-31 00:14:02 +000074486407 Add support for low-level parallel port driver ioctls.
jseward34ed74f2004-08-30 18:04:42 +0000745
74670587 Add timestamps to Valgrind output? (wishlist)
747
74884937 vg_libpthread.c:2505 (se_remap): Assertion `res == 0'
749 (fixed prior to 2.1.2)
750
75186317 cannot load libSDL-1.2.so.0 using valgrind
752
75386989 memcpy from mac_replace_strmem.c complains about
754 uninitialized pointers passed when length to copy is zero
755
75685811 gnu pascal symbol causes segmentation fault; ok in 2.0.0
757
75879138 writing to sbrk()'d memory causes segfault
759
76077369 sched deadlock while signal received during pthread_join
761 and the joined thread exited
762
76388115 In signal handler for SIGFPE, siginfo->si_addr is wrong
764 under Valgrind
765
76678765 Massif crashes on app exit if FP exceptions are enabled
767
768Additionally there are the following changes, which are not
769connected to any bug report numbers, AFAICS:
770
771* Fix scary bug causing mis-identification of SSE stores vs
772 loads and so causing memcheck to sometimes give nonsense results
773 on SSE code.
774
775* Add support for the POSIX message queue system calls.
776
777* Fix to allow 32-bit Valgrind to run on AMD64 boxes. Note: this does
778 NOT allow Valgrind to work with 64-bit executables - only with 32-bit
779 executables on an AMD64 box.
780
781* At configure time, only check whether linux/mii.h can be processed
782 so that we don't generate ugly warnings by trying to compile it.
783
jseward2eb002b2004-08-31 00:14:02 +0000784* Add support for POSIX clocks and timers.
785
jseward34ed74f2004-08-30 18:04:42 +0000786
787
jseward9cd978c2004-07-17 13:38:12 +0000788Developer (cvs head) release 2.1.2 (18 July 2004)
jsewardbd0a6e42004-07-17 12:19:43 +0000789~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7902.1.2 contains four months worth of bug fixes and refinements.
jseward9cd978c2004-07-17 13:38:12 +0000791Although officially a developer release, we believe it to be stable
792enough for widespread day-to-day use. 2.1.2 is pretty good, so try it
793first, although there is a chance it won't work. If so then try 2.0.0
794and tell us what went wrong." 2.1.2 fixes a lot of problems present
795in 2.0.0 and is generally a much better product.
jsewardbd0a6e42004-07-17 12:19:43 +0000796
jseward9cd978c2004-07-17 13:38:12 +0000797Relative to 2.1.1, a large number of minor problems with 2.1.1 have
798been fixed, and so if you use 2.1.1 you should try 2.1.2. Users of
799the last stable release, 2.0.0, might also want to try this release.
jsewardbd0a6e42004-07-17 12:19:43 +0000800
801The following bugs, and probably many more, have been fixed. These
802are listed at http://bugs.kde.org. Reporting a bug for valgrind in
803the http://bugs.kde.org is much more likely to get you a fix than
804mailing developers directly, so please continue to keep sending bugs
805there.
806
80776869 Crashes when running any tool under Fedora Core 2 test1
808 This fixes the problem with returning from a signal handler
jseward0400d4d2004-07-17 23:26:46 +0000809 when VDSOs are turned off in FC2.
jsewardbd0a6e42004-07-17 12:19:43 +0000810
jseward0400d4d2004-07-17 23:26:46 +000081169508 java 1.4.2 client fails with erroneous "stack size too small".
812 This fix makes more of the pthread stack attribute related
813 functions work properly. Java still doesn't work though.
jsewardbd0a6e42004-07-17 12:19:43 +0000814
81571906 malloc alignment should be 8, not 4
816 All memory returned by malloc/new etc is now at least
817 8-byte aligned.
818
jsewarda6017a42004-07-17 23:44:35 +000081981970 vg_alloc_ThreadState: no free slots available
820 (closed because the workaround is simple: increase
821 VG_N_THREADS, rebuild and try again.)
822
jsewardbd0a6e42004-07-17 12:19:43 +000082378514 Conditional jump or move depends on uninitialized value(s)
824 (a slight mishanding of FP code in memcheck)
825
jsewarda6017a42004-07-17 23:44:35 +000082677952 pThread Support (crash) (due to initialisation-ordering probs)
827 (also 85118)
828
jsewardbd0a6e42004-07-17 12:19:43 +000082980942 Addrcheck wasn't doing overlap checking as it should.
83078048 return NULL on malloc/new etc failure, instead of asserting
83173655 operator new() override in user .so files often doesn't get picked up
83283060 Valgrind does not handle native kernel AIO
83369872 Create proper coredumps after fatal signals
83482026 failure with new glibc versions: __libc_* functions are not exported
83570344 UNIMPLEMENTED FUNCTION: tcdrain
83681297 Cancellation of pthread_cond_wait does not require mutex
83782872 Using debug info from additional packages (wishlist)
83883025 Support for ioctls FIGETBSZ and FIBMAP
83983340 Support for ioctl HDIO_GET_IDENTITY
84079714 Support for the semtimedop system call.
84177022 Support for ioctls FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO
84282098 hp2ps ansification (wishlist)
84383573 Valgrind SIGSEGV on execve
84482999 show which cmdline option was erroneous (wishlist)
84583040 make valgrind VPATH and distcheck-clean (wishlist)
jsewarda6017a42004-07-17 23:44:35 +000084683998 Assertion `newfd > vgPlain_max_fd' failed (see below)
84782722 Unchecked mmap in as_pad leads to mysterious failures later
84878958 memcheck seg faults while running Mozilla
jsewarda2c08002004-07-18 09:24:57 +000084985416 Arguments with colon (e.g. --logsocket) ignored
jsewardbd0a6e42004-07-17 12:19:43 +0000850
851
852Additionally there are the following changes, which are not
853connected to any bug report numbers, AFAICS:
854
855* Rearranged address space layout relative to 2.1.1, so that
856 Valgrind/tools will run out of memory later than currently in many
857 circumstances. This is good news esp. for Calltree. It should
858 be possible for client programs to allocate over 800MB of
859 memory when using memcheck now.
860
jseward9cd978c2004-07-17 13:38:12 +0000861* Improved checking when laying out memory. Should hopefully avoid
862 the random segmentation faults that 2.1.1 sometimes caused.
863
jsewardbd0a6e42004-07-17 12:19:43 +0000864* Support for Fedora Core 2 and SuSE 9.1. Improvements to NPTL
865 support to the extent that V now works properly on NPTL-only setups.
866
867* Renamed the following options:
868 --logfile-fd --> --log-fd
869 --logfile --> --log-file
870 --logsocket --> --log-socket
871 to be consistent with each other and other options (esp. --input-fd).
872
873* Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
874 improve the checking of other interface related ioctls.
875
jsewardbd0a6e42004-07-17 12:19:43 +0000876* Fix building with gcc-3.4.1.
877
878* Remove limit on number of semaphores supported.
879
jsewardbd0a6e42004-07-17 12:19:43 +0000880* Add support for syscalls: set_tid_address (258), acct (51).
881
882* Support instruction "repne movs" -- not official but seems to occur.
883
884* Implement an emulated soft limit for file descriptors in addition to
885 the current reserved area, which effectively acts as a hard limit. The
886 setrlimit system call now simply updates the emulated limits as best
887 as possible - the hard limit is not allowed to move at all and just
888 returns EPERM if you try and change it. This should stop reductions
889 in the soft limit causing assertions when valgrind tries to allocate
890 descriptors from the reserved area.
jsewarda6017a42004-07-17 23:44:35 +0000891 (This actually came from bug #83998).
jsewardbd0a6e42004-07-17 12:19:43 +0000892
nethercote76e8fd92004-07-21 10:37:31 +0000893* Major overhaul of Cachegrind implementation. First user-visible change
nethercote5e63bfb2004-07-17 12:49:53 +0000894 is that cachegrind.out files are now typically 90% smaller than they
nethercote76e8fd92004-07-21 10:37:31 +0000895 used to be; code annotation times are correspondingly much smaller.
896 Second user-visible change is that hit/miss counts for code that is
897 unloaded at run-time is no longer dumped into a single "discard" pile,
898 but accurately preserved.
jsewardbd0a6e42004-07-17 12:19:43 +0000899
900* Client requests for telling valgrind about memory pools.
901
902
903
jseward9cd978c2004-07-17 13:38:12 +0000904Developer (cvs head) release 2.1.1 (12 March 2004)
905~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jsewardbd0a6e42004-07-17 12:19:43 +00009062.1.1 contains some internal structural changes needed for V's
jsewarde3e77042004-03-12 21:07:05 +0000907long-term future. These don't affect end-users. Most notable
908user-visible changes are:
909
910* Greater isolation between Valgrind and the program being run, so
911 the program is less likely to inadvertently kill Valgrind by
912 doing wild writes.
913
914* Massif: a new space profiling tool. Try it! It's cool, and it'll
915 tell you in detail where and when your C/C++ code is allocating heap.
916 Draws pretty .ps pictures of memory use against time. A potentially
917 powerful tool for making sense of your program's space use.
918
919* Fixes for many bugs, including support for more SSE2/SSE3 instructions,
920 various signal/syscall things, and various problems with debug
921 info readers.
922
923* Support for glibc-2.3.3 based systems.
924
925We are now doing automatic overnight build-and-test runs on a variety
926of distros. As a result, we believe 2.1.1 builds and runs on:
927Red Hat 7.2, 7.3, 8.0, 9, Fedora Core 1, SuSE 8.2, SuSE 9.
928
929
930The following bugs, and probably many more, have been fixed. These
931are listed at http://bugs.kde.org. Reporting a bug for valgrind in
932the http://bugs.kde.org is much more likely to get you a fix than
933mailing developers directly, so please continue to keep sending bugs
934there.
935
93669616 glibc 2.3.2 w/NPTL is massively different than what valgrind expects
93769856 I don't know how to instrument MMXish stuff (Helgrind)
93873892 valgrind segfaults starting with Objective-C debug info
939 (fix for S-type stabs)
94073145 Valgrind complains too much about close(<reserved fd>)
94173902 Shadow memory allocation seems to fail on RedHat 8.0
94268633 VG_N_SEMAPHORES too low (V itself was leaking semaphores)
94375099 impossible to trace multiprocess programs
94476839 the `impossible' happened: disInstr: INT but not 0x80 !
94576762 vg_to_ucode.c:3748 (dis_push_segreg): Assertion `sz == 4' failed.
94676747 cannot include valgrind.h in c++ program
94776223 parsing B(3,10) gave NULL type => impossible happens
94875604 shmdt handling problem
94976416 Problems with gcc 3.4 snap 20040225
95075614 using -gstabs when building your programs the `impossible' happened
95175787 Patch for some CDROM ioctls CDORM_GET_MCN, CDROM_SEND_PACKET,
95275294 gcc 3.4 snapshot's libstdc++ have unsupported instructions.
953 (REP RET)
95473326 vg_symtab2.c:272 (addScopeRange): Assertion `range->size > 0' failed.
95572596 not recognizing __libc_malloc
95669489 Would like to attach ddd to running program
95772781 Cachegrind crashes with kde programs
95873055 Illegal operand at DXTCV11CompressBlockSSE2 (more SSE opcodes)
95973026 Descriptor leak check reports port numbers wrongly
96071705 README_MISSING_SYSCALL_OR_IOCTL out of date
96172643 Improve support for SSE/SSE2 instructions
96272484 valgrind leaves it's own signal mask in place when execing
96372650 Signal Handling always seems to restart system calls
96472006 The mmap system call turns all errors in ENOMEM
96571781 gdb attach is pretty useless
96671180 unhandled instruction bytes: 0xF 0xAE 0x85 0xE8
96769886 writes to zero page cause valgrind to assert on exit
96871791 crash when valgrinding gimp 1.3 (stabs reader problem)
96969783 unhandled syscall: 218
97069782 unhandled instruction bytes: 0x66 0xF 0x2B 0x80
97170385 valgrind fails if the soft file descriptor limit is less
972 than about 828
97369529 "rep; nop" should do a yield
97470827 programs with lots of shared libraries report "mmap failed"
975 for some of them when reading symbols
97671028 glibc's strnlen is optimised enough to confuse valgrind
977
978
979
980
jseward43230652003-12-14 00:14:54 +0000981Unstable (cvs head) release 2.1.0 (15 December 2003)
982~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
983For whatever it's worth, 2.1.0 actually seems pretty darn stable to me
984(Julian). It looks eminently usable, and given that it fixes some
985significant bugs, may well be worth using on a day-to-day basis.
9862.1.0 is known to build and pass regression tests on: SuSE 9, SuSE
9878.2, RedHat 8.
988
9892.1.0 most notably includes Jeremy Fitzhardinge's complete overhaul of
990handling of system calls and signals, and their interaction with
991threads. In general, the accuracy of the system call, thread and
992signal simulations is much improved. Specifically:
993
994- Blocking system calls behave exactly as they do when running
995 natively (not on valgrind). That is, if a syscall blocks only the
996 calling thread when running natively, than it behaves the same on
997 valgrind. No more mysterious hangs because V doesn't know that some
998 syscall or other, should block only the calling thread.
999
1000- Interrupted syscalls should now give more faithful results.
1001
1002- Finally, signal contexts in signal handlers are supported. As a
1003 result, konqueror on SuSE 9 no longer segfaults when notified of
1004 file changes in directories it is watching.
1005
1006Other changes:
1007
1008- Robert Walsh's file descriptor leakage checks. When enabled,
1009 Valgrind will print out a list of open file descriptors on
1010 exit. Along with each file descriptor, Valgrind prints out a stack
1011 backtrace of where the file was opened and any details relating to the
1012 file descriptor such as the file name or socket details.
1013 To use, give: --track-fds=yes
1014
1015- Implemented a few more SSE/SSE2 instructions.
1016
1017- Less crud on the stack when you do 'where' inside a GDB attach.
1018
1019- Fixed the following bugs:
1020 68360: Valgrind does not compile against 2.6.0-testX kernels
1021 68525: CVS head doesn't compile on C90 compilers
1022 68566: pkgconfig support (wishlist)
1023 68588: Assertion `sz == 4' failed in vg_to_ucode.c (disInstr)
1024 69140: valgrind not able to explicitly specify a path to a binary.
1025 69432: helgrind asserts encountering a MutexErr when there are
1026 EraserErr suppressions
1027
jseward0b12daf2003-12-14 14:35:28 +00001028- Increase the max size of the translation cache from 200k average bbs
1029 to 300k average bbs. Programs on the size of OOo (680m17) are
1030 thrashing the cache at the smaller size, creating large numbers of
1031 retranslations and wasting significant time as a result.
1032
jseward43230652003-12-14 00:14:54 +00001033
1034
1035Stable release 2.0.0 (5 Nov 2003)
1036~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1037
10382.0.0 improves SSE/SSE2 support, fixes some minor bugs, and
1039improves support for SuSE 9 and the Red Hat "Severn" beta.
1040
1041- Further improvements to SSE/SSE2 support. The entire test suite of
1042 the GNU Scientific Library (gsl-1.4) compiled with Intel Icc 7.1
1043 20030307Z '-g -O -xW' now works. I think this gives pretty good
1044 coverage of SSE/SSE2 floating point instructions, or at least the
1045 subset emitted by Icc.
1046
1047- Also added support for the following instructions:
1048 MOVNTDQ UCOMISD UNPCKLPS UNPCKHPS SQRTSS
1049 PUSH/POP %{FS,GS}, and PUSH %CS (Nb: there is no POP %CS).
1050
1051- CFI support for GDB version 6. Needed to enable newer GDBs
1052 to figure out where they are when using --gdb-attach=yes.
1053
1054- Fix this:
1055 mc_translate.c:1091 (memcheck_instrument): Assertion
1056 `u_in->size == 4 || u_in->size == 16' failed.
1057
1058- Return an error rather than panicing when given a bad socketcall.
1059
1060- Fix checking of syscall rt_sigtimedwait().
1061
1062- Implement __NR_clock_gettime (syscall 265). Needed on Red Hat Severn.
1063
1064- Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n'
1065 bytes long, when it could be shorter, which could cause false
1066 positives.
1067
1068- Support use of select() for very large numbers of file descriptors.
1069
1070- Don't fail silently if the executable is statically linked, or is
1071 setuid/setgid. Print an error message instead.
1072
1073- Support for old DWARF-1 format line number info.
1074
1075
1076
1077Snapshot 20031012 (12 October 2003)
1078~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1079
1080Three months worth of bug fixes, roughly. Most significant single
1081change is improved SSE/SSE2 support, mostly thanks to Dirk Mueller.
1082
108320031012 builds on Red Hat Fedora ("Severn") but doesn't really work
1084(curiosly, mozilla runs OK, but a modest "ls -l" bombs). I hope to
1085get a working version out soon. It may or may not work ok on the
1086forthcoming SuSE 9; I hear positive noises about it but haven't been
1087able to verify this myself (not until I get hold of a copy of 9).
1088
1089A detailed list of changes, in no particular order:
1090
1091- Describe --gen-suppressions in the FAQ.
1092
1093- Syscall __NR_waitpid supported.
1094
1095- Minor MMX bug fix.
1096
1097- -v prints program's argv[] at startup.
1098
1099- More glibc-2.3 suppressions.
1100
1101- Suppressions for stack underrun bug(s) in the c++ support library
1102 distributed with Intel Icc 7.0.
1103
1104- Fix problems reading /proc/self/maps.
1105
1106- Fix a couple of messages that should have been suppressed by -q,
1107 but weren't.
1108
1109- Make Addrcheck understand "Overlap" suppressions.
1110
1111- At startup, check if program is statically linked and bail out if so.
1112
1113- Cachegrind: Auto-detect Intel Pentium-M, also VIA Nehemiah
1114
1115- Memcheck/addrcheck: minor speed optimisations
1116
1117- Handle syscall __NR_brk more correctly than before.
1118
1119- Fixed incorrect allocate/free mismatch errors when using
1120 operator new(unsigned, std::nothrow_t const&)
1121 operator new[](unsigned, std::nothrow_t const&)
1122
1123- Support POSIX pthread spinlocks.
1124
1125- Fixups for clean compilation with gcc-3.3.1.
daywalker5d945de2003-09-26 00:32:53 +00001126
1127- Implemented more opcodes:
1128 - push %es
1129 - push %ds
1130 - pop %es
1131 - pop %ds
1132 - movntq
1133 - sfence
1134 - pshufw
1135 - pavgb
1136 - ucomiss
1137 - enter
daywalkerb18d2532003-09-27 20:15:01 +00001138 - mov imm32, %esp
1139 - all "in" and "out" opcodes
daywalker79aad842003-09-30 22:58:12 +00001140 - inc/dec %esp
jseward43230652003-12-14 00:14:54 +00001141 - A whole bunch of SSE/SSE2 instructions
daywalker5d945de2003-09-26 00:32:53 +00001142
jseward43230652003-12-14 00:14:54 +00001143- Memcheck: don't bomb on SSE/SSE2 code.
daywalker5d945de2003-09-26 00:32:53 +00001144
sewardj90238792003-05-05 00:23:42 +00001145
sewardj945f39f2003-07-25 21:11:40 +00001146Snapshot 20030725 (25 July 2003)
1147~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1148
1149Fixes some minor problems in 20030716.
1150
1151- Fix bugs in overlap checking for strcpy/memcpy etc.
1152
1153- Do overlap checking with Addrcheck as well as Memcheck.
1154
1155- Fix this:
1156 Memcheck: the `impossible' happened:
1157 get_error_name: unexpected type
1158
1159- Install headers needed to compile new skins.
1160
sewardje3dd2e02003-07-27 08:04:48 +00001161- Remove leading spaces and colon in the LD_LIBRARY_PATH / LD_PRELOAD
sewardj945f39f2003-07-25 21:11:40 +00001162 passed to non-traced children.
1163
sewardjb9eda952003-07-26 21:39:05 +00001164- Fix file descriptor leak in valgrind-listener.
1165
sewardje3dd2e02003-07-27 08:04:48 +00001166- Fix longstanding bug in which the allocation point of a
1167 block resized by realloc was not correctly set. This may
1168 have caused confusing error messages.
sewardj945f39f2003-07-25 21:11:40 +00001169
1170
sewardj626fd892003-07-16 20:10:26 +00001171Snapshot 20030716 (16 July 2003)
sewardj9d916ed2003-07-14 23:38:40 +00001172~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1173
sewardj626fd892003-07-16 20:10:26 +0000117420030716 is a snapshot of our current CVS head (development) branch.
sewardj9d916ed2003-07-14 23:38:40 +00001175This is the branch which will become valgrind-2.0. It contains
1176significant enhancements over the 1.9.X branch.
1177
1178Despite this being a snapshot of the CVS head, it is believed to be
1179quite stable -- at least as stable as 1.9.6 or 1.0.4, if not more so
1180-- and therefore suitable for widespread use. Please let us know asap
1181if it causes problems for you.
1182
1183Two reasons for releasing a snapshot now are:
1184
1185- It's been a while since 1.9.6, and this snapshot fixes
1186 various problems that 1.9.6 has with threaded programs
1187 on glibc-2.3.X based systems.
1188
1189- So as to make available improvements in the 2.0 line.
1190
sewardj626fd892003-07-16 20:10:26 +00001191Major changes in 20030716, as compared to 1.9.6:
sewardj9d916ed2003-07-14 23:38:40 +00001192
1193- More fixes to threading support on glibc-2.3.1 and 2.3.2-based
1194 systems (SuSE 8.2, Red Hat 9). If you have had problems
1195 with inconsistent/illogical behaviour of errno, h_errno or the DNS
sewardj626fd892003-07-16 20:10:26 +00001196 resolver functions in threaded programs, 20030716 should improve
sewardj9d916ed2003-07-14 23:38:40 +00001197 matters. This snapshot seems stable enough to run OpenOffice.org
1198 1.1rc on Red Hat 7.3, SuSE 8.2 and Red Hat 9, and that's a big
1199 threaded app if ever I saw one.
1200
1201- Automatic generation of suppression records; you no longer
1202 need to write them by hand. Use --gen-suppressions=yes.
1203
sewardj21511802003-07-22 17:47:42 +00001204- strcpy/memcpy/etc check their arguments for overlaps, when
1205 running with the Memcheck or Addrcheck skins.
1206
1207- malloc_usable_size() is now supported.
1208
1209- new client requests:
1210 - VALGRIND_COUNT_ERRORS, VALGRIND_COUNT_LEAKS:
1211 useful with regression testing
1212 - VALGRIND_NON_SIMD_CALL[0123]: for running arbitrary functions
1213 on real CPU (use with caution!)
1214
sewardj9d916ed2003-07-14 23:38:40 +00001215- The GDB attach mechanism is more flexible. Allow the GDB to
1216 be run to be specified by --gdb-path=/path/to/gdb, and specify
1217 which file descriptor V will read its input from with
1218 --input-fd=<number>.
1219
sewardj21511802003-07-22 17:47:42 +00001220- Cachegrind gives more accurate results (wasn't tracking instructions in
1221 malloc() and friends previously, is now).
1222
sewardj9d916ed2003-07-14 23:38:40 +00001223- Complete support for the MMX instruction set.
1224
1225- Partial support for the SSE and SSE2 instruction sets. Work for this
1226 is ongoing. About half the SSE/SSE2 instructions are done, so
1227 some SSE based programs may work. Currently you need to specify
1228 --skin=addrcheck. Basically not suitable for real use yet.
1229
1230- Significant speedups (10%-20%) for standard memory checking.
1231
1232- Fix assertion failure in pthread_once().
1233
1234- Fix this:
1235 valgrind: vg_intercept.c:598 (vgAllRoadsLeadToRome_select):
1236 Assertion `ms_end >= ms_now' failed.
1237
1238- Implement pthread_mutexattr_setpshared.
1239
1240- Understand Pentium 4 branch hints. Also implemented a couple more
1241 obscure x86 instructions.
1242
1243- Lots of other minor bug fixes.
1244
sewardj626fd892003-07-16 20:10:26 +00001245- We have a decent regression test system, for the first time.
1246 This doesn't help you directly, but it does make it a lot easier
1247 for us to track the quality of the system, especially across
1248 multiple linux distributions.
1249
1250 You can run the regression tests with 'make regtest' after 'make
1251 install' completes. On SuSE 8.2 and Red Hat 9 I get this:
1252
1253 == 84 tests, 0 stderr failures, 0 stdout failures ==
1254
1255 On Red Hat 8, I get this:
1256
1257 == 84 tests, 2 stderr failures, 1 stdout failure ==
1258 corecheck/tests/res_search (stdout)
1259 memcheck/tests/sigaltstack (stderr)
1260
1261 sigaltstack is probably harmless. res_search doesn't work
1262 on R H 8 even running natively, so I'm not too worried.
1263
1264 On Red Hat 7.3, a glibc-2.2.5 system, I get these harmless failures:
1265
1266 == 84 tests, 2 stderr failures, 1 stdout failure ==
1267 corecheck/tests/pth_atfork1 (stdout)
1268 corecheck/tests/pth_atfork1 (stderr)
1269 memcheck/tests/sigaltstack (stderr)
1270
1271 You need to run on a PII system, at least, since some tests
1272 contain P6-specific instructions, and the test machine needs
1273 access to the internet so that corecheck/tests/res_search
1274 (a test that the DNS resolver works) can function.
1275
sewardj9d916ed2003-07-14 23:38:40 +00001276As ever, thanks for the vast amount of feedback :) and bug reports :(
1277We may not answer all messages, but we do at least look at all of
1278them, and tend to fix the most frequently reported bugs.
1279
1280
1281
sewardj37918822003-05-05 01:05:09 +00001282Version 1.9.6 (7 May 2003 or thereabouts)
1283~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1284
1285Major changes in 1.9.6:
1286
1287- Improved threading support for glibc >= 2.3.2 (SuSE 8.2,
1288 RedHat 9, to name but two ...) It turned out that 1.9.5
1289 had problems with threading support on glibc >= 2.3.2,
1290 usually manifested by threaded programs deadlocking in system calls,
1291 or running unbelievably slowly. Hopefully these are fixed now. 1.9.6
1292 is the first valgrind which gives reasonable support for
1293 glibc-2.3.2. Also fixed a 2.3.2 problem with pthread_atfork().
1294
1295- Majorly expanded FAQ.txt. We've added workarounds for all
1296 common problems for which a workaround is known.
1297
1298Minor changes in 1.9.6:
1299
1300- Fix identification of the main thread's stack. Incorrect
1301 identification of it was causing some on-stack addresses to not get
1302 identified as such. This only affected the usefulness of some error
1303 messages; the correctness of the checks made is unchanged.
1304
1305- Support for kernels >= 2.5.68.
1306
1307- Dummy implementations of __libc_current_sigrtmin,
1308 __libc_current_sigrtmax and __libc_allocate_rtsig, hopefully
1309 good enough to keep alive programs which previously died for lack of
1310 them.
1311
1312- Fix bug in the VALGRIND_DISCARD_TRANSLATIONS client request.
1313
sewardj3d47b792003-05-05 22:15:35 +00001314- Fix bug in the DWARF2 debug line info loader, when instructions
1315 following each other have source lines far from each other
1316 (e.g. with inlined functions).
1317
sewardj37918822003-05-05 01:05:09 +00001318- Debug info reading: read symbols from both "symtab" and "dynsym"
1319 sections, rather than merely from the one that comes last in the
1320 file.
1321
1322- New syscall support: prctl(), creat(), lookup_dcookie().
1323
1324- When checking calls to accept(), recvfrom(), getsocketopt(),
1325 don't complain if buffer values are NULL.
1326
1327- Try and avoid assertion failures in
1328 mash_LD_PRELOAD_and_LD_LIBRARY_PATH.
1329
1330- Minor bug fixes in cg_annotate.
1331
1332
1333
sewardj90238792003-05-05 00:23:42 +00001334Version 1.9.5 (7 April 2003)
1335~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1336
1337It occurs to me that it would be helpful for valgrind users to record
1338in the source distribution the changes in each release. So I now
1339attempt to mend my errant ways :-) Changes in this and future releases
1340will be documented in the NEWS file in the source distribution.
1341
1342Major changes in 1.9.5:
1343
1344- (Critical bug fix): Fix a bug in the FPU simulation. This was
1345 causing some floating point conditional tests not to work right.
1346 Several people reported this. If you had floating point code which
1347 didn't work right on 1.9.1 to 1.9.4, it's worth trying 1.9.5.
1348
1349- Partial support for Red Hat 9. RH9 uses the new Native Posix
1350 Threads Library (NPTL), instead of the older LinuxThreads.
1351 This potentially causes problems with V which will take some
1352 time to correct. In the meantime we have partially worked around
1353 this, and so 1.9.5 works on RH9. Threaded programs still work,
1354 but they may deadlock, because some system calls (accept, read,
1355 write, etc) which should be nonblocking, in fact do block. This
1356 is a known bug which we are looking into.
1357
1358 If you can, your best bet (unfortunately) is to avoid using
1359 1.9.5 on a Red Hat 9 system, or on any NPTL-based distribution.
1360 If your glibc is 2.3.1 or earlier, you're almost certainly OK.
1361
1362Minor changes in 1.9.5:
1363
1364- Added some #errors to valgrind.h to ensure people don't include
1365 it accidentally in their sources. This is a change from 1.0.X
1366 which was never properly documented. The right thing to include
1367 is now memcheck.h. Some people reported problems and strange
1368 behaviour when (incorrectly) including valgrind.h in code with
1369 1.9.1 -- 1.9.4. This is no longer possible.
1370
1371- Add some __extension__ bits and pieces so that gcc configured
1372 for valgrind-checking compiles even with -Werror. If you
1373 don't understand this, ignore it. Of interest to gcc developers
1374 only.
1375
1376- Removed a pointless check which caused problems interworking
1377 with Clearcase. V would complain about shared objects whose
1378 names did not end ".so", and refuse to run. This is now fixed.
1379 In fact it was fixed in 1.9.4 but not documented.
1380
1381- Fixed a bug causing an assertion failure of "waiters == 1"
1382 somewhere in vg_scheduler.c, when running large threaded apps,
1383 notably MySQL.
1384
1385- Add support for the munlock system call (124).
1386
1387Some comments about future releases:
1388
13891.9.5 is, we hope, the most stable Valgrind so far. It pretty much
1390supersedes the 1.0.X branch. If you are a valgrind packager, please
1391consider making 1.9.5 available to your users. You can regard the
13921.0.X branch as obsolete: 1.9.5 is stable and vastly superior. There
1393are no plans at all for further releases of the 1.0.X branch.
1394
1395If you want a leading-edge valgrind, consider building the cvs head
1396(from SourceForge), or getting a snapshot of it. Current cool stuff
1397going in includes MMX support (done); SSE/SSE2 support (in progress),
1398a significant (10-20%) performance improvement (done), and the usual
1399large collection of minor changes. Hopefully we will be able to
1400improve our NPTL support, but no promises.
1401