82 Commits

Author SHA1 Message Date
Nicholas Nethercote
4e8bcf9076 Move the last remaining tests out of corecheck.
Also introduced VG_(showing_core_errors)() to make core error display
more consistent.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4073
2005-07-01 04:15:36 +00:00
Nicholas Nethercote
d690d0fb71 Move some more Corecheck tests into none/tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4065
2005-06-30 04:41:56 +00:00
Nicholas Nethercote
3dea409609 Move a bunch of tests from corecheck/tests/ to none/tests/.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4060
2005-06-30 02:15:59 +00:00
Nicholas Nethercote
a1527f6993 Move a heap of tests from corecheck/tests/ into none/tests/. There's
no real point in having them in corecheck/tests since they're not testing
anything that Nulgrind doesn't provide.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4048
2005-06-29 03:46:32 +00:00
Nicholas Nethercote
128115f4df "make dist" fixes from Ralf Wildenhues.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4010
2005-06-24 13:45:56 +00:00
Donna Robinson
b655e45a8e argh! there were loads of the little beggars ....
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3999
2005-06-23 00:17:51 +00:00
Julian Seward
e91b26143d Alternate expected outputs with better stack traces. CFI based stack
unwinding may have been a giant pain to implement, but it does appear
to be better at not missing stack frames and generally being
consistent then the old x86-linux follow-the-%ebp scheme.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3858
2005-06-09 13:23:56 +00:00
Robert Walsh
5d35d711ba Implement stack registration client requests. See the documentation
in the user manual for usage information.  The stack_changes.c file in
corecheck/tests contains a short example.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3846
2005-06-04 20:42:33 +00:00
Julian Seward
7f2b2192c5 Another possible output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3789
2005-05-23 14:24:30 +00:00
Julian Seward
e465573984 More possible outputs
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3788
2005-05-23 14:22:26 +00:00
Julian Seward
0a10e9557e More possible outputs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3787
2005-05-23 14:18:24 +00:00
Julian Seward
907c55aa12 Yet another possible output
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3786
2005-05-23 14:15:56 +00:00
Julian Seward
a655fb802c More possible outputs (sigh)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3785
2005-05-23 14:13:34 +00:00
Julian Seward
f013769c53 This seems to have been missing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3784
2005-05-23 14:09:52 +00:00
Julian Seward
fd6ce383b5 Add new acceptable-stderr files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3614
2005-05-04 12:37:47 +00:00
Julian Seward
198b66b185 Update expected outputs (better stack traces due to CFI unwinding)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3612
2005-05-04 00:33:15 +00:00
Julian Seward
f9b54012bf Move this test to a more sensible place. Originally it was intended
to check that the threading library hadn't messed up errno.  Now that
doesn't make much sense any more.  Anyway, now it annoyingly fails due
to memcheck reporting bugs in libpthread et al.  Move it to corecheck
so at least it can continue to run and hopefully not continually fail.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3611
2005-05-04 00:26:57 +00:00
Tom Hughes
51ea0f08b6 Fixed test result to be independent of the system address size.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3470
2005-03-29 07:40:04 +00:00
Julian Seward
def33104c4 Add an equally-valid looking alternative .stderr.exp for this test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3380
2005-03-16 13:32:48 +00:00
Julian Seward
0356d27ca6 Merge in changes from the 2.4.0 line. This basically brings in the
overhaul of the thread support.  Many things are now probably broken,
but at least with --tool=none, simple and not-so-simple threaded and
non-thread programs work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3265
2005-03-10 23:59:00 +00:00
Julian Seward
7c542ccd39 Add new files resulting from merging in the 2.4.0 line. Many of these
seem to be simply duplication of the x86 instruction set tests into
the addrcheck and helgrind trees.  I'm not sure what this duplication
achieves.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264
2005-03-10 23:23:45 +00:00
Nicholas Nethercote
ce2585d447 Changed message at the top of files, and the startup message, and the
string in valgrind.pc.in, so that they describe Valgrind as a "dynamic
binary instrumentation framework", and don't mention platforms at all.  

I had to tweak the regtest filters a bit for this.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3178
2004-12-01 14:14:42 +00:00
Nicholas Nethercote
f7d26d172b Make these work again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3083
2004-11-23 17:13:58 +00:00
Nicholas Nethercote
e367976dde Improve pth_cvsimple test in two ways:
1. Make the output deterministic;  different thread interleaving from expected
was causing failures for me.

2. Make it actually use the condition variable -- the condvar stupidly wasn't
actually being used in the expected case, because the other threads finished
all their work before pthread_cond_wait() even got called, and this prevented
the condition guarding pthread_cond_wait() from succeeding.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2952
2004-11-09 14:58:02 +00:00
Nicholas Nethercote
f96382c67c Fix broken alternative output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2887
2004-10-31 19:50:22 +00:00
Tom Hughes
bdf9406d34 Remove the thread numbers from the messages output by pth_once so that
the order the threads run in doesn't affect the output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2868
2004-10-28 13:39:52 +00:00
Nicholas Nethercote
0ff0bcde9d Make as_shm less brittle.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2856
2004-10-26 16:31:19 +00:00
Nicholas Nethercote
df61e3043d Tweak as_mmap for the possibility of a PIE-supporting system with a 4GB user
space.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2855
2004-10-26 16:30:01 +00:00
Nicholas Nethercote
ac36b57353 Fix "make check" for when src_dir != build_dir
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2826
2004-10-21 14:07:58 +00:00
Nicholas Nethercote
d343add11a Build vg_replace_malloc.c into a library, because it makes the Makefiles a bit
neater.  Also remove some dodgy CFLAGS+= lines.

I had to change the expected output of pth_once.c, because the change has
altered the order of the (non-deterministic) output.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2825
2004-10-20 18:40:40 +00:00
Nicholas Nethercote
08b1be646a as_shm wasn't being included in 'make dist'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2813
2004-10-19 19:39:59 +00:00
Tom Hughes
e7e79a576f Remove the limit on the number of pthread read/write locks. This works
in a similar way to the previous patch that removed the limit on the
number of semaphores and fixes bug 86264.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2776
2004-10-16 14:49:53 +00:00
Tom Hughes
58ae591be6 Suppress .stderr.diff2 files as well as .stderr.diff files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2774
2004-10-16 11:02:33 +00:00
Tom Hughes
98b5592107 Add alternate results for some tests that use mmap.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2755
2004-10-13 16:48:21 +00:00
Nicholas Nethercote
a32b040099 Update .cvsignore for recently added regression tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2642
2004-09-01 23:34:37 +00:00
Tom Hughes
42c7adce45 Maek init_global_thread_specific_state as a constructor to try and ensure
that it is called as soon as libpthread.so is loaded even if pthread_create
is never called.

This ensures that pthread_exit will work correctly, and I think will also
cure the famous memory leak in the pthread specifics for the main thread.

CCMAIL: 86730-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2584
2004-08-14 15:37:59 +00:00
Nicholas Nethercote
58ae9c9722 Update .cvsignore files
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2434
2004-06-22 14:01:40 +00:00
Tom Hughes
83780627b5 It appears that NPTL uses a new system for dealing with cleanup
handlers when a thread is cancelled which has the side effect that
programs linked with librt fail on Fedora Core 2 due to librt having
been built against the NPTL header instead of the old pthread headers.

This change extends valgrind's libpthread.so to handle both the old
and new style cleanup handlers in a similar way to NPTL and seems to
be sufficient to get programs linked with librt working again.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2405
2004-06-12 12:58:22 +00:00
Tom Hughes
af675e0fea Anonymise path names for libc's built with debg symbols.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2305
2004-03-09 09:59:26 +00:00
Tom Hughes
41028e4b60 Add some alternate regression test results for older libc's.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2294
2004-03-07 19:40:33 +00:00
Tom Hughes
8c9a6c3e2d Changed the fdleak tests to explicitly attach /dev/null as the standard
input so that the output is well known regardless of whether the test is
run from a terminal or from cron.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2276
2004-02-29 12:02:32 +00:00
Nicholas Nethercote
ec45a3d7e7 Remove system-dependent output from test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2258
2004-02-22 17:24:01 +00:00
Nicholas Nethercote
2df352f28f Remove address from output, which varies from machine to machine and causes
failure.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2196
2004-01-09 16:15:06 +00:00
Dirk Mueller
6a73cf3d05 portability
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2171
2004-01-03 15:02:59 +00:00
Jeremy Fitzhardinge
822231c4b0 Add and delete all the files which need adding and deleting.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2119
2003-12-16 02:14:00 +00:00
Jeremy Fitzhardinge
918c3a7b7e This jumbo-checkin is the Full Virtualization checkin. This eliminates
Valgrind's dependency on the dynamic linker for getting started, and
instead takes things into its own hands.

This checkin doesn't add much in the way of new functionality, but it
is the basis for all future work on Valgrind.  It allows us much more
flexibility in implementation, and well as increasing the reliability
of Valgrind by protecting it more from its clients.

This patch requires some changes to tools to update them to the changes
in the tool API, but they are straightforward.  See the posting "Heads
up: Full Virtualization" on valgrind-developers for a more complete
description of this change and its effects on you.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2118
2003-12-16 02:05:15 +00:00
Jeremy Fitzhardinge
e77d4b8d7e When merging multiple symbols with the same address, rather than always
choosing the longest symbol, choose the longest ignoring any of the libc
junk prefixes like __libc_, __, __GI_*, etc.  This makes the symbol
presented to the user in messages and used in *.supp files more consistent
and comprehensible.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2114
2003-12-15 09:00:21 +00:00
Jeremy Fitzhardinge
c0a0101d40 Update regtest to match new error message
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2109
2003-12-14 06:50:36 +00:00
Julian Seward
80a34b21d6 Un-break 'make distcheck' yet again. I guess someone somewhere understands
how autoconf/automake really work, but not me :-)  What's the difference
between $(srcdir) and $(top_srcdir) (eg in coregrind/Makefile.am) ?


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2104
2003-12-13 03:07:40 +00:00
Jeremy Fitzhardinge
144c2fa42c Fix bug 69836: make record_fd_open ignore fds > VG_MAX_FD.
CCMAIL: 69836-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2103
2003-12-12 07:46:54 +00:00