MangoHud doesn't start with dlsym hooking

Bug #1993862 reported by Sven Grewe
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
goverlay (Ubuntu)
Confirmed
Undecided
Unassigned
mangohud (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

# The problem
Mangohud 0.6.5-2 in jammy breaks Goverlay and doesn't work with multiple 3D applications.

# Reproducing the bug
1
. Have 3D applications or games like e.g. SuperTuxKart and SuperTux from the official Ubuntu repo installed on your system.
(If GOverlay is installed the 3D test apps with the commands "glxgears" and "vkcube" are installed too.)
2. Open a terminal and type "mangohud --dlsym your-application"

With "mangohud --dlsym supertuxkart" I get: "can't get libdl.so" and nothing starts.

"mangohud --dlsym supertux2" gives the same output: "can't get libdl.so"

"mangohud glxgears" output is: "can't get libdl.so"

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mangohud 0.6.5-2
ProcVersionSignature: Ubuntu 5.15.0-52.58-generic 5.15.60
Uname: Linux 5.15.0-52-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 21 23:25:41 2022
SourcePackage: mangohud
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sven Grewe (sjgrewe) wrote :
Sven Grewe (sjgrewe)
description: updated
Sven Grewe (sjgrewe)
summary: - doesn't start with dlsym hooking
+ MangoHud doesn't start with dlsym hooking
Revision history for this message
Sven Grewe (sjgrewe) wrote (last edit ):

The GOverlay package also uses "mangohud --dlsym /usr/libexec/goverlay". That's the reason why it doesn't work too.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in goverlay (Ubuntu):
status: New → Confirmed
Changed in mangohud (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch: Try to find dlopen/dlsym from libc.so too" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Sven Grewe (sjgrewe) wrote :

The provided patch is cherry-picked from upstream ( https://github.com/flightlessmango/MangoHud/commit/ced84ec526d37097b66aa89e1d93e87d7e9a2780 ). It seems to fix this problem for the MangoHud package version 0.6.5-2.

With this patch it will find the library/-ies correctly I guess and you can start MangoHud with the "--dlsym" parameter successfully.

Sven Grewe (sjgrewe)
description: updated
Sven Grewe (sjgrewe)
description: updated
Revision history for this message
Taleman (tapio-lehtonen) wrote :

Is the fix applied and a new version coming to 22.04?

Revision history for this message
Sven Grewe (sjgrewe) wrote :

The fix is not applied to the broken version 0.6.5 in Jammy (22.04) yet.

Later versions of MangoHud (0.6.6 or newer) aren't affected by this. I can't say when the patch or a newer version will come to Jammy (22.04).

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.