]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Add BadFdExtra core error.
authorAlexandra Hájková <ahajkova@redhat.com>
Tue, 25 Jun 2024 15:27:16 +0000 (11:27 -0400)
committerMark Wielaard <mark@klomp.org>
Fri, 11 Oct 2024 21:42:06 +0000 (23:42 +0200)
commitff96f07bc9b97d15bbb05b470f06d46d52c190be
tree413f0c7150d6e087ad4e20aa8b4252ed72f63f4b
parent61edfcd3c7b49033ec3e8df6470fad4c59cf0151
Add BadFdExtra core error.

Introduce a new FdBadFd type with associated extra info struct.
Which for now just holds the fd number (no path or description).
fd_pp_Error and fd_update_extra have been updated to handle the
new type and produce xml when requested.

Rename showing_core_errors to showing_core_warning
(returns yes when the tools wants to show core errors,
-q isn't given and we aren't producing xml).

In ML_(fd_allowed) we now call VG_(maybe_record_error) to
generate a real error (that can be suppressed and shows up
in the xml output with full execution backtrace). For now
we also produce the legacy warnings when --track-fds=yes
isn't given.

Add none/tests/fdbaduse.vgtest to test the new FdBadUse
core error.

This is the first part of reporting bad fd usage errors.
We are also tracking already closed file descriptors which
should also produce errors like these. The current bad file
descriptors are just those that are negative or above the
current file limit of the process.

https://bugs.kde.org/show_bug.cgi?id=493418
NEWS
coregrind/m_errormgr.c
coregrind/m_signals.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/pub_core_errormgr.h
none/tests/Makefile.am
none/tests/fdbaduse.c [new file with mode: 0644]
none/tests/fdbaduse.stderr.exp [new file with mode: 0644]
none/tests/fdbaduse.vgtest [new file with mode: 0644]