GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Include the "noexec" message in the UnsatisfiedLinkError chain (#15415) · netty/netty@b2ececa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • common/src/main/java/io/netty/util/internal
    • NativeLibraryLoader.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java‎

Copy file name to clipboardExpand all lines: common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java
+9-5Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,14 @@ public static void load(String originalName, ClassLoader loader) {
223223
// Pass "io.netty.native.workdir" as an argument to allow shading tools to see
224224
// the string. Since this is printed out to users to tell them what to do next,
225225
// we want the value to be correct even when shading.
226-
logger.info("{} exists but cannot be executed even when execute permissions set; " +
227-
"check volume for \"noexec\" flag; use -D{}=[path] " +
228-
"to set native working directory separately.",
229-
tmpFile.getPath(), "io.netty.native.workdir");
226+
String message = String.format(
227+
"%s exists but cannot be executed even when execute permissions set; " +
228+
"check volume for \"noexec\" flag; use -D%s=[path] " +
229+
"to set native working directory separately.",
230+
tmpFile.getPath(), "io.netty.native.workdir");
231+
logger.info(message);
232+
suppressed.add(ThrowableUtil.unknownStackTrace(
233+
new UnsatisfiedLinkError(message), NativeLibraryLoader.class, "load"));
230234
}
231235
} catch (Throwable t) {
232236
suppressed.add(t);
@@ -423,7 +427,7 @@ private static void loadLibraryByHelper(final Class<?> helper, final String name
423427
@Override
424428
public Object run() {
425429
try {
426-
// Invoke the helper to load the native library, if succeed, then the native
430+
// Invoke the helper to load the native library, if it succeeds, then the native
427431
// library belong to the specified ClassLoader.
428432
Method method = helper.getMethod("loadLibrary", String.class, boolean.class);
429433
method.setAccessible(true);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.