summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/insane.bbclass
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-11-27 15:10:06 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-28 00:06:24 +0000
commit29da7370d219924a7f1fa106b13f601ec8795eab (patch)
treef240042cfb73e5afe2179524e7d702494c9bd300 /meta/classes-global/insane.bbclass
parentef5aaedf2a47a9d132557715381cdc879ec8f91b (diff)
downloadpoky-29da7370d219924a7f1fa106b13f601ec8795eab.tar.gz
bitbake: Remove custom exception backtrace formatting
Removes the code in bitbake to show custom backtrace formatting for exceptions. In particular, the bitbake exception code prints function arguments, which while helpful is a security problem when passwords and other secrets can be passed as function arguments. As it turns out, the handling of the custom serialized exception stack frames was pretty much made obsolete by d7db75020ed ("event/msg: Pass formatted exceptions"), which changed the events to pass a preformatted stacktrack list of strings, but the passing of the serialized data was never removed. Change all the code to use the python traceback API to format exceptions instead of the custom code; conveniently traceback.format_exception() also returns a list of stack trace strings, so it can be used as a drop in replacement for bb.exception.format_exception() (Bitbake rev: 2cda75a185aaf8f657f072dac34f8cef9d75f63a) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/insane.bbclass')
0 files changed, 0 insertions, 0 deletions