public inbox for debugedit@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: debugedit@sourceware.org
Subject: [Bug find-debuginfo/30505] unchecked "gdb-add-index" invocation
Date: Tue, 20 Aug 2024 14:56:21 +0000	[thread overview]
Message-ID: <bug-30505-13298-DP1BEuW5Xs@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30505-13298@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=30505

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
commit dfe1f7ff30f4e0be538835fca1e6348723ea7aa7
Author: Keith Seitz <keiths@redhat.com>
Date:   Fri Aug 16 11:54:20 2024 -0700

    find-debuginfo.sh: Exit with real exit status in parallel jobs

    Currently, when the script is executed in parallel (-jN), the
    resulting exit status will always be 0.

    The script execs an appropriate number of clones of itself, calling
    run_job to run the actual workload. This then calls do_file(), saving
    the exit status into "res.$jobid".

    In do_file(), though, if an error occurs, exit is called. This causes
    the entire exec'd shell to exit with status 0 (since there are almost
    always echo calls as the last executed statement). The real exit
    status is therefor never written to the "res.$jobid" files by run_job().

    The simple solution is to use 'return' instead of 'exit'. A number
    of minor adjustments are also made to propagate this properly so that
    it is reported as the correct exit status.

    While at it, I've incorporated a patch for find-debuginfo/30505.
    Using this patch and another patch to the RPM package (submitted as
    github issue #3215), failures of gdb-add-index.sh will now properly fail
    the build instead of being swallowed. It should be much easier for
    developers to figure out why their builds have failed should gdb crash.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30505
    Signed-off-by: Keith Seitz <keiths@redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-08-20 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-01 11:04 [Bug find-debuginfo/30505] New: " lersek at redhat dot com
2023-06-01 11:27 ` [Bug find-debuginfo/30505] " mark at klomp dot org
2023-12-10 22:16 ` mark at klomp dot org
2024-08-16 18:58 ` keiths at redhat dot com
2024-08-20 14:56 ` mark at klomp dot org [this message]
2024-08-20 15:01 ` [Bug find-debuginfo/30505] unchecked "debugedit" "gdb-add-index" "strip_to_debug" "add_minidebug" invocation mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30505-13298-DP1BEuW5Xs@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=debugedit@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).