Menu

#198 13.08: UnsatisfiedLinkError on macOS 13.1

All
open
nobody
None
5
2023-06-20
2023-03-21
Ryan Kurtz
No

Error looking up function 'sched_getaffinity': dlsym(RTLD_DEFAULT, sched_getaffinity): symbol not found

java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
Caused by: java.lang.UnsatisfiedLinkError: Error looking up function 'sched_getaffinity': dlsym(RTLD_DEFAULT, sched_getaffinity): symbol not found
    at com.sun.jna.Function.<init>(Function.java:252)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:604)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:580)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:566)
    at com.sun.jna.Library$Handler.invoke(Library.java:243)
    at jdk.proxy1/jdk.proxy1.$Proxy0.sched_getaffinity(Unknown Source)
    at org.rzo.yajsw.os.posix.PosixProcess.handleAffinity(PosixProcess.java:1053)
    at org.rzo.yajsw.os.posix.bsd.BSDProcess.start(BSDProcess.java:224)
    at org.rzo.yajsw.wrapper.AbstractWrappedProcess.startInternal(AbstractWrappedProcess.java:1302)
    at org.rzo.yajsw.wrapper.AbstractWrappedProcess.start(AbstractWrappedProcess.java:1162)
    at org.rzo.yajsw.wrapper.WrappedProcessList.startAll(WrappedProcessList.java:26)
    at org.rzo.yajsw.WrapperExe.doConsole(WrapperExe.java:643)
    at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:158)
    at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:126)

Discussion

  • Ryan Kurtz

    Ryan Kurtz - 2023-03-22

    Is there a way to circumvent this exception by setting configuration properties?

     
    • Ryan Kurtz

      Ryan Kurtz - 2023-03-22

      Looking at the source, it seems like there is not a way.

       
  • rzo

    rzo - 2023-03-22

    hello,

    thanks for reporting this.
    the only workaround currently available would be to remove the affinity property in the configuration.

    i hope i can get this implemented during the coming weekend.

    -- Ron

     
  • rzo

    rzo - 2023-03-26

    my bad. you are right there is currently no workaround.

    i think i solved the issue. but i currently have no mac to test it.
    enclosed are the new jar files. could you pls override those in the main folder of yajsw release 13.08 and test it.
    the changed src files are on sourceforge-git.

    thanks.

     
  • Ryan Kurtz

    Ryan Kurtz - 2023-03-27

    Yep, that worked!

     
  • Ryan Kurtz

    Ryan Kurtz - 2023-03-27

    Speaking of macOS, do you know what versions you officially support? We used to have issues with Full Disk Access-related things using YAJSW 13.05. This new version you provided me, now that this exception is fixed, didn't seem to have that issue. Did you fix macOS related things since 13.05 that aren't in your release notes by any chance?

     
  • rzo

    rzo - 2023-03-27

    thanks for the feedback.

    concerning mac os: i do not own a mac and have to access a friend's when i want to test. The last version i was able to fully test was 10.5.5 which is quite some time ago. I mostly test on windows and linux and depend on feedback for other platforms.

    Since release 13.05 there were no mac specific changes. most changes were lib upgrades. Maybe one of these resolved the full disk access related issue.

    -- Ron

     
  • Ryan Kurtz

    Ryan Kurtz - 2023-06-20

    This can be closed.

     

Log in to post a comment.