scripts_gdb: Python Exception <class 'gdb.error'>: There is no member named nsections.

From: Antonio Quartulli
Date: Thu Feb 20 2025 - 10:24:11 EST


Hi,

I have been working on the new ovpn linux kernel module since a while and your gdb kernel debugging helper scripts have been of great help.

However, recently I have started hitting an issue I could not explain.
When my qemu instance loads the ovpn.ko module, I get the following output in gdb:

scanning for modules in /home/ordex/exp/openvpn_dev/linux-ovpn-dco
loading @0xffffffffa0000000: /home/ordex/exp/openvpn_dev/linux-ovpn-dco/drivers/net/ovpn/ovpn.ko
Python Exception <class 'gdb.error'>: There is no member named nsections.

and the load of the symbols fails.

Does it ring any bell?
Any help debugging further?

I am running the latest net-next.

Thanks a lot.
Best Regards,

--
Antonio Quartulli

CEO and Co-Founder
Mandelbit Srl
https://www.mandelbit.com