Error loading shared library after upgrade to Kubuntu 25.04

46 views
Skip to first unread message

Jan-Pieter Jacobs

unread,
Jun 3, 2025, 4:15:39 PM6/3/25
to fo...@jsoftware.com
Hi, I just wanted to report a problem I got recently.
After an upgrade from Kubuntu 24.10 to 25.04, I got the following error message:

"Load library ~/j9.7/bin/libj.so failed: ~/j9.7/bin/libj.so: cannot enable executable stack as shared object requires: Invalid argument"

_james_ on the #jsoftware IRC channel kindly pointed me to the solution:

install execstack, and do: execstack -c ~/j9.7/bin/libj.so

I have absolutely no clue what this performs, or what exactly triggers the problem, but now J works again. I added a note on the wiki to this end on the j9.7 installation page though I don't know if it's the right place and whether it's a problem that will be solved in the next release, or a bug in Kubuntu ... feel free to correct.

Best regards,
Jan-Pieter

Norman Drinkwater

unread,
Jun 3, 2025, 4:41:07 PM6/3/25
to fo...@jsoftware.com
This problem is related to glibc 2.41. I think it will be fixed in the next beta. In the meantime, if you run execstack -c path/to/libj.so it should fix the problem. Google glibc 2.41 execstack for further details.

To unsubscribe from this group and stop receiving emails from it, send an email to forum+un...@jsoftware.com.

Norman Drinkwater

unread,
Jun 3, 2025, 4:42:18 PM6/3/25
to fo...@jsoftware.com
Woops, sorry didn’t read to the end before replying!

Pascal Jasmin

unread,
Jun 28, 2025, 7:30:54 PM6/28/25
to fo...@jsoftware.com
execstack -c did not seem to fix problem for j9.7 or j9.6 for me.


usr/lib/paxtest/execstack -c ~/j9.6/bin/libj.so
Executable stack                         : Killed


though paxtest may be a different program that just used the same name.  All arguments to program return the same line above

execstack has been removed from direct debian repositories for a few years now.



Pascal Jasmin

unread,
Jun 28, 2025, 7:52:25 PM6/28/25
to 'Pascal Jasmin' via forum
was indeed wrong execstack.  Right one at  https://ftp.debian.org/debian/pool/main/p/prelink/


though to run jqt, execstack -c command had to be repeated.

Reply all
Reply to author
Forward
0 new messages