gdb fails in Ubuntu-22.04

Bug #1992947 reported by karthik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

In Jammy 5.15.0-1014 when i try to debug an application with gdb got below error,

Log:
root@kria:/home/ubuntu/swetha_bins/v2xpfm# gdb threshold
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/bin/python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.platlibdir = 'lib'
  sys.executable = '/usr/bin/python'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/lib/python39.zip',
    '/usr/lib/python3.9',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0000ffffa057f020 (most recent call first):
<no Python frame>
root@kria:/home/ubuntu/swetha_bins/v2xpfm#
root@kria:/home/ubuntu/swetha_bins/v2xpfm#
root@kria:/home/ubuntu/swetha_bins/v2xpfm# uname -a
Linux kria 5.15.0-1014-xilinx-zynqmp #15-Ubuntu SMP Tue Aug 30 07:56:28 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
root@kria:/home/ubuntu/swetha_bins/v2xpfm#
root@kria:/home/ubuntu/swetha_bins/v2xpfm#
root@kria:/home/ubuntu/swetha_bins/v2xpfm# file threshold
threshold: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=ae073c5ee47a3663ef3a06861c5df9bf62147ecd, for GNU/Linux 3.14.0, with debug_info, not stripped
root@kria:/home/ubuntu/swetha_bins/v2xpfm#
root@kria:/home/ubuntu/swetha_bins/v2xpfm#
root@kria:/home/ubuntu/swetha_bins/v2xpfm#

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1992947/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → gdb (Ubuntu)
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

There is a new version of gdb in jammy-proposed that might help. Can you try that? (some pointers on how to do this at https://wiki.ubuntu.com/Testing/EnableProposed)

Changed in gdb (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gdb (Ubuntu) because there has been no activity for 60 days.]

Changed in gdb (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.