ltrace produces no debug output at all, workaround is compiling with "-fcf-protection=none"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ltrace (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Hello,
Running ltrace on any executable on current Ubuntu produces no debug output at all.
I have verified the behavior shown below on kinetic and focal.
Compiling with "-fcf-protectio
The breakage seems to be related to "Intel CET Support" and the following upstream patch seems relevant:
https:/
More information on how to reproduce follows:
*** kinetic
# cat /etc/os-release
PRETTY_NAME="Ubuntu Kinetic Kudu (development branch)"
NAME="Ubuntu"
VERSION_ID="22.10"
VERSION="22.10 (Kinetic Kudu)"
VERSION_
ID=ubuntu
ID_LIKE=debian
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
UBUNTU_
LOGO=ubuntu-logo
# apt install ltrace
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ltrace is already the newest version (0.7.3-6.1ubuntu6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# ltrace ls -d .
.
+++ exited (status 0) +++
FAIL:
$ gcc -o hello hello.c
$ ltrace ./hello
Hello, World!
+++ exited (status 0) +++
SUCCESS:
$ gcc -fcf-protection
$ ltrace ./hello
puts("Hello, World!"Hello, World!
) = 14
+++ exited (status 0) +++
Thank you,
Vangelis
ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: ltrace 0.7.3-6.1ubuntu6
Uname: Linux 5.4.72-
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
Date: Fri Oct 14 06:40:46 2022
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
SourcePackage: ltrace
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: foundation-todo |
tags: |
added: foundations-todo removed: foundation-todo |
Status changed to 'Confirmed' because the bug affects multiple users.