Tom Hughes
67bb2b010d
Commit rewrite of semaphore handling to avoid having a fixed upper
...
limit. Patch courtesy of Aleksander Salwa <A.Salwa@osmosys.tv >.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2336
2004-03-23 19:48:54 +00:00
Tom Hughes
762af5a827
Strip _nocancel from glibc stack traces so that __open_nocancel etc
...
look like open as seen in traces from older glibcs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2335
2004-03-22 19:57:41 +00:00
Tom Hughes
9f1434ff0c
Redirect _dl_sysinfo_int80, which is glibc's default system call
...
routine, to the routine in our trampoline page so that the
special sysinfo unwind hack in vg_execontext.c will kick in.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2334
2004-03-22 19:46:29 +00:00
Jeremy Fitzhardinge
3ee834af04
Add susphello test, which has turned up a number of interesting bugs
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2333
2004-03-17 18:20:46 +00:00
Jeremy Fitzhardinge
d402c5408c
When creating new threads, initially block all signals. It's up to the
...
client code (in vg_libpthread.c) to set the appropriate signal mask when
its ready. This prevents a bug where a thread gets sent a signal before
even running any of its initialization code, which can cause problems
(particularly if the signal handler directly or indirectly uses TLS).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2332
2004-03-16 22:09:12 +00:00
Jeremy Fitzhardinge
77403e63a0
Init the per-thread sigaltstacks properly. New threads should always
...
appear without a sigaltstack.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2331
2004-03-16 22:07:12 +00:00
Nicholas Nethercote
0233c9957d
Remove Massif's version number now that it's part of the main distro.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2330
2004-03-16 19:41:14 +00:00
Tom Hughes
34c0bbafdd
Ignore valgrind core files.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2329
2004-03-16 11:05:16 +00:00
Tom Hughes
fdeb943505
Added badseg to the list of things to ignore.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2328
2004-03-16 11:04:03 +00:00
Tom Hughes
4ab4db0743
Filter out the ": core dumped" message from test results as the user
...
running the tests might have a ulimit set that prevents the core dumps.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2327
2004-03-16 11:03:09 +00:00
Tom Hughes
c58501088e
Fixed compiler warning.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2326
2004-03-16 10:51:40 +00:00
Tom Hughes
0615a8eae6
Added the new badseg test to the list of things to build.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2325
2004-03-16 10:51:29 +00:00
Jeremy Fitzhardinge
cae906da57
This change does two things: one is the implementation of
...
VG_(synth_fault_*), which synthesize faults as if an instruction had
caused a CPU fault. This is used in two places: one in vg_translate.c,
when trying to fetch instructions from bad memory, and the other in
vg_ldt.c, when using a bad segment register. This fixes a bug where an
assertion would fail rather than getting a useful message.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2324
2004-03-16 09:49:08 +00:00
Jeremy Fitzhardinge
a8ab0cd15a
Make the sigaltstack per-thread state, so that two threads handling a
...
signal at once don't share the same stack.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2323
2004-03-16 08:27:29 +00:00
Jeremy Fitzhardinge
a5d22da25d
Print a backtrace for core-dumping signals, even if we're not actually
...
dumping core.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2322
2004-03-16 08:20:14 +00:00
Jeremy Fitzhardinge
e1614b700b
Ooops. Fix overly-hasty commit.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2321
2004-03-15 23:46:54 +00:00
Jeremy Fitzhardinge
a9e5c1f1dd
Be a bit clearer about core-dumping messages (don't say we are if we're not)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2320
2004-03-15 23:44:11 +00:00
Tom Hughes
57b01439e0
Move the handling of PSHUFW from the SSE code to the MMX code so that
...
it will work on older Athlons which only have MMXEXT support.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2319
2004-03-15 16:43:58 +00:00
Jeremy Fitzhardinge
0ed11cde7b
Don't bother setting the EI_OSABI entry in the core elf header, since
...
the kernel doesn't, nobody uses it, and RH7.2 systems don't define it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2318
2004-03-15 16:13:06 +00:00
Tom Hughes
328e766d09
Fix compiler warnings.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2317
2004-03-15 12:58:55 +00:00
Julian Seward
2e2e7d2e86
Modify the memory manager so it "natively" supports 8-byte alignment,
...
basically by messing with the block layout.
* Move freelist next ptr from before payload to after it
* Ensure payload and red zones always have sizes which are
multiples of 8-bytes.
Seems to work OK. Values returned from the two basic allocator
functions VG_(arena_malloc) and VG_(arena_malloc_aligned) are
vg_asserted to have suitable alignment (== 8, >= 8 && == requested
alignment) respectively.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2316
2004-03-14 03:06:37 +00:00
Dirk Mueller
8b0514d271
whoops
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2315
2004-03-13 02:56:29 +00:00
Dirk Mueller
3d5c39f6cf
fix up the other places as well
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2314
2004-03-13 02:49:49 +00:00
Jeremy Fitzhardinge
e874a403cf
Close bug 71906. Set default malloc alignment to 8 rather than 4.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2313
2004-03-13 02:38:33 +00:00
Jeremy Fitzhardinge
19a82f5eae
Fix bug 69872. This change adds a coredumper to vg_signal.c. This means
...
that when the client is killed by a coredumping signal, Valgrind will
generate the coredump itself, which is full of client state, rather than
Valgrind state; this core file will therefore be useful to the developer
in debugging their program.
The corefile generated is named vgcore.pidNNNNN (and maybe with .M on
the end in case of duplicates). If you set a logfile with --logfile,
then this name will be used as the basename for the core file, so that
both the core and the logs will be next to each other.
Valgrind respects the RLIMIT_CORE limit when generating the file; if the
limit is set to 0, then it will not generate one.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2312
2004-03-13 02:06:58 +00:00
Julian Seward
5c2a3999d3
head --> 2.1.2-CVS so as to distinguish it from everything else :-)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2311
2004-03-13 00:49:39 +00:00
Julian Seward
43d9adea1d
Update for 2.1.1.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2309
2004-03-12 21:07:05 +00:00
Jeremy Fitzhardinge
82aaa16ef9
Fix "make distcheck", and also make sure that the generated archive
...
contains everything needed to "make regtest". Bump the version.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2308
2004-03-12 10:51:39 +00:00
Julian Seward
9171770931
Partially unbreak 'make distcheck'.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2307
2004-03-12 01:22:30 +00:00
Jeremy Fitzhardinge
409a3bb789
Oops, passing wrong thing to st_mkarray
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2306
2004-03-11 00:40:11 +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
4468065436
Add an alternate (appropriately filtered) result for some systems.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2304
2004-03-09 09:16:35 +00:00
Tom Hughes
5c5cc2d261
Fix expected standard error output for mmxext tests to resolve
...
differences in the amount of whitespace left with different skins.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2303
2004-03-09 08:50:02 +00:00
Jeremy Fitzhardinge
46dec7876d
Fix bug 69856; teach Helgrind about all the new SSE-related UOps.
...
Haven't actually tested races with all those new memory access
instructions though...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2302
2004-03-09 02:45:07 +00:00
Jeremy Fitzhardinge
5c00880d69
Use Tom's instruction set tests on all tools which do instrumentation, so
...
we can make it's OK for all instructions. Helgrind is badly broken in this
test (bug 69856).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2301
2004-03-09 01:44:11 +00:00
Jeremy Fitzhardinge
e991e966f4
Fix for bug 73892; implement 'S' set/bitstring stabs type.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2300
2004-03-09 01:20:47 +00:00
Jeremy Fitzhardinge
1c6f9e6392
Raise RLIMIT_AS to max allowable, so that we can create the large mappings
...
we need to. If the hard limit is set to low, then things will fail as
large mmaps fail.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2299
2004-03-09 00:57:45 +00:00
Jeremy Fitzhardinge
12111b64cf
Cope with strange templated symbol names containing quoted ':'.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2298
2004-03-09 00:43:08 +00:00
Tom Hughes
ec672c606d
Remove function which is no longer used following the changes to
...
the handling of libc thread specific data.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2297
2004-03-08 15:57:17 +00:00
Nicholas Nethercote
8ee17cb4b7
Turn off warning with -q.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2295
2004-03-08 15:37:58 +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
2494bba71b
Fix the handling of libc thread specific data so that it doesn't rely on
...
being able to use malloc as the libc malloc tries to use thread specific
data and we wind up in a recursive nightmare.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2293
2004-03-07 19:36:14 +00:00
Julian Seward
5bc30752d6
Be slightly less verbose at -v.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2292
2004-03-07 10:23:20 +00:00
Tom Hughes
56a515fc49
Treat INT with an operand other than 0x80 as an undefined instruction.
...
CCMAIL: 76839-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2291
2004-03-06 12:53:24 +00:00
Jeremy Fitzhardinge
55801690d8
We need to specify some version.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2290
2004-03-06 00:14:42 +00:00
Jeremy Fitzhardinge
a3b9fe272a
Fix bug 76780 - implement stabs type '@' for pointer to member.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2289
2004-03-05 05:43:42 +00:00
Tom Hughes
67f9196d17
Add support for 16 bit pushes and pops of segment registers to
...
fix bug #76762 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2288
2004-03-04 23:36:58 +00:00
Jeremy Fitzhardinge
01ba73cf7e
List memalign as an allocator.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2287
2004-03-04 22:42:03 +00:00
Nicholas Nethercote
e75f9c2e9c
Remove comma from last element of enum; C++ apparently doesn't allow it.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2286
2004-03-04 18:05:55 +00:00
Jeremy Fitzhardinge
6baec43002
Don't intercept mmap yet, until everything else is in place to deal
...
with it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2285
2004-03-02 21:40:07 +00:00