From: Bagas Sanjaya <bagasdotme@gmail.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Josh Steadmon <steadmon@google.com>,
Calvin Wan <calvinwan@google.com>,
Emily Shaffer <emilyshaffer@google.com>,
Glen Choo <chooglen@google.com>, John Cai <johncai86@gmail.com>
Subject: Re: [RFC PATCH 3/3] trace2: emit "signal" events after calling BUG()
Date: Thu, 26 May 2022 10:04:00 +0700 [thread overview]
Message-ID: <Yo7uIG6JOx2lHOqE@debian.me> (raw)
In-Reply-To: <RFC-patch-3.3-b099a3a4a96-20220525T234908Z-avarab@gmail.com>
On Thu, May 26, 2022 at 02:30:44AM +0200, Ævar Arnfjörð Bjarmason wrote:
> `"exit"`::
> - This event is emitted when git calls `exit()`.
> + This event is emitted when git calls `exit()`. This event will
> + be produced for all regular ending of the git process, but it
> + might also exit via a "signal".
> +
The second 'this' can be elided, thus says "This event is emitted ...
and will be produced ...".
> ------------
> {
> @@ -435,7 +437,7 @@ only present on the "start" and "atexit" events.
> `"atexit"`::
> This event is emitted by the Trace2 `atexit` routine during
> final shutdown. It should be the last event emitted by the
> - process.
> + process, unless it was aborted (see "signal").
> +
Looks OK.
> @@ -452,8 +454,11 @@ completed.)
>
> `"signal"`::
> This event is emitted when the program is terminated by a user
> - signal. Depending on the platform, the signal event may
> - prevent the "atexit" event from being generated.
> + signal, which includes git itself calling abort(3). Depending
> + on the platform, the signal event may prevent the "exit"
> + and/or "atexit" events from being generated. E.g. if BUG() was
> + invoked we'll emit an "error" event followed by a "signal"
> + event, and nothing else.
> +
So in case of BUG() trigger, there may not be exit event due to user
signal right? I'm expecting system (not user) signal in that case.
--
An old man doll... just what I always wanted! - Clara
next prev parent reply other threads:[~2022-05-26 3:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-26 0:30 [RFC PATCH 0/3] trace2: log "signal" end events if we invoke BUG() Ævar Arnfjörð Bjarmason
2022-05-26 0:30 ` [RFC PATCH 1/3] test-tool: don't fake up BUG() exits as code 99 Ævar Arnfjörð Bjarmason
2022-06-03 19:25 ` Junio C Hamano
2022-06-03 21:05 ` Junio C Hamano
2022-06-03 23:05 ` Ævar Arnfjörð Bjarmason
2022-06-08 19:17 ` Jeff King
2022-06-08 21:03 ` Junio C Hamano
2022-06-09 8:09 ` Ævar Arnfjörð Bjarmason
2022-06-09 15:23 ` Jeff King
2022-06-03 23:03 ` Ævar Arnfjörð Bjarmason
2022-05-26 0:30 ` [RFC PATCH 2/3] refs API: rename "abort" callback to avoid macro clash Ævar Arnfjörð Bjarmason
2022-05-26 0:30 ` [RFC PATCH 3/3] trace2: emit "signal" events after calling BUG() Ævar Arnfjörð Bjarmason
2022-05-26 3:04 ` Bagas Sanjaya [this message]
2022-05-31 18:16 ` Josh Steadmon
2022-05-26 1:20 ` [RFC PATCH 0/3] trace2: log "signal" end events if we invoke BUG() Junio C Hamano
2022-05-31 17:59 ` Josh Steadmon
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=Yo7uIG6JOx2lHOqE@debian.me \
--to=bagasdotme@gmail.com \
--cc=avarab@gmail.com \
--cc=calvinwan@google.com \
--cc=chooglen@google.com \
--cc=emilyshaffer@google.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johncai86@gmail.com \
--cc=steadmon@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.