Fork me on GitHub
#graalvm
<
2022-02-11
>
Adam Helins10:02:41

I cannot find anything about that, maybe some of you smart people will have an insight :thinking_face: I'm consuming a Java lib in a Clojure program that does some networking using NIO ; compiling successfully to a native image. When running, more precisely when java.nio.channels.Selector is .wakeup , it crashes:

#error {
 :cause Bad file descriptor
 :via
 [{:type java.lang.InternalError
   :message java.io.IOException: Bad file descriptor
   :at [sun.nio.ch.KQueueSelectorImpl wakeup KQueueSelectorImpl.java 295]}
  {:type java.io.IOException
   :message Bad file descriptor
   :at [com.oracle.svm.jni.JNIJavaCallWrappers jniInvoke_VA_LIST:Ljava_io_IOException_2_0002e_0003cinit_0003e_00028Ljava_lang_String_2_00029V JNIJavaCallWrappers.java 0]}]
 :trace
 [[com.oracle.svm.jni.JNIJavaCallWrappers jniInvoke_VA_LIST:Ljava_io_IOException_2_0002e_0003cinit_0003e_00028Ljava_lang_String_2_00029V JNIJavaCallWrappers.java 0]
  [sun.nio.ch.IOUtil write1 IOUtil.java -1]
  [sun.nio.ch.KQueueSelectorImpl wakeup KQueueSelectorImpl.java 293]

borkdude11:02:24

@adam678 I recommend posting this in the graalvm community slack as this might be a graalvm bug. Or open an issue about it directly

👍 1