[Buildroot] [PATCHv2 1/3] package/gdb: fix gdb 9.2 segfault with Python 3.9 support

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Jul 25 21:21:34 UTC 2021


On Tue,  8 Jun 2021 17:18:37 +0200
Thomas De Schampheleire <patrickdepinguin at gmail.com> wrote:

> From: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> 
> When enabling Python 3 support in gdb 9.2, gdb segfaults at startup.
> 
> The issue is tracked back to following upstream gdb commit, present since
> gdb 10.1.
> 
>     commit c47bae859a5af0d95224d90000df0e529f7c5aa0
>     Author: Kevin Buettner <kevinb at redhat.com>
>     Date:   Wed May 27 20:05:40 2020 -0700
> 
>         Fix Python3.9 related runtime problems
>         [...]
> 
> Backport this commit to 9.2 in Buildroot.
> 
> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> ---
>  ...x-Python3.9-related-runtime-problems.patch | 227 ++++++++++++++++++
>  1 file changed, 227 insertions(+)
>  create mode 100644 package/gdb/9.2/0007-Fix-Python3.9-related-runtime-problems.patch

Fixing 9.2 was good, but not sufficient: the 8.3.1 gdb release and the
C-SKY special version as well, so I've backported the fix to those
versions as well. Applied with that change. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list