]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
17 years agoDon't break the build on AIX5.3.
Julian Seward [Tue, 27 Nov 2007 11:23:55 +0000 (11:23 +0000)] 
Don't break the build on AIX5.3.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7240

17 years agoMinor updates.
Nicholas Nethercote [Tue, 27 Nov 2007 02:03:44 +0000 (02:03 +0000)] 
Minor updates.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7239

17 years agoTranslate the drd regtests from C++ to C. (Bart Van Assche).
Julian Seward [Tue, 27 Nov 2007 01:59:38 +0000 (01:59 +0000)] 
Translate the drd regtests from C++ to C.  (Bart Van Assche).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7238

17 years agoTweaked the tool-writing docs.
Nicholas Nethercote [Tue, 27 Nov 2007 01:59:02 +0000 (01:59 +0000)] 
Tweaked the tool-writing docs.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7237

17 years agoAdd Massif bugs fixed by the rewrite. I added them to the top part of the
Nicholas Nethercote [Tue, 27 Nov 2007 01:34:06 +0000 (01:34 +0000)] 
Add Massif bugs fixed by the rewrite.  I added them to the top part of the
file, not the "after 3.2.3" section, I hope this is the right place for
them.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7236

17 years agocallgrind: support for --callgrind-out-file
Josef Weidendorfer [Tue, 27 Nov 2007 01:27:12 +0000 (01:27 +0000)] 
callgrind: support for --callgrind-out-file

This removes the --base option, which is replaced by
--callgrind-out-file.
Plus manual update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7235

17 years agoThis should have gone in with r7233.
Nicholas Nethercote [Tue, 27 Nov 2007 00:59:17 +0000 (00:59 +0000)] 
This should have gone in with r7233.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7234

17 years agoUpdate test output for a recent graph-drawing change. Update some notes.
Nicholas Nethercote [Tue, 27 Nov 2007 00:53:56 +0000 (00:53 +0000)] 
Update test output for a recent graph-drawing change. Update some notes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7233

17 years agoAIX 5.3 build fixes.
Julian Seward [Mon, 26 Nov 2007 22:43:03 +0000 (22:43 +0000)] 
AIX 5.3 build fixes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7232

17 years agoMinor tweak to drawing of peak and detailed snapshot bars on the graph.
Nicholas Nethercote [Mon, 26 Nov 2007 22:27:02 +0000 (22:27 +0000)] 
Minor tweak to drawing of peak and detailed snapshot bars on the graph.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7231

17 years agoMinor tweak to x-axis positioning of bars.
Nicholas Nethercote [Mon, 26 Nov 2007 22:17:19 +0000 (22:17 +0000)] 
Minor tweak to x-axis positioning of bars.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7230

17 years ago- Rewrote documentation.
Nicholas Nethercote [Mon, 26 Nov 2007 21:59:04 +0000 (21:59 +0000)] 
- Rewrote documentation.
- Added a new time unit, instructions executed, and made it the default -- it's
  much more reproducible and consistent than milliseconds.  Requires IRSB
  instrumentation and so slows down some programs (malloc-light ones such as
  bzip2) by about 20%, others by less.
- ms_print now doesn't overwrite the x-axis in the graphs.
- Added a test for --detailed-freq and --max-snapshots

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7229

17 years agodrd: make the build silent regardless of platform, and abort at
Julian Seward [Mon, 26 Nov 2007 21:34:30 +0000 (21:34 +0000)] 
drd: make the build silent regardless of platform, and abort at
     startup with a message if a not supported platform, like
     Omega.

omega: make the platform-not-supported-message a bit nicer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7228

17 years agoadd glibc 2.7 suppression to the distribution list
Dirk Mueller [Mon, 26 Nov 2007 14:54:36 +0000 (14:54 +0000)] 
add glibc 2.7 suppression to the distribution list

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7226

17 years agoDon't break the build on unknown (to drd) platforms.
Julian Seward [Mon, 26 Nov 2007 06:03:05 +0000 (06:03 +0000)] 
Don't break the build on unknown (to drd) platforms.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7225

17 years agoBack out r7221, which was incorrect.
Nicholas Nethercote [Mon, 26 Nov 2007 02:55:12 +0000 (02:55 +0000)] 
Back out r7221, which was incorrect.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7224

17 years agoProgram uses too many new-ish constructions to be compilable on glibc 2.2
Julian Seward [Mon, 26 Nov 2007 00:41:54 +0000 (00:41 +0000)] 
Program uses too many new-ish constructions to be compilable on glibc 2.2
(Red Hat 7.3).  Do nothing on very old platforms.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7223

17 years agoMake drd regtests work again following core changes. (Bart Van Assche)
Julian Seward [Mon, 26 Nov 2007 00:11:04 +0000 (00:11 +0000)] 
Make drd regtests work again following core changes.  (Bart Van Assche)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7222

17 years agoFix NUM_CLO checking.
Nicholas Nethercote [Mon, 26 Nov 2007 00:00:32 +0000 (00:00 +0000)] 
Fix NUM_CLO checking.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7221

17 years agoGet rid of stuff which should not have been committed. Urrr.
Julian Seward [Sun, 25 Nov 2007 23:56:12 +0000 (23:56 +0000)] 
Get rid of stuff which should not have been committed.  Urrr.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7220

17 years agoFix g++-2.96 build breakage.
Julian Seward [Sun, 25 Nov 2007 23:15:44 +0000 (23:15 +0000)] 
Fix g++-2.96 build breakage.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7219

17 years agoUn-break 'make distdir'. Either by removing from EXTRA_DIST, file
Julian Seward [Sun, 25 Nov 2007 20:20:49 +0000 (20:20 +0000)] 
Un-break 'make distdir'.  Either by removing from EXTRA_DIST, file
names pertaining to tests which cannot be run (no associated .vgtest),
or by adding missing .stdout.exp files for tests which are to be run
(there is an associated .vgtest).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7218

17 years agoGet rid of compiler warnings.
Julian Seward [Sun, 25 Nov 2007 15:40:17 +0000 (15:40 +0000)] 
Get rid of compiler warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7217

17 years agoRemove from the active tree; this is of historical interest only now.
Julian Seward [Sun, 25 Nov 2007 14:11:38 +0000 (14:11 +0000)] 
Remove from the active tree; this is of historical interest only now.
Of course this remains in the repo forever.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7216

17 years agoUpdate.
Julian Seward [Sun, 25 Nov 2007 14:09:45 +0000 (14:09 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7215

17 years agoFix broken link.
Julian Seward [Sun, 25 Nov 2007 14:09:26 +0000 (14:09 +0000)] 
Fix broken link.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7214

17 years agoMisc changes needed to support exp-drd (Bart Van Assche).
Julian Seward [Sun, 25 Nov 2007 14:08:53 +0000 (14:08 +0000)] 
Misc changes needed to support exp-drd (Bart Van Assche).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7213

17 years agoCore-tool iface changes needed to support exp-drd (Bart Van Assche).
Julian Seward [Sun, 25 Nov 2007 14:06:06 +0000 (14:06 +0000)] 
Core-tool iface changes needed to support exp-drd (Bart Van Assche).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7212

17 years agoAdd DRD as an experimental tool. Bart Van Assche is the maintainer.
Julian Seward [Sun, 25 Nov 2007 14:01:38 +0000 (14:01 +0000)] 
Add DRD as an experimental tool.  Bart Van Assche is the maintainer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7211

17 years agoFix completely bogus implementation of VG_(seginfo_sect_kind). This
Julian Seward [Sun, 25 Nov 2007 12:30:36 +0000 (12:30 +0000)] 
Fix completely bogus implementation of VG_(seginfo_sect_kind).  This
was reported a very long time ago (2 years?) but was not fixed until
now.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7210

17 years agoVery minor changes.
Julian Seward [Sun, 25 Nov 2007 00:56:51 +0000 (00:56 +0000)] 
Very minor changes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7209

17 years agoCreate a new chapter in the Valgrind Manual: a chapter containing info
Julian Seward [Sun, 25 Nov 2007 00:55:11 +0000 (00:55 +0000)] 
Create a new chapter in the Valgrind Manual: a chapter containing info
on some advanced aspects of the core (client requests, function
wrapping) and move stuff from the main core manual into it.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7208

17 years agoAttempt to shake out uses of uninitialised malloc'd memory by Valgrind
Julian Seward [Sat, 24 Nov 2007 23:37:07 +0000 (23:37 +0000)] 
Attempt to shake out uses of uninitialised malloc'd memory by Valgrind
itself, if such exist.  Attempt failed (or no such uses exist :-)
Commit does not change any code.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7207

17 years agoUpdate expected outputs.
Julian Seward [Sat, 24 Nov 2007 22:53:31 +0000 (22:53 +0000)] 
Update expected outputs.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7206

17 years agoDon't let the debugger attachment fail silently in some cases.
Julian Seward [Sat, 24 Nov 2007 21:24:25 +0000 (21:24 +0000)] 
Don't let the debugger attachment fail silently in some cases.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7205

17 years agoTweak VG_(expand_file_name), as per Josef's suggestions.
Nicholas Nethercote [Fri, 23 Nov 2007 22:37:35 +0000 (22:37 +0000)] 
Tweak VG_(expand_file_name), as per Josef's suggestions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7204

17 years agoupdate
Nicholas Nethercote [Fri, 23 Nov 2007 01:42:10 +0000 (01:42 +0000)] 
update

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7203

17 years agoFixed up the log file mess throughout, including the docs. This killed
Nicholas Nethercote [Fri, 23 Nov 2007 01:41:32 +0000 (01:41 +0000)] 
Fixed up the log file mess throughout, including the docs.  This killed
--log-file-qualifier and --log-file-exactly.

Updated NEWS some in preparation for 3.3.0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7202

17 years agoAvoid some compiler warnings.
Nicholas Nethercote [Thu, 22 Nov 2007 23:33:20 +0000 (23:33 +0000)] 
Avoid some compiler warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7201

17 years agoAdd support for %q in --massif-out-file. Todo: use this mechanism for the
Nicholas Nethercote [Thu, 22 Nov 2007 23:01:59 +0000 (23:01 +0000)] 
Add support for %q in --massif-out-file.  Todo: use this mechanism for the
core and Cachegrind.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7200

17 years agoUpdate documents in preparation for 3.3.0, and restructure them
Julian Seward [Thu, 22 Nov 2007 01:21:56 +0000 (01:21 +0000)] 
Update documents in preparation for 3.3.0, and restructure them
somewhat to move less relevant material out of the way to some extent.
The main changes are:

* Update date and version info

* Mention other tools in the quick-start guide

* Document --child-silent-after-fork

* Rearrange order of sections in the Valgrind Core chapter, to move
  advanced stuff (client requests) to the end, and compact stuff
  relevant to the majority of users towards the front

* Move MPI debugging stuff from the Core manual (a nonsensical place
  for it) to the Memcheck chapter

* Update the manual's introductory chapter a bit

* Connect up new tech docs summary page, and disconnect old and
  very out of date valgrind/memcheck tech docs

* Add section tags to the Cachegrind manual, to stop xsltproc
  complaining about their absence

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7199

17 years agoAdd a page listing papers etc about Valgrind. Cut-down version of
Julian Seward [Thu, 22 Nov 2007 01:07:57 +0000 (01:07 +0000)] 
Add a page listing papers etc about Valgrind.  Cut-down version of
http://valgrind.org/docs/pubs.html.  Could do with improved
formatting, but is at least a start.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7198

17 years agoUpdate bug status.
Tom Hughes [Wed, 21 Nov 2007 16:12:57 +0000 (16:12 +0000)] 
Update bug status.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7197

17 years agoDon't load debug sections from the linked debug file if we have
Tom Hughes [Wed, 21 Nov 2007 16:09:18 +0000 (16:09 +0000)] 
Don't load debug sections from the linked debug file if we have
already loaded them from the main ELF file. Fixes #145609.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7196

17 years agoSupport sys_utimensat on x86-linux. (Dan McGee)
Julian Seward [Tue, 20 Nov 2007 23:41:23 +0000 (23:41 +0000)] 
Support sys_utimensat on x86-linux. (Dan McGee)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7195

17 years agoFollowup to r7192: don't bork the compilation if GDB_PATH is not
Julian Seward [Tue, 20 Nov 2007 21:38:14 +0000 (21:38 +0000)] 
Followup to r7192: don't bork the compilation if GDB_PATH is not
defined (in config.h)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7194

17 years agoHandle sys_getitimer on ppc32-linux and ppc64-linux.
Julian Seward [Tue, 20 Nov 2007 19:59:51 +0000 (19:59 +0000)] 
Handle sys_getitimer on ppc32-linux and ppc64-linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7193

17 years agoIn the --help text, print the actual name of the GDB that will by
Julian Seward [Tue, 20 Nov 2007 19:45:03 +0000 (19:45 +0000)] 
In the --help text, print the actual name of the GDB that will by
default be used.  Fixes #151938.  Unfortunately this makes the help
text non-constant, which could have a bad effect on regtesting; but
GDB is so usually installed in the standard place /usr/bin/gdb that I
don't think that's much of a big deal.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7192

17 years agoBe more robust against malformed DWARF2 line number information: don't
Julian Seward [Tue, 20 Nov 2007 08:46:05 +0000 (08:46 +0000)] 
Be more robust against malformed DWARF2 line number information: don't
assert when a reference is made to a filename not in the filename
table.  Fixes #150380 and #129937.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7191

17 years agoDo Massif output file name properly. Default is massif.out.%p, where %p
Nicholas Nethercote [Tue, 20 Nov 2007 07:55:40 +0000 (07:55 +0000)] 
Do Massif output file name properly.  Default is massif.out.%p, where %p
expands to the PID.  Updated the tests.  Still todo:  handle %q for
environment variables, and do the same for the core and
Cachegrind/Callgrind.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7190

17 years agoshut GCC up
Nicholas Nethercote [Tue, 20 Nov 2007 07:04:36 +0000 (07:04 +0000)] 
shut GCC up

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7189

17 years agoupdate
Nicholas Nethercote [Tue, 20 Nov 2007 06:40:48 +0000 (06:40 +0000)] 
update

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7188

17 years agoZero out the vki_user_regs_struct before using it. Otherwise, we end
Julian Seward [Mon, 19 Nov 2007 14:54:09 +0000 (14:54 +0000)] 
Zero out the vki_user_regs_struct before using it.  Otherwise, we end
up passing uninitialised garbage on the stack to ptrace(SETREGS, ...)
for any fields in the struct which are not filled in.  This does not
fix any known bugs, but seems like a good precautionary measure.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7187

17 years agoUpdate.
Julian Seward [Mon, 19 Nov 2007 02:47:16 +0000 (02:47 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7186

17 years agoAdd initial code to support debugger attaching on ppc64-linux (Ryan John).
Julian Seward [Mon, 19 Nov 2007 02:29:07 +0000 (02:29 +0000)] 
Add initial code to support debugger attaching on ppc64-linux (Ryan John).
Works on 2.6.20.  Does not work on 2.6.23 for unknown reasons.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7185

17 years agoMinor tidyings to the debugger-attach code, as part of a failed
Julian Seward [Mon, 19 Nov 2007 02:01:01 +0000 (02:01 +0000)] 
Minor tidyings to the debugger-attach code, as part of a failed
attempt to fix debugger attach on ppc32-linux and ppc64-linux (see
#151908).  The fork/ptrace-based mechanism works fine for x86-linux
and amd64-linux but not on ppc.  I have no idea what is going on.

It seems like the forked child process (to which we will attach GDB)
does not stop when it does PTRACE_TRACE_ME and so things go downhill
very rapidly after that.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7184

17 years agoWhen doing ptrace on amd64-linux, provide values which don't fail the
Julian Seward [Mon, 19 Nov 2007 00:58:18 +0000 (00:58 +0000)] 
When doing ptrace on amd64-linux, provide values which don't fail the
kernel's sanity checks for kernel >= 2.6.21.  Fixes #145622.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7183

17 years agoInitial glibc-2.7 suppressions for Helgrind. Also rearrange order of
Julian Seward [Sun, 18 Nov 2007 18:22:50 +0000 (18:22 +0000)] 
Initial glibc-2.7 suppressions for Helgrind.  Also rearrange order of
entries in file.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7182

17 years agoPreliminary support for Fedora 8, which includes initial support for
Julian Seward [Sun, 18 Nov 2007 14:40:02 +0000 (14:40 +0000)] 
Preliminary support for Fedora 8, which includes initial support for
glibc-2.7.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7181

17 years ago* more suppressions, for glibc-2.5 on ppc64
Julian Seward [Sun, 18 Nov 2007 01:40:14 +0000 (01:40 +0000)] 
* more suppressions, for glibc-2.5 on ppc64
* generalise the 2.4.so and 2.5.so patterns just to be on the safe side

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7180

17 years agoTry to fix, or at least avoid if possible, some arbitrary delays at
Julian Seward [Sun, 18 Nov 2007 01:16:52 +0000 (01:16 +0000)] 
Try to fix, or at least avoid if possible, some arbitrary delays at
thread creation time observed when running on POWER5 64-bit Linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7179

17 years agoAdd regtest for the --child-silent-after-fork added in r7177.
Julian Seward [Sat, 17 Nov 2007 23:00:47 +0000 (23:00 +0000)] 
Add regtest for the --child-silent-after-fork added in r7177.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7178

17 years agoAdd a new flag, --child-silent-after-fork=no|yes [no]. When enabled,
Julian Seward [Sat, 17 Nov 2007 22:29:25 +0000 (22:29 +0000)] 
Add a new flag, --child-silent-after-fork=no|yes [no].  When enabled,
causes child processes after fork to fall completely silent, which can
make the output a lot less confusing.  In addition it is pretty much
essential in XML output mode, so as to avoid mixing up any child XML
output with the parent's.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7177

17 years agoDon't pollute the XML output if the program terminates with a signal,
Julian Seward [Sat, 17 Nov 2007 21:31:48 +0000 (21:31 +0000)] 
Don't pollute the XML output if the program terminates with a signal,
and for a couple of other minor warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7176

17 years agoMake handling of setuid executables marginally more sensible, as
Julian Seward [Sat, 17 Nov 2007 21:11:57 +0000 (21:11 +0000)] 
Make handling of setuid executables marginally more sensible, as
suggested in #119404.

Prior to this commit, if the current traced process attempted to
execve a setuid executable, an error was always returned.  The revised
behaviour is:

If the current (traced) process attempts to execve a setuid
executable:

* If --trace-children=yes is not in effect, the execve is allowed.

* If --trace-children=yes is in effect, the execve is disallowed
  (as at present), but an error message is printed (unless in XML mode),
  so at least the execve does not fail silently any more.

As per discussion on #119404 we could probably do a lot better, but
these changes are at least simple, useful and uncontroversial.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7175

17 years agoMakefile.tool-inplace.am: correctly handle tool names with dashes in,
Julian Seward [Sat, 17 Nov 2007 18:35:54 +0000 (18:35 +0000)] 
Makefile.tool-inplace.am: correctly handle tool names with dashes in,
using same changes to magic sed scripts as were recently applied to
Makefile.install.am.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7174

17 years agoSpelling fixes and misc tidying for the manual. (Brian Gough)
Julian Seward [Sat, 17 Nov 2007 09:43:25 +0000 (09:43 +0000)] 
Spelling fixes and misc tidying for the manual.  (Brian Gough)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7173

17 years agoUpdate.
Julian Seward [Sat, 17 Nov 2007 02:46:42 +0000 (02:46 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7172

17 years agoStack registration stuff: don't dereference NULL pointers (Eric
Julian Seward [Sat, 17 Nov 2007 02:05:57 +0000 (02:05 +0000)] 
Stack registration stuff: don't dereference NULL pointers (Eric
Sharkey, #150044).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7171

17 years agoDon't segfault on syscall (SYS_io_destroy, 0). (Jakub Jelinek) Fixes
Julian Seward [Sat, 17 Nov 2007 01:49:06 +0000 (01:49 +0000)] 
Don't segfault on syscall (SYS_io_destroy, 0).  (Jakub Jelinek) Fixes
#147325.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7170

17 years agoAdd support for private futexes (whatever they might be). Patch from
Julian Seward [Sat, 17 Nov 2007 01:35:08 +0000 (01:35 +0000)] 
Add support for private futexes (whatever they might be).  Patch from
Eric Dumazet.  Fixes #146781.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7169

17 years agoDon't crap out when malloc_stats is called; instead just have a no-op
Julian Seward [Fri, 16 Nov 2007 22:29:27 +0000 (22:29 +0000)] 
Don't crap out when malloc_stats is called; instead just have a no-op
implementation of it.  Fixes #145559.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7168

17 years agoMake one redirect mandatory for ppc64-linux.
Julian Seward [Fri, 16 Nov 2007 19:39:49 +0000 (19:39 +0000)] 
Make one redirect mandatory for ppc64-linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7167

17 years agoMake one of the ppc32-linux initial redirects mandatory, and add
Julian Seward [Fri, 16 Nov 2007 18:45:40 +0000 (18:45 +0000)] 
Make one of the ppc32-linux initial redirects mandatory, and add
further comments.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7166

17 years agoIntroduce the concept of a 'mandatory redirection'. A redirection
Julian Seward [Fri, 16 Nov 2007 18:32:40 +0000 (18:32 +0000)] 
Introduce the concept of a 'mandatory redirection'.  A redirection
says (essentially) "I am the replacement for function foo in object w/
soname bar.so".  Now, if a redirection is mandatory, and bar.so is
loaded but foo is not found in its symbol table, then V aborts.

The initial motivation for this is making Memcheck work sanely on
glibc-2.6.X ppc32-linux.  We really need to intercept 'strlen' in
ld.so right from startup.  If ld.so does not have a visible 'strlen'
symbol, Memcheck generates an impossible number of errors resulting
from highly tuned strlen implementation in ld.so, and is completely
unusable -- the resulting undefinedness eventually seeps everywhere.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7165

17 years agoAvoid hundreds of warnings from -Winline on gcc-4.3:
Julian Seward [Fri, 16 Nov 2007 12:31:27 +0000 (12:31 +0000)] 
Avoid hundreds of warnings from -Winline on gcc-4.3:

In dump.c, gcc complains that 'param max-stack-frame-growth' would be
exceeded, so remove 'inline' spec.

All other warnings are of the form 'call is unlikely and code size
would grow'.  These aren't interesting.  Remove -Winline.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7164

17 years agoBack out bogus strict-aliasing hacks and use -fno-strict-aliasing by
Julian Seward [Fri, 16 Nov 2007 12:02:43 +0000 (12:02 +0000)] 
Back out bogus strict-aliasing hacks and use -fno-strict-aliasing by
default.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7163

17 years agoChange the baseline optimisation level from -O to -O2.
Julian Seward [Fri, 16 Nov 2007 10:05:47 +0000 (10:05 +0000)] 
Change the baseline optimisation level from -O to -O2.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7162

17 years agoUpdate.
Julian Seward [Fri, 16 Nov 2007 04:01:57 +0000 (04:01 +0000)] 
Update.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7161

17 years agoRename a couple more UInts which really should be SVals.
Julian Seward [Fri, 16 Nov 2007 03:55:48 +0000 (03:55 +0000)] 
Rename a couple more UInts which really should be SVals.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7160

17 years agoAdd a regression test for #152022.
Julian Seward [Thu, 15 Nov 2007 22:33:32 +0000 (22:33 +0000)] 
Add a regression test for #152022.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7159

17 years agoGive shadow values their own type (SVal) for the usual
Julian Seward [Wed, 14 Nov 2007 15:53:11 +0000 (15:53 +0000)] 
Give shadow values their own type (SVal) for the usual
good-software-engineering-practice reasons.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7158

17 years agoUpdate the list of unfixed bugs. Depressingly long.
Julian Seward [Tue, 13 Nov 2007 22:00:20 +0000 (22:00 +0000)] 
Update the list of unfixed bugs.  Depressingly long.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7156

17 years agoIntercept __memcpy_chk, which appears in glibc-2.6.1. Also fix some
Julian Seward [Tue, 13 Nov 2007 20:52:29 +0000 (20:52 +0000)] 
Intercept __memcpy_chk, which appears in glibc-2.6.1.  Also fix some
backslash uglyness.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7155

17 years agoEven more suppressions for glibc-2.6.
Julian Seward [Tue, 13 Nov 2007 20:51:26 +0000 (20:51 +0000)] 
Even more suppressions for glibc-2.6.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7154

17 years agoAnother attempt at fixing some Massif regtest failures.
Nicholas Nethercote [Mon, 12 Nov 2007 07:05:07 +0000 (07:05 +0000)] 
Another attempt at fixing some Massif regtest failures.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7153

17 years agoFix verbose output filtering for Massif.
Nicholas Nethercote [Mon, 12 Nov 2007 01:16:24 +0000 (01:16 +0000)] 
Fix verbose output filtering for Massif.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7152

17 years agoMore glibc-2.6 suppressions.
Julian Seward [Mon, 12 Nov 2007 01:01:08 +0000 (01:01 +0000)] 
More glibc-2.6 suppressions.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7151

17 years ago- Make other integer CLO macros more correct, as I did for VG_NUM_CLO in the
Nicholas Nethercote [Sun, 11 Nov 2007 22:15:58 +0000 (22:15 +0000)] 
- Make other integer CLO macros more correct, as I did for VG_NUM_CLO in the
  last commit.
- Add a VG_DBL_CLO for fractional arguments.
- Make Massif's --threshold and --peak-inaccuracy arguments fractional.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7150

17 years agoAdd four 'strtoll' variants, which are like 'atoll' but let you detect if
Nicholas Nethercote [Sun, 11 Nov 2007 21:58:21 +0000 (21:58 +0000)] 
Add four 'strtoll' variants, which are like 'atoll' but let you detect if
the string converted wasn't entirely numeric.  Using them for numeric
command-line options -- previously if you had a option "--foo=<n>", where
<n> is supposed to be an integer, then "--foo=blah" would be interpreted as
"--foo=0", because the "blah" would be converted to zero and the remaining
chars wouldn't be noticed.

Fixed an incorrect command-line option in two massif tests that this change
exposed.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7149

17 years agoAdd some seemingly unnecessary initialisations to shut GCC 4.0.2 up.
Nicholas Nethercote [Sun, 11 Nov 2007 21:12:28 +0000 (21:12 +0000)] 
Add some seemingly unnecessary initialisations to shut GCC 4.0.2 up.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7148

17 years agoIn vg_SP_update_pass (stack-pointer-change analysis code), correctly
Julian Seward [Sun, 11 Nov 2007 18:56:39 +0000 (18:56 +0000)] 
In vg_SP_update_pass (stack-pointer-change analysis code), correctly
handle partial updates of SP.  Tricky.  This fixes #152022.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7147

17 years agoAdd some Helgrind suppressions for LinuxThreads.
Julian Seward [Sun, 11 Nov 2007 06:13:01 +0000 (06:13 +0000)] 
Add some Helgrind suppressions for LinuxThreads.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7146

17 years agoAvoid compilation warnings from gcc-3.2 (about 'index' shadowing a built-in global)
Julian Seward [Sun, 11 Nov 2007 05:59:22 +0000 (05:59 +0000)] 
Avoid compilation warnings from gcc-3.2 (about 'index' shadowing a built-in global)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7145

17 years agoComment-only change.
Julian Seward [Sun, 11 Nov 2007 05:58:41 +0000 (05:58 +0000)] 
Comment-only change.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7144

17 years agoDon't hang on some old systems, since that makes the entire regtest
Julian Seward [Sun, 11 Nov 2007 05:52:36 +0000 (05:52 +0000)] 
Don't hang on some old systems, since that makes the entire regtest
system hang.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7143

17 years agoEnsure omega.h is copied into the installation tree at 'make install' time.
Julian Seward [Sun, 11 Nov 2007 01:20:14 +0000 (01:20 +0000)] 
Ensure omega.h is copied into the installation tree at 'make install' time.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7142

17 years agoFollowup to r7105: stop gcc complaining about violations of ANSI C
Julian Seward [Sat, 10 Nov 2007 22:50:13 +0000 (22:50 +0000)] 
Followup to r7105: stop gcc complaining about violations of ANSI C
aliasing rules by casting through (char*) as an intermediate type,
rather than through (void*).  This seems at least moderately
justifiable since the ANSI C standard explicitly says that any object
may be accessed through a char pointer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7141

17 years agoFix bogus grammar in r7139.
Julian Seward [Sat, 10 Nov 2007 22:19:42 +0000 (22:19 +0000)] 
Fix bogus grammar in r7139.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7140

17 years agoClarify reason for existence of track_pre_thread_ll_create/_exit.
Julian Seward [Sat, 10 Nov 2007 22:13:03 +0000 (22:13 +0000)] 
Clarify reason for existence of track_pre_thread_ll_create/_exit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7139