]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
22 years agoresync with reality
Julian Seward [Tue, 17 Sep 2002 14:11:35 +0000 (14:11 +0000)] 
resync with reality

MERGE TO ERASER (will need updating too)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1010

22 years agoImplement __NR_setresgid (170).
Julian Seward [Tue, 17 Sep 2002 14:03:21 +0000 (14:03 +0000)] 
Implement __NR_setresgid (170).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@1009

22 years agomerge revs
Julian Seward [Sun, 15 Sep 2002 11:50:37 +0000 (11:50 +0000)] 
merge revs
   vg_scheduler.c 1.79.4.29
   vg_libpthread. c1.90.4.11

Reduce polling delays in poll(), select(), pause() and in the scheduler
idle loop.  This reduces some strange non-CPU-bound delays under certain
circumstances.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@973

22 years agopartially merge rev 1.1.2.19:
Julian Seward [Sun, 15 Sep 2002 10:20:22 +0000 (10:20 +0000)] 
partially merge rev 1.1.2.19:

Merge AddrErrs more aggressively.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@972

22 years agomerge rev 1.3.8.13:
Julian Seward [Sun, 15 Sep 2002 10:14:10 +0000 (10:14 +0000)] 
merge rev 1.3.8.13:

VG_(eq_ExeContext): don't dereference null e1 or e2.  Seems to fix
some segfaults pertaining to address errors etc.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@971

22 years agoFix bug in 108-byte load/stores.
Julian Seward [Sat, 14 Sep 2002 00:05:23 +0000 (00:05 +0000)] 
Fix bug in 108-byte load/stores.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@959

22 years agoWhen the client tries to __NR_close() our logfile, claim the close
Julian Seward [Fri, 13 Sep 2002 15:38:32 +0000 (15:38 +0000)] 
When the client tries to __NR_close() our logfile, claim the close
succeeded, which is a lie since we just ignore it -- otherwise the
log disappears at that point.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@949

22 years agoAdded Ram Bhamidipaty's wibble patch.
Nicholas Nethercote [Thu, 12 Sep 2002 10:47:07 +0000 (10:47 +0000)] 
Added Ram Bhamidipaty's wibble patch.

Merge to ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@941

22 years agoFixed two CPUID auto-cache detection problems reported by Guillaume Laurent:
Nicholas Nethercote [Wed, 11 Sep 2002 17:13:28 +0000 (17:13 +0000)] 
Fixed two CPUID auto-cache detection problems reported by Guillaume Laurent:

  - Some Intel cases were missing, giving spurious warnings such as:

    --18114-- warning: Unknown Intel cache config value (0x50), ignoring

  - The 0x40 case was wrong... its meaning depends on whether you have a P6
    core ("no L2 cache present") or a P4 core ("no L3 cache present").
    Damn wretched Intel CPUID format.

    I was unwittingly assuming P6 cores which meant that P4 cores reporting
    no L3 got this bogus warning:

    --18114-- warning: L2 cache not installed, ignore L2 results.

    So I now don't do anything for that case, and detect a missing L2 cache
    by checking if its set by any of the other entries.

Turns out neither was affecting the results, but better to get rid of them
anyway.

Guillaume tested the changes for me so hopefully they work.

MeRGe to ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@936

22 years agoAdded cachegrind and vg_annotate to the spec file, as suggested by
Frédéric Gobry [Fri, 6 Sep 2002 12:46:10 +0000 (12:46 +0000)] 
Added cachegrind and vg_annotate to the spec file, as suggested by
Rafael Garcia-Suarez <rgarciasuarez@free.fr>.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@909

22 years agoForgot to mention an important fix.
Julian Seward [Fri, 6 Sep 2002 00:00:05 +0000 (00:00 +0000)] 
Forgot to mention an important fix.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@905

22 years agoUpdate for 1.0.2.
Julian Seward [Thu, 5 Sep 2002 23:17:38 +0000 (23:17 +0000)] 
Update for 1.0.2.

Unsure if this should somehow be merged to ERASER or not.  Maybe.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@904

22 years ago--> 1.0.2
Julian Seward [Thu, 5 Sep 2002 22:55:09 +0000 (22:55 +0000)] 
--> 1.0.2

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@903

22 years agoInclude %defattr(-,root,root) in valgrind.spec.in so that the
Julian Seward [Thu, 5 Sep 2002 22:14:47 +0000 (22:14 +0000)] 
Include %defattr(-,root,root) in valgrind.spec.in so that the
ownership of the files is correct even if a non-root user builds the
RPM package.  (Matthias Andree <matthias.andree@stud.uni-dortmund.de>)

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@902

22 years agoImplement TIOCLINUX (from Pavel Roskin <proski@gnu.org>).
Julian Seward [Thu, 5 Sep 2002 20:33:26 +0000 (20:33 +0000)] 
Implement TIOCLINUX (from Pavel Roskin <proski@gnu.org>).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@901

22 years agovalgrind's strcmp() implementation (to clients) treats char as signed
Julian Seward [Thu, 5 Sep 2002 20:02:40 +0000 (20:02 +0000)] 
valgrind's strcmp() implementation (to clients) treats char as signed
whereas the libc implementation it replaces treats char as unsigned.
Fix!  God knows how anything much ever worked before now.

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@900

22 years agoUse definition of enum __libc_tsd_key_t from glibc 2.2.4 rather than
Julian Seward [Thu, 5 Sep 2002 19:47:46 +0000 (19:47 +0000)] 
Use definition of  enum __libc_tsd_key_t  from glibc 2.2.4 rather than
2.2.2.  This gets rid of the following message:

valgrind's libpthread.so: libc_internal_tsd_get: dubious key 2

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@899

22 years agoImplement primary opcode 0x10 (ADC Gb,Eb).
Julian Seward [Thu, 5 Sep 2002 19:31:23 +0000 (19:31 +0000)] 
Implement primary opcode 0x10 (ADC Gb,Eb).

MERGE TO ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@898

22 years agoAvoiding division by zero errors that were truncating results for OpenOffice
Nicholas Nethercote [Tue, 3 Sep 2002 15:09:06 +0000 (15:09 +0000)] 
Avoiding division by zero errors that were truncating results for OpenOffice
with --trace-children=yes.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@864

22 years agoAdded note about Cachegrind's hack treatment of 28/108B FPU instrs to
Nicholas Nethercote [Tue, 3 Sep 2002 14:09:19 +0000 (14:09 +0000)] 
Added note about Cachegrind's hack treatment of 28/108B FPU instrs to
shortcomings list in manual.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@862

22 years agoIn order to handle FPU instructions with data size of 28 and 108 bytes,
Nicholas Nethercote [Tue, 3 Sep 2002 12:26:09 +0000 (12:26 +0000)] 
In order to handle FPU instructions with data size of 28 and 108 bytes,
implemented a hack:  such instructions have their data_size reduced to 16
bytes for cache simulation purposes, to avoid assertion failures coming from
transfers that involve more than two cache lines.  Should occur rarely in
practice.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@861

22 years agoMake file_err() not abort the current process; recover and keep
Julian Seward [Tue, 3 Sep 2002 12:03:23 +0000 (12:03 +0000)] 
Make file_err() not abort the current process; recover and keep
going instead.  This fixes a problem running OpenOffice on cachegrind.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@860

22 years agoFixed a big problem with Cachegrind. I was assuming that any instruction that
Nicholas Nethercote [Mon, 2 Sep 2002 16:08:14 +0000 (16:08 +0000)] 
Fixed a big problem with Cachegrind.  I was assuming that any instruction that
both read and wrote memory must be doing it to the same address, and was thus
modifying it (eg. 'incl').  But some instructions can read and write different
addresses (eg. pushl %eax, (%ebx)).

Also, it wasn't handling 'rep'-prefixed instructions correctly.  The way they
were instrumented meant that an I-cache access was simulated for every
repetition they do, which is most probably not accurate;  only one I-cache
access should be simulated.

Fixed both of these.  Some largeish changes required, unfortunately:

  - Added 'iddCC' type, the cost-centre for instructions that read and write
    different addresses.   Correspondingly added READ_WRITE_CC as a CC_type.

  - Have to do more correspondingly more complicated things to detect what
    CC_type an x86 instruction is.

  - To handle 'rep' prefixes, now do the I-cache access for such instructions
    before the JIFZ UInstr, so only 1 I-cache access is simulated.  D-cache
    accesses are still done in the same place, so they occur once per
    repetition.

  - Changed the cache simulation log functions;  gone from two to five, we now
    have:

        VG_(log_1I_0D_cache_access)
        VG_(log_0I_1D_cache_access)
        VG_(log_1I_1D_cache_access)
        VG_(log_0I_2D_cache_access)
        VG_(log_1I_2D_cache_access)

    This means fewer spill slots (only 2, I think) have the compact call form,
    which is unfortunate.  Although it's not a problem in the ERASER branch in
    which the helpers aren't hard-wired the way they are in this branch.

Hopefully I've got it right, but I bet I haven't.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@856

22 years agoFixed this bug:
Nicholas Nethercote [Fri, 30 Aug 2002 11:05:33 +0000 (11:05 +0000)] 
Fixed this bug:

  valgrind: vg_cachesim.c:389 (get_BBCC): Assertion `((Bool)0) == remove' failed.

Problem was that when an exe segment was unloaded, cachesim_notify_munmap() was
being called after symbols were unloaded.  But it needs the symbols to do the
lookup required to remove the BBCCs.  It was only working some of the time
for exe segments that didn't have any symbols(!)

Fix:  now invalidate translations first, unload symbols second.  This required
adding VG_(is_munmap_exe)() to determine if an unloaded segment is executable.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@839

22 years agoDon't compare actual addresses for FreeErr and FreeMismatchErr. Doing
Julian Seward [Mon, 26 Aug 2002 10:51:01 +0000 (10:51 +0000)] 
Don't compare actual addresses for FreeErr and FreeMismatchErr.  Doing
so generates far too many duplicate errors in some circumstances.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@638

22 years agowibble
Julian Seward [Sun, 25 Aug 2002 20:58:37 +0000 (20:58 +0000)] 
wibble

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@636

22 years agoAdd CURRENT_BUG_STATUS, detailing the 1.0.0 -> 1.0.1 changes.
Julian Seward [Sun, 25 Aug 2002 20:55:25 +0000 (20:55 +0000)] 
Add CURRENT_BUG_STATUS, detailing the 1.0.0 -> 1.0.1 changes.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@635

22 years agoDoc wibble; change $VALGRIND to $VALGRIND_OPTS.
Julian Seward [Sun, 25 Aug 2002 20:10:12 +0000 (20:10 +0000)] 
Doc wibble; change $VALGRIND to $VALGRIND_OPTS.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@634

22 years ago1. The license is actually in the file COPYING, not LICENSE as all
Julian Seward [Sun, 25 Aug 2002 20:07:16 +0000 (20:07 +0000)] 
1.  The license is actually in the file COPYING, not LICENSE as all
    the sources claim.  Automake seems to have some hard-wired notion
    that the license file must be called COPYING, so we have to
    rename in all the source files :-(

2.  Change the license for valgrind.h ONLY to a BSD-style license
    so people can include it in their code.  The entire rest of
    the system remains under the GPL.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@633

22 years ago---> 1.0.1
Julian Seward [Sat, 24 Aug 2002 19:12:07 +0000 (19:12 +0000)] 
---> 1.0.1

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@632

22 years agoPrint a more helpful set of messages when we've run out of memory.
Julian Seward [Sat, 24 Aug 2002 09:47:18 +0000 (09:47 +0000)] 
Print a more helpful set of messages when we've run out of memory.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@631

22 years agoMerge in Nick's final implementation of VG_(strncpy), from ERASER branch.
Julian Seward [Sat, 24 Aug 2002 09:29:03 +0000 (09:29 +0000)] 
Merge in Nick's final implementation of VG_(strncpy), from ERASER branch.

MERGE TO (head, if it isn't ERASER)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@630

22 years agoDo ensure_valgrind() inside __my_pthread_testcancel(). This avoids
Julian Seward [Sat, 24 Aug 2002 09:22:46 +0000 (09:22 +0000)] 
Do ensure_valgrind() inside __my_pthread_testcancel().  This avoids
   vg_libpthread.c:1056 (__my_pthread_testcancel):
   Assertion `res == 0' failed.
when running profiled, threaded programs.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@629

22 years agoGive a binding for vfork() -- just behave like fork(). I hope this
Julian Seward [Sat, 24 Aug 2002 09:19:33 +0000 (09:19 +0000)] 
Give a binding for vfork() -- just behave like fork().  I hope this
is OK.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@628

22 years agoFinish off half-done job for allowing a 4th initial stack value
Julian Seward [Thu, 22 Aug 2002 17:15:15 +0000 (17:15 +0000)] 
Finish off half-done job for allowing a 4th initial stack value
(0xE0000000 - small offset)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@621

22 years agoFix a couple of doc bugs.
Julian Seward [Wed, 21 Aug 2002 23:05:49 +0000 (23:05 +0000)] 
Fix a couple of doc bugs.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@615

22 years agoHandle startup stacks starting at 0xE0000000.
Julian Seward [Wed, 21 Aug 2002 22:41:35 +0000 (22:41 +0000)] 
Handle startup stacks starting at 0xE0000000.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@614

22 years agoFix for the following:
Julian Seward [Wed, 21 Aug 2002 22:29:14 +0000 (22:29 +0000)] 
Fix for the following:
vg_mylibc:VG_(strncpy)() behaves dubiously -- it can write a
'\0' past the end of the given array.

Possibly accounting for some strange behaviour in the g++3 demangler?

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@613

22 years agoFix a bunch of bogus boundary checks of the form
Julian Seward [Tue, 20 Aug 2002 20:49:10 +0000 (20:49 +0000)] 
Fix a bunch of bogus boundary checks of the form
   if (n < lower_limit && n > upper_limit) {
      /* error case */
   }

The && should really be ||s.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@609

22 years agoImplement __NR_vhangup (syscall 111).
Julian Seward [Tue, 20 Aug 2002 18:29:39 +0000 (18:29 +0000)] 
Implement __NR_vhangup (syscall 111).

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@608

22 years agoMerge rev 1.16.4.8 from ERASER into VALGRIND_1_0_BRANCH:
Julian Seward [Tue, 20 Aug 2002 18:18:54 +0000 (18:18 +0000)] 
Merge rev 1.16.4.8 from ERASER into VALGRIND_1_0_BRANCH:

Added Cyrille Chepelov's patch for identifying cache params of Duron stepping
A0 which has a bug that causes CPUID to misreport L2 cache size.  Untested, I
can only assume it works as I don't have such a machine to try with.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@607

22 years agoImplement __NR_iopl (change I/O privilege level). I suspect this is
Julian Seward [Tue, 20 Aug 2002 18:09:15 +0000 (18:09 +0000)] 
Implement __NR_iopl (change I/O privilege level).  I suspect this is
pretty useless unless the x86 IN/OUT insns are also implemented, but hey.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@606

22 years agoImplement missing FPU ops:
Julian Seward [Mon, 19 Aug 2002 09:13:19 +0000 (09:13 +0000)] 
Implement missing FPU ops:
  FSTSW  m32
  FSAVE  m32
  FRSTOR m32

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@597

22 years agoImplement primary opcode 0x15 (ADC Iv, eAX)
Julian Seward [Mon, 19 Aug 2002 08:37:59 +0000 (08:37 +0000)] 
Implement primary opcode 0x15 (ADC Iv, eAX)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@596

22 years agoHandle 0xD2 primary opcode (shift-Grp2 Eb, CL)
Julian Seward [Mon, 19 Aug 2002 08:21:09 +0000 (08:21 +0000)] 
Handle 0xD2 primary opcode (shift-Grp2 Eb, CL)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@595

22 years agoFix stupid bug arising as a result of the call to __libc_freeres() at the
Julian Seward [Fri, 16 Aug 2002 18:51:49 +0000 (18:51 +0000)] 
Fix stupid bug arising as a result of the call to __libc_freeres() at the
end, in which the return value of the process was not correctly propagated.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@594

22 years agoImplement pthread_attr_getdetachstate.
Julian Seward [Fri, 16 Aug 2002 16:50:47 +0000 (16:50 +0000)] 
Implement pthread_attr_getdetachstate.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@593

23 years agobackport -r1.8 patch
Dirk Mueller [Wed, 7 Aug 2002 00:13:10 +0000 (00:13 +0000)] 
backport -r1.8 patch

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@555

23 years agoMerge rev 1.91:
Julian Seward [Tue, 6 Aug 2002 09:06:18 +0000 (09:06 +0000)] 
Merge rev 1.91:

Simulate resolver-specific state as per the real libpthread.so, wherein
the root thread (tid 1) always uses _res as exported from libc.so as its
state.  This fixes the name lookup problems in KAtlantik.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@552

23 years agoThis commit was manufactured by cvs2svn to create branch
no author [Fri, 26 Jul 2002 11:34:39 +0000 (11:34 +0000)] 
This commit was manufactured by cvs2svn to create branch
'VALGRIND_1_0_BRANCH'.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@543

23 years agoWibbles for 1.0.0.
Julian Seward [Fri, 26 Jul 2002 11:34:39 +0000 (11:34 +0000)] 
Wibbles for 1.0.0.

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

23 years agoOnly run __libc_freeres() when valgrinding. It may do invalid free()s
Julian Seward [Fri, 26 Jul 2002 10:52:48 +0000 (10:52 +0000)] 
Only run __libc_freeres() when valgrinding.  It may do invalid free()s
which cause the low-level memory manager to crash.  When valgrinding
that's all protected, but not when cachegrinding etc.

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

23 years agoFinal caveats for 1.0.0.
Julian Seward [Thu, 25 Jul 2002 22:45:35 +0000 (22:45 +0000)] 
Final caveats for 1.0.0.

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

23 years ago--> 1.0.0 (yay!)
Julian Seward [Thu, 25 Jul 2002 22:42:06 +0000 (22:42 +0000)] 
--> 1.0.0 (yay!)

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

23 years agoPrint more helpful message on JIT failure to handle insns starting with 0x0F.
Julian Seward [Thu, 25 Jul 2002 22:41:40 +0000 (22:41 +0000)] 
Print more helpful message on JIT failure to handle insns starting with 0x0F.

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

23 years agoSuppressions for R H Limbo (7.3.92)
Julian Seward [Thu, 25 Jul 2002 02:21:53 +0000 (02:21 +0000)] 
Suppressions for R H Limbo (7.3.92)

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

23 years agoImplement __NR_getxattr.
Julian Seward [Thu, 25 Jul 2002 01:41:01 +0000 (01:41 +0000)] 
Implement __NR_getxattr.

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

23 years agoTrack ELF frame changes as appearing in Red Hat Limbo (7.3.92).
Julian Seward [Thu, 25 Jul 2002 00:49:51 +0000 (00:49 +0000)] 
Track ELF frame changes as appearing in Red Hat Limbo (7.3.92).

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

23 years agoCompile fixes for Red Hat Limbo (7.3.92).
Julian Seward [Wed, 24 Jul 2002 09:41:52 +0000 (09:41 +0000)] 
Compile fixes for Red Hat Limbo (7.3.92).

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

23 years agoSome jokers apparently like setting the CPU's AC (Alignment Check) flag
Julian Seward [Wed, 24 Jul 2002 09:36:36 +0000 (09:36 +0000)] 
Some jokers apparently like setting the CPU's AC (Alignment Check) flag
for god-knows-why reasons.  This causes VG_{READ,WRITE}_MISALIGNED_WORD
to give bus errors.  Redefine them to do the obvious byte-by-byte loads/
stores.  Fortunately they are not performance critical.

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

23 years agoAssume PUTF modifies %EFLAGS in a completely arbitrary manner, and so
Julian Seward [Wed, 24 Jul 2002 09:33:52 +0000 (09:33 +0000)] 
Assume PUTF modifies %EFLAGS in a completely arbitrary manner, and so
be completely pessimistic if it is encountered during the redundant-flag-
save/restore-elimination pass.  This fixes the following mysterious
failure:

 insane instruction
           27: PUTFL     %ecx

 valgrind: vg_from_ucode.c:2600 (vgPlain_emit_code): Assertion `sane' failed.

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

23 years agoSupport for x86 insn fldenv.
Julian Seward [Tue, 23 Jul 2002 18:48:39 +0000 (18:48 +0000)] 
Support for x86 insn fldenv.

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

23 years agoSkip directly to 1.0pre6 to avoid confusing me.
Julian Seward [Tue, 16 Jul 2002 02:13:30 +0000 (02:13 +0000)] 
Skip directly to 1.0pre6 to avoid confusing me.

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

23 years agoAdd a suppression to deal with calling __libc_freeres().
Julian Seward [Tue, 16 Jul 2002 02:11:51 +0000 (02:11 +0000)] 
Add a suppression to deal with calling __libc_freeres().

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

23 years agoDocument probs with gcc-3.1 false positives.
Julian Seward [Tue, 16 Jul 2002 01:49:22 +0000 (01:49 +0000)] 
Document probs with gcc-3.1 false positives.

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

23 years agoAt request of Ulrich Drepper, call __libc_freeres() after final __NR_exit
Julian Seward [Tue, 16 Jul 2002 01:43:15 +0000 (01:43 +0000)] 
At request of Ulrich Drepper, call __libc_freeres() after final __NR_exit
so as to free memory allocated by glibc.  This reduces the leaks reported
in glibc, but causes a stack of read/write-after-free errors which have
to be suppressed :-(

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

23 years agopossible fix for valgrinding problem on longer running kernels (2.4.18-SuSE, update...
Dirk Mueller [Mon, 15 Jul 2002 19:39:51 +0000 (19:39 +0000)] 
possible fix for valgrinding problem on longer running kernels (2.4.18-SuSE, update 17 days)

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

23 years agoSuppress errors in __rawmemchr when called from anywhere at all.
Julian Seward [Sun, 14 Jul 2002 13:04:38 +0000 (13:04 +0000)] 
Suppress errors in __rawmemchr when called from anywhere at all.

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

23 years agoMention kernel probs with R H "Limbo" public beta (hacked 2.4.18).
Julian Seward [Sun, 14 Jul 2002 10:45:21 +0000 (10:45 +0000)] 
Mention kernel probs with R H "Limbo" public beta (hacked 2.4.18).

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

23 years agoDocument some limitations.
Julian Seward [Sat, 13 Jul 2002 14:09:35 +0000 (14:09 +0000)] 
Document some limitations.

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

23 years ago---> 1.0pre5
Julian Seward [Sat, 13 Jul 2002 13:45:28 +0000 (13:45 +0000)] 
---> 1.0pre5

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

23 years agoget_caches(): ensure caches are initialised on targets where
Julian Seward [Sat, 13 Jul 2002 13:31:20 +0000 (13:31 +0000)] 
get_caches(): ensure caches are initialised on targets where
get_caches_from_CPUID fails.

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

23 years agoCopy pthread_rwlockattr_setpshared verbatim from LinuxThreads.
Julian Seward [Sat, 13 Jul 2002 12:58:44 +0000 (12:58 +0000)] 
Copy pthread_rwlockattr_setpshared verbatim from LinuxThreads.

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

23 years agoAdd __NR_quotactl.
Julian Seward [Sat, 13 Jul 2002 12:58:08 +0000 (12:58 +0000)] 
Add __NR_quotactl.
Allow NULL 3rd arg in __NR_sendfile.
("Didier")

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

23 years agoInclude valgrind.spec and valgrind.spec.in in tarballs.
Julian Seward [Sat, 13 Jul 2002 12:37:28 +0000 (12:37 +0000)] 
Include valgrind.spec and valgrind.spec.in in tarballs.
Also add a line to the description in the .spec.in.
(Shlomi Fish)

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

23 years ago(Tim Rowley, verbatim)
Julian Seward [Sat, 13 Jul 2002 12:32:16 +0000 (12:32 +0000)] 
(Tim Rowley, verbatim)

The Intel p4 manual suggests inserting a pause instruction in
spin-wait loops as a hint to what the code is doing.  In other
respects it acts just like a nop.  Pause (0xF3 0x90) currently
causes valgrind to panic.  The patch below keeps things running.

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

23 years agoImplement fnstenv (store FPU environment, but not regs AIUI)
Julian Seward [Sat, 13 Jul 2002 12:27:12 +0000 (12:27 +0000)] 
Implement fnstenv (store FPU environment, but not regs AIUI)
(Jeff Epler)

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

23 years agoPrint additional useful information immediately prior to
Julian Seward [Sat, 13 Jul 2002 12:20:35 +0000 (12:20 +0000)] 
Print additional useful information immediately prior to
   VG_(panic)("VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) failed\n");

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

23 years agovg_signals.c: vg_oursignalhandler(): don't longjmp() on fatal signal if
Julian Seward [Sat, 13 Jul 2002 12:12:56 +0000 (12:12 +0000)] 
vg_signals.c: vg_oursignalhandler(): don't longjmp() on fatal signal if
the scheduler's jmp_buf is not valid.  This might avoid at least some
of the following:
   vg_scheduler.c:479 (run_thread_for_a_while): Assertion `trc == 0'
   failed.

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

23 years agoMake sigsuspend() work well enough to keep zsh hackers happy.
Julian Seward [Sat, 13 Jul 2002 11:05:45 +0000 (11:05 +0000)] 
Make sigsuspend() work well enough to keep zsh hackers happy.

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

23 years agoMake VG_USERREQ__PTHREAD_YIELD actually yield the thread. This used
Julian Seward [Fri, 12 Jul 2002 22:30:51 +0000 (22:30 +0000)] 
Make VG_USERREQ__PTHREAD_YIELD actually yield the thread.  This used
to work but was broken in a subtle way by the cleanup of rev 1.70.

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

23 years agoCheck for signals to be delivered after every syscall. This avoids
Julian Seward [Fri, 12 Jul 2002 01:23:03 +0000 (01:23 +0000)] 
Check for signals to be delivered after every syscall.  This avoids
some obscure deadlock cases.  (Neil Conway).

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

23 years agoAdd comments about syscall wrapper problems.
Julian Seward [Mon, 1 Jul 2002 10:59:17 +0000 (10:59 +0000)] 
Add comments about syscall wrapper problems.

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

23 years ago---> 1.0pre4
Julian Seward [Mon, 1 Jul 2002 10:50:44 +0000 (10:50 +0000)] 
---> 1.0pre4

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

23 years agoAdd helpful info for package builders.
Julian Seward [Mon, 1 Jul 2002 08:46:27 +0000 (08:46 +0000)] 
Add helpful info for package builders.

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

23 years agoFinal documentation updates for 1.0.
Julian Seward [Mon, 1 Jul 2002 08:30:05 +0000 (08:30 +0000)] 
Final documentation updates for 1.0.

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

23 years agoImplement --weird-hacks=truncate-writes to limit the size of write syscalls
Julian Seward [Sun, 30 Jun 2002 12:44:54 +0000 (12:44 +0000)] 
Implement --weird-hacks=truncate-writes to limit the size of write syscalls
to 4096, to possibly avoid deadlocks under very rare circumstances.
Is fully documented and commented.

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

23 years agocleanup_after_thread_exited: also clean up the waiting_fds table on thread
Julian Seward [Sun, 30 Jun 2002 10:57:30 +0000 (10:57 +0000)] 
cleanup_after_thread_exited: also clean up the waiting_fds table on thread
disappearance.  This fixes an assertion failure to do with thread nukage
on fork():
   vg_scheduler.c:936 (poll_for_ready_fds):
   Assertion `vgPlain_is_valid_tid(tid)' failed.

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

23 years agoMake --stop-after= work again.
Julian Seward [Fri, 28 Jun 2002 02:08:28 +0000 (02:08 +0000)] 
Make --stop-after= work again.

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

23 years ago---> 1.0pre3
Julian Seward [Fri, 28 Jun 2002 01:46:56 +0000 (01:46 +0000)] 
---> 1.0pre3

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

23 years agoFinally get around to implementing pthread_atfork.
Julian Seward [Fri, 28 Jun 2002 01:46:26 +0000 (01:46 +0000)] 
Finally get around to implementing pthread_atfork.

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

23 years agoRemoved line about Cachegrind being experimental.
Nicholas Nethercote [Thu, 27 Jun 2002 15:45:09 +0000 (15:45 +0000)] 
Removed line about Cachegrind being experimental.

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

23 years agoPartial implementation of mallinfo() (Ilpo Ruotsalainen)
Julian Seward [Wed, 26 Jun 2002 17:08:01 +0000 (17:08 +0000)] 
Partial implementation of mallinfo()  (Ilpo Ruotsalainen)

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

23 years agoparse_cache_opt: Move free() of opt past last use.
Julian Seward [Wed, 26 Jun 2002 17:02:57 +0000 (17:02 +0000)] 
parse_cache_opt: Move free() of opt past last use.

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

23 years agoForgot to VG_(free) a VG_(strdup)'d string.
Nicholas Nethercote [Wed, 26 Jun 2002 10:06:26 +0000 (10:06 +0000)] 
Forgot to VG_(free) a VG_(strdup)'d string.

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

23 years agoMake __pthread_clock_gettime and __pthread_clock_settime appear for
Julian Seward [Wed, 26 Jun 2002 00:50:36 +0000 (00:50 +0000)] 
Make __pthread_clock_gettime and __pthread_clock_settime appear for
GLIBC_2.2.3.  I dunno what this means, if anything, but someone
reports it helps.

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

23 years agoselect() and poll(): change order of events in main timing loop
Julian Seward [Wed, 26 Jun 2002 00:47:17 +0000 (00:47 +0000)] 
select() and poll(): change order of events in main timing loop
so that very short selects/polls don't just cause a timeout with
no real test.

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

23 years agowait_for_fd_to_be_readable_or_erring: return immediately if fd is
Julian Seward [Wed, 26 Jun 2002 00:13:36 +0000 (00:13 +0000)] 
wait_for_fd_to_be_readable_or_erring: return immediately if fd is
nonblocking anyway.

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

23 years agovg_push_signal_frame: make the siginfo and ucontext fields readable too.
Julian Seward [Tue, 25 Jun 2002 23:18:16 +0000 (23:18 +0000)] 
vg_push_signal_frame: make the siginfo and ucontext fields readable too.

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

23 years agoA libXpm suppression.
Julian Seward [Thu, 20 Jun 2002 10:39:34 +0000 (10:39 +0000)] 
A libXpm suppression.

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