Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dlsym seems to be broken in sys-libs/glibc-2.34-r10:2.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
tr1stan
n00b
n00b


Joined: 06 Mar 2021
Posts: 49

PostPosted: Mon Apr 11, 2022 11:01 am    Post subject: dlsym seems to be broken in sys-libs/glibc-2.34-r10:2.2 Reply with quote

I recently did a world update and glibc was one of the update packages.
After that some applications requiring dlsym do not work. (libstrangle, mangohud).

Code:
Strangle: fatal error: cannot find real dlsym: (null) Aborted


Code:

Wrapper command is:
gamemoderun mangohud --dlsym


Minecraft process ID: 23972


gamemodeauto:
can't get dlopen()
Process exited with code 1.



Could not find a bug report of any kind or should adding some useflags fix anything? I do not think downgrading glibc is good idea.
_________________
gentoo is nice :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Mon Apr 11, 2022 11:03 am    Post subject: Reply with quote

Can help this topic?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
tr1stan
n00b
n00b


Joined: 06 Mar 2021
Posts: 49

PostPosted: Mon Apr 11, 2022 11:35 am    Post subject: Reply with quote

Already have looked into the post.
I do not have
Code:
-fcf-protection=full
nor any of the mentioned bug reports seem to include any info about dlsym.
_________________
gentoo is nice :)
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Mon Apr 11, 2022 9:05 pm    Post subject: Reply with quote

I've been meaning to add libstrangle to the tree for a while now, but this is the reason I still haven't.

There's two things with it:
1. the dlsym fix for >=glibc-2.34 is in master but hasn't been released yet (could do a snapshot, but there's #2)
2. the fix doesn't work on Gentoo because it uses the missing DT_HASH rather than DT_GNU_HASH, see this old comment by me, seems someone opened a new issue too.

Edit:
Believe lack of DT_HASH was caused by a old change for bug #347761 better explained in bug #527504. Unfortunately the old method to find the "true dlsym" which didn't walk the hash table apparently no longer works in glibc-2.34 given dlsym is now part of libc itself. Unsure for a better method.

You could always file a bug to gentoo to try to get DT_HASH restored in glibc I guess, albeit it's rarely needed (was hoping upstream would have a fix that use GNU_HASH instead given it's supposedly better, they mentioned they'd look into it but nothing came of it yet -- I have no real idea about using these and haven't tried to do it myself, nor know if it's easily doable).
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Mon Apr 25, 2022 12:17 am    Post subject: Reply with quote

libstrangle is in the tree now, and should work as expected

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac1b7e0eeda71029d1c9faba0a3bb56386ae9cc2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum