Public bug reported: The way in which I discovered this bug was while attempting to redirect stderr of a running process. Below is a simple way to reproduce the issue.
$ ./long-running-process >>> Open a new shell. $ pgrep -fai long-running 15123 ./long-running-process $ gdb -p 15123 ... (gdb) compile code -- printf("Hello, world!\n"); cc1: fatal error: libcc1plugin: unknown version in handshake compilation terminated. Compilation failed. (gdb) In short, after a recent update, I am no longer able to use the compile code command of gdb. This sequence of commands should print the text "Hello, world!" instead of printing an error. Below is the required information for reporting. $ lsb_release -rd No LSB modules are available. Description: Ubuntu 24.04.1 LTS Release: 24. $ apt-cache policy libcc1-0 gdb libcc1-0: Installed: 14.2.0-4ubuntu2~24.04 Candidate: 14.2.0-4ubuntu2~24.04 Version table: *** 14.2.0-4ubuntu2~24.04 500 500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages 100 /var/lib/dpkg/status 14-20240412-0ubuntu1 500 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages gdb: Installed: 15.0.50.20240403-0ubuntu1 Candidate: 15.0.50.20240403-0ubuntu1 Version table: *** 15.0.50.20240403-0ubuntu1 500 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages 100 /var/lib/dpkg/status ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: gdb 15.0.50.20240403-0ubuntu1 Uname: Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: unknown CloudBuildName: server CloudSerial: 20200423 Date: Thu Feb 6 16:17:09 2025 ExecutablePath: /usr/bin/gdb ProcEnviron: LANG=C.UTF-8 PATH=(custom, user) SHELL=/usr/bin/zsh TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: gdb UpgradeStatus: Upgraded to noble on 2024-09-03 (156 days ago) ** Affects: gdb (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cloud-image noble wayland-session -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to gdb in Ubuntu. https://bugs.launchpad.net/bugs/2097574 Title: GDB Errors on `compile code' Due to Unknown Version libcc1plugin Status in gdb package in Ubuntu: New Bug description: The way in which I discovered this bug was while attempting to redirect stderr of a running process. Below is a simple way to reproduce the issue. $ ./long-running-process >>> Open a new shell. $ pgrep -fai long-running 15123 ./long-running-process $ gdb -p 15123 ... (gdb) compile code -- printf("Hello, world!\n"); cc1: fatal error: libcc1plugin: unknown version in handshake compilation terminated. Compilation failed. (gdb) In short, after a recent update, I am no longer able to use the compile code command of gdb. This sequence of commands should print the text "Hello, world!" instead of printing an error. Below is the required information for reporting. $ lsb_release -rd No LSB modules are available. Description: Ubuntu 24.04.1 LTS Release: 24. $ apt-cache policy libcc1-0 gdb libcc1-0: Installed: 14.2.0-4ubuntu2~24.04 Candidate: 14.2.0-4ubuntu2~24.04 Version table: *** 14.2.0-4ubuntu2~24.04 500 500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages 100 /var/lib/dpkg/status 14-20240412-0ubuntu1 500 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages gdb: Installed: 15.0.50.20240403-0ubuntu1 Candidate: 15.0.50.20240403-0ubuntu1 Version table: *** 15.0.50.20240403-0ubuntu1 500 500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages 100 /var/lib/dpkg/status ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: gdb 15.0.50.20240403-0ubuntu1 Uname: Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: unknown CloudBuildName: server CloudSerial: 20200423 Date: Thu Feb 6 16:17:09 2025 ExecutablePath: /usr/bin/gdb ProcEnviron: LANG=C.UTF-8 PATH=(custom, user) SHELL=/usr/bin/zsh TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: gdb UpgradeStatus: Upgraded to noble on 2024-09-03 (156 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/2097574/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp