Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949391 - net-im/discord may need special handling with glibc-2.41 (executable stack)
Summary: net-im/discord may need special handling with glibc-2.41 (executable stack)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randall
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.41
  Show dependency tree
 
Reported: 2025-02-07 12:17 UTC by Andreas K. Hüttel
Modified: 2025-02-08 15:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2025-02-07 12:17:50 UTC
glibc-2.41 release notes:

dlopen and dlmopen no longer make the stack executable if a shared
library requires it, either implicitly because of a missing GNU_STACK
ELF header (and default ABI permission having the executable bit set)
or explicitly because of the executable bit in GNU_STACK, and the
stack is not already executable. Instead, loading such objects will
fail.

Apparently this affects discord-0.0.84

https://archlinux.org/news/glibc-241-corrupting-discord-installation/
Comment 1 Nick Sarnie gentoo-dev 2025-02-07 12:24:29 UTC
The Arch article says it was fixed in package version 0.0.84-1, and in the changelog for that version, the only change was updating the script to point to the new upstream package, so I think the issue was fixed upstream and since we already and only ship the 0.0.84 upstream package, there should be no problem.

It would help if someone using glibc-2.41 could verify the issue on 0.0.83 and confirm it's fixed on 0.0.84 though.
Comment 2 Kostadin Shishmanov 2025-02-07 15:15:51 UTC
I've just tested 0.0.83 and 0.0.84, and it is indeed fixed with 0.0.84. The issue was two node modules in the config directory of Discord were built with execstack when they shouldn't have been. Not sure how that would've been solved on Gentoo's side, since the modules sit in the user's home directory.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2025-02-07 15:34:26 UTC
OK. Feel free to close this then. I just wanted to make sure that people know...
Comment 4 Nick Sarnie gentoo-dev 2025-02-08 15:44:42 UTC
Thank you Kostadin!