Commit Graph

721 Commits

Author SHA1 Message Date
Julian Seward
c3f41bc3ed Update w/ recent bug fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12740
2012-07-13 14:04:03 +00:00
Tom Hughes
a3c57c513c Update bug status.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12732
2012-07-11 15:42:25 +00:00
Julian Seward
11f12ec05c Note 286917 fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12729
2012-07-11 14:28:13 +00:00
Julian Seward
c37b405fc3 Note 290006 fixage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12725
2012-07-11 00:06:35 +00:00
Philippe Waroquiers
2b25e3f059 remove 302800 (bug invalid and/or covered by --soname-synonyms)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12724
2012-07-07 15:53:26 +00:00
Philippe Waroquiers
a059322c40 remove 301204 (already in NEWS fixed section)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12723
2012-07-07 15:44:06 +00:00
Philippe Waroquiers
74bc30c150 295590 Helgrind: Assertion 'cvi->nWaiters > 0' failed when cond var being waited upon destroyed
* when cond var is destroyed, in the PRE, report an error if nwaiters > 0.
* when cond_wait succeeds, get the cond var but do not create one in helgrind
  (it must exist if cond_wait was done).
  Report an error if cond not found (assuming this is caused by a destroy
  done while the thread was cond_wait-ing).
* added a test


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12721
2012-07-06 23:38:24 +00:00
Philippe Waroquiers
4160fb96ff fix 302918 Enable testing of the vmaddfp and vnsubfp instructions in the testsuite
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12718
2012-07-06 21:42:14 +00:00
Philippe Waroquiers
cb808f8353 Improve behaviour of mempool redzone checking if user does not follow the manual (297911)
User is supposed to mark the superblock(s) of a mempool as noaccess.
As Valgrind objective is to find bugs for users which are doing bugs, let's even
find (some) bugs if the user has a bug in the bug detection code.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12714
2012-07-05 21:11:12 +00:00
Julian Seward
fd343fe287 Finish initial triaging pass.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12712
2012-07-05 13:26:07 +00:00
Philippe Waroquiers
93f019ff73 fix 302709 valgrind for ARM needs extra tls support for android emulator
Allow Valgrind to run on android emulator.
+ added README.android_emulator giving some details about versions used.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12710
2012-07-04 21:59:29 +00:00
Julian Seward
8837568969 Commit results of triagery so far.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12709
2012-07-04 20:30:47 +00:00
Florian Krohm
189424e55d Final round of moving fixed bugs from 3_7_BUGSTATUS to NEWS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12699
2012-07-02 15:03:29 +00:00
Florian Krohm
b7cd4ac062 Move more fixed bugs from 3_7_BUGSTATUS to NEWS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12698
2012-07-02 12:14:00 +00:00
Florian Krohm
6ca1828465 Removed some bugs that were marked invalid. I did not move them to NEWS
because I don't think we want to report those.
Moved some more from 3_7_BUGSTATUS to NEWS because they are marked as FIXED
in Bugzilla.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12697
2012-07-01 21:55:13 +00:00
Florian Krohm
ba4f93d1e4 Remove some more entries from 3_7_BUGSTATUS that were already in NEWS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12696
2012-07-01 21:24:53 +00:00
Philippe Waroquiers
4cefae5c87 move the mips port bug entry from 3_7_BUGSTATUS.txt to NEWS
Note: a paragraph in PLATFORM CHANGES section of NEWS indicating
the addition of the MIPS port (and some details) would be good
(as this is a major change).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12695
2012-07-01 20:35:26 +00:00
Philippe Waroquiers
0dd13768f3 Move one more fixed bug from 3_7_BUGSTATUS.txt to NEWS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12694
2012-07-01 20:31:43 +00:00
Philippe Waroquiers
c8d59b78f6 Move some fixed bugs from 3_7_BUGSTATUS.txt to NEWS.
Removed some bugs from 3_7_BUGSTATUS.txt that were already in NEWS.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12693
2012-07-01 20:06:04 +00:00
Julian Seward
1c0ac5bc3a Update with header lines for all reported bugs so far.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12692
2012-06-30 20:38:44 +00:00
Julian Seward
c7dcb22a6b Add a text file giving a top-level summary of all bugs reported since
3.7.0 was released, that have not been fixed.  (Old habits die hard!)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12689
2012-06-30 16:51:00 +00:00
Florian Krohm
5dec28d4af Increase allowed size of a back-trace to 500 frames.
This limit is large enough for all practical purposes. It exists
only to sanity check the value specified with --num-callers.
Be frugal in record_ExeContext_wrk and only allocate on the stack 
as many frames as needed. 
Testcase included.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12685
2012-06-29 21:20:52 +00:00
Petar Jovanovic
8dabfc8bef Adding README.mips to distribution documents.
Small change to dist-docs.xml to include README.mips.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12680
2012-06-28 09:58:05 +00:00
Julian Seward
3ce148100f Update with recent notes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12635
2012-06-13 11:12:49 +00:00
Florian Krohm
932ea4ad94 Support "compare double ansd swap" insns: CDS, CDSY, and CDSG
valgrind bits for fixing bugzilla #291865. See also VEX r2372.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12615
2012-06-06 02:27:51 +00:00
Julian Seward
17a6f15959 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12612
2012-06-05 00:32:51 +00:00
Julian Seward
e8788cd52e Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12608
2012-06-03 23:14:23 +00:00
Philippe Waroquiers
0856074e8f Document the register(s) used for thread pointer
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12592
2012-05-28 16:55:35 +00:00
Philippe Waroquiers
4d7d9506ab Improve cross referencing of gdbserver monitor commands
Based on a suggestion and patch from Marc Bessieres 
(marc.bessieres@gmail.com)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12590
2012-05-28 08:56:24 +00:00
Philippe Waroquiers
e4a8d5e273 as vgdb not activated by default on android, need to fix the example
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12584
2012-05-25 22:36:01 +00:00
Philippe Waroquiers
2478728636 gdbserver: introduce support to show the AVX registers.
This implies to change the interface between the
arch independent gdbserver files and the arch dependent files
as AVX implies a choice of xml files at run time.

In valgrind-low-amd64.c, the xml files and the nr of registers
are different depending on AVX support or not.

Other platforms still have a fully static nr of registers.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12581
2012-05-24 21:33:17 +00:00
Julian Seward
8ebb8c30e5 Add initial support for Intel AVX instructions (Valgrind side).
Tracker bug is #273475.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12569
2012-05-21 10:18:10 +00:00
Philippe Waroquiers
0ea6d36f1d fix 219156 support static malloc or alternate malloc lib (e.g. tcmalloc) with new option --soname-synonyms
* pub_tool_redir.h : define the prefix to be used for "soname synonym"
  place holder
* vg_replace_malloc.c : define synonym place holder for malloc related
  functions
* m_redir.c : when detecting a soname synonym place holder redir spec, search
  in clo_soname_synonyms if there is a synonym pattern.
  If yes, replace the soname pattern. If not, ignore the redir spec.
* various files: implement or document the new clo --soname-synonyms
* new test memcheck/tests/static_malloc.vgtest



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12559
2012-05-11 19:33:46 +00:00
Florian Krohm
33eb733e4e Updated for s390.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12551
2012-05-03 01:39:45 +00:00
Philippe Waroquiers
f53053e7c9 add optional arg [aspacemgr] to v.info memory to show aspacemgr segments.
When investigating Valgrind out of memory situation,
it is useful to be able to output the list of segments of the
aspacemgr at any moment.
The GDB monitor command "v.info memory" has now an optional
argument allowing to output this list of segments



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12544
2012-04-27 22:59:43 +00:00
Julian Seward
a716c0f5c4 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12540
2012-04-23 09:53:36 +00:00
Florian Krohm
cfa7e16ebc Update s390 status
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12533
2012-04-22 02:58:49 +00:00
Julian Seward
b3382fc75a Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12531
2012-04-21 23:53:07 +00:00
Julian Seward
db39c80ff5 Update.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12521
2012-04-21 08:18:33 +00:00
Julian Seward
b13d047aba Update, post-merge.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12519
2012-04-21 00:27:56 +00:00
Julian Seward
6d68ec0346 Add translation chaining support for ppc32 (tested) and to
a large extent for ppc64 (incomplete, untested) (Valgrind side)


git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12512
2012-04-20 00:14:02 +00:00
Florian Krohm
78646e9125 Mention running with --profile-flags.
git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12511
2012-04-19 22:38:24 +00:00
Julian Seward
8b6f93641c Add translation chaining support for amd64, x86 and ARM
(Valgrind side).  See #296422.



git-svn-id: svn://svn.valgrind.org/valgrind/branches/TCHAIN@12484
2012-04-02 21:56:03 +00:00
Florian Krohm
cebbd02e94 Update s390 opcode list.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12451
2012-03-19 13:22:21 +00:00
Florian Krohm
f0973e2cc9 Add spreadsheet that lists all s390 opcodes in the following format:
1. column:  mnemonic
2. column:  description
3. column:  implementation status
4. column:  comments, if any

Prepared by Divya Vyas (divyvyas@linux.vnet.ibm.com).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12449
2012-03-18 01:51:12 +00:00
Philippe Waroquiers
39e18a06af (for x86 and amd64): Change the type of the shadow regs for floating point registers
Similar to r12444 (see Log below), but this is doing it for x86 and amd64.
The xmm registers are using uint32 or uint64 for their float
union components. For the i387 80 bits float registers, as there is
no uint80, a struct uint16 + uint64 is defined.


  Log:
    Change the type of the shadow regs for floating point registers
    to be uint64. Previously the value in such a shadow reg would
    be interpreted by gdb as a floating point value which would 
    produce non-sensible output for e.g   p/x $f1s1.
    This patch covers the power and arm architectures.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12445
2012-03-14 21:27:35 +00:00
Philippe Waroquiers
aa50a7e4df Allows to run regression tests in an outer/inner setup.
A '3 lines how to':
   perl tests/vg_regtest --outer-valgrind=../trunk_untouched/install/bin/valgrind --all
           (the outer results for a test xxx is in xxx.outer.log)
   To run with another tool (e.g. drd), add the argument --outer-tool=drd


Still to do/things to improve:

* Most (inner) tests are successful when running under an outer
  memcheck. Need to analyse the reasons of remaining failures.

* The memcheck annotations in m_mallocfree.c can be improved:
  - A superblock is marked 'undefined', it should rather be marked
    'no access'.
  - When a free block is splitted, the remaining free block is
    not made 'no access'. Instead, it is made 'undefined'.
      => this decreases the chance to find bugs.
      => this is not very efficient (e.g. the rest of a superblock
         is often marked undefined repetitively).
    Similarly, the free block created by VG_(arena_memalign)
    is marked 'undefined'. 'No access' would be preferrable.
  - mkInuseBlock marks the new block as undefined. This is probably
    not needed, as VALGRIND_MALLOCLIKE_BLOCK will do it already.
  - VG_(arena_malloc) should give the requested size to
    VALGRIND_MALLOCLIKE_BLOCK, not the malloc usable size,
    as this decreases the chance to find buffer overrun bugs.
    But giving the requested size is tricky (see comments in
    the code).

* need to do memcheck annotations in m_poolalloc.c
   so as to allow leak checking for pool allocated elements.

* vg_regtest.in
  - should analyse the results of the outer and should
    produce a separate result for the tests for which
    the outer detects an error or a memory leak or ...


Changes done:
   README_DEVELOPERS: document the new outer/inner features.
   manual-core.xml: document the new sim-hint no-inner-prefix
   tests/outer_inner.supp: new file, containing the suppressions for inner.
   vg_regtest.in: implement new args --outer-valgrind, --outer-tool, --outer-args.
   m_mallocfree.c: annotations for memcheck.
   m_libcprint.c: handle the new sim-hint no-inner-prefix
   m_main.c: do an (early) parse of --sim-hints




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12441
2012-03-11 22:24:03 +00:00
Philippe Waroquiers
c0883bddd7 * Improve documentation of --vgdb=full
* make a reference to --vex-iropt-precise-memory-exns=yes 
  to obtain up to date registers values.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12416
2012-03-05 22:09:20 +00:00
Philippe Waroquiers
74d44d1764 * README_DEVELOPERS : complete/enhance the section about outer/inner
* manual-core.xml : fix a typo
* include/pub_tool_inner.h : new file, defining macros for inner annotation
  include/Makefile.am : reference this new file.
* syswrap-linux.c : when ENABLE_INNER, register the stacks for the outer.
   (otherwise, nothing works properly).
* m_redir.c : avoid inner interpreting the outer vgpreload instructions.
* sema.c : annotate the semaphore with RWLOCK annotations for helgrind
* ticket-lock-linux.c : similar.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12414
2012-03-03 12:01:48 +00:00
Philippe Waroquiers
6a15dd16e4 Document the new --fair-sched option.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12398
2012-02-22 20:23:29 +00:00