View previous topic :: View next topic |
Author |
Message |
tr1stan n00b
Joined: 06 Mar 2021 Posts: 49
|
Posted: Mon Apr 11, 2022 11:01 am Post subject: dlsym seems to be broken in sys-libs/glibc-2.34-r10:2.2 |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31383 Location: here
|
Posted: Mon Apr 11, 2022 11:03 am Post subject: |
|
|
Can help this topic? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
tr1stan n00b
Joined: 06 Mar 2021 Posts: 49
|
Posted: Mon Apr 11, 2022 11:35 am Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2887
|
Posted: Mon Apr 11, 2022 9:05 pm Post subject: |
|
|
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 |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2887
|
|
Back to top |
|
|
|