Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Segfault on busybox image #5

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Fix Segfault on busybox image #5

merged 2 commits into from
Oct 19, 2023

Conversation

xsc
Copy link
Member

@xsc xsc commented Oct 19, 2023

Currently, the action fails with a segfault, apparently while trying to connect to the Docker socket:

2023-10-18T10:52:20.9600898Z --- Building ...
2023-10-18T10:52:21.8726288Z [into] Building image [test-image-basic:latest] from '/github/workspace/test' ...
2023-10-18T10:52:21.8728441Z [into] Pulling necessary images ...
2023-10-18T10:52:21.8729194Z [into]   Pulling image [intodocker/clojure] ...
2023-10-18T10:52:22.0628052Z 
2023-10-18T10:52:22.0628934Z [ [ SubstrateSegfaultHandler caught a segfault. ] ]
...
2023-10-18T10:52:22.1039757Z   SP 00007ffd1ca68768 IP 0000000000027020  IP is not within Java code. Trying frame anchor of last Java frame instead.
2023-10-18T10:52:22.1041251Z   SP 00007ffd1ca68d50 IP 00000000007c879b  [image code] com.oracle.svm.core.posix.headers.Dlfcn.dlopen(Dlfcn.java)
2023-10-18T10:52:22.1042828Z   SP 00007ffd1ca68d50 IP 00000000007c879b  [image code] com.oracle.svm.core.posix.PosixUtils.dlopen(PosixUtils.java:232)
2023-10-18T10:52:22.1044797Z   SP 00007ffd1ca68da0 IP 00000000007c739c  [image code] com.oracle.svm.core.posix.PosixNativeLibrarySupport$PosixNativeLibrary.doLoad(PosixNativeLibraryFeature.java:190)
2023-10-18T10:52:22.1047106Z   SP 00007ffd1ca68dc0 IP 00000000007af324  [image code] com.oracle.svm.core.posix.PosixNativeLibrarySupport$PosixNativeLibrary.load(PosixNativeLibraryFeature.java:174)
2023-10-18T10:52:22.1049203Z   SP 00007ffd1ca68dc0 IP 00000000007af324  [image code] com.oracle.svm.core.jdk.NativeLibrarySupport.addLibrary(NativeLibrarySupport.java:177)
2023-10-18T10:52:22.1051417Z   SP 00007ffd1ca68e40 IP 00000000007b02fe  [image code] com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibrary0(NativeLibrarySupport.java:142)
2023-10-18T10:52:22.1053502Z   SP 00007ffd1ca68e60 IP 00000000007b03c0  [image code] com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryAbsolute(NativeLibrarySupport.java:101)
2023-10-18T10:52:22.1055285Z   SP 00007ffd1ca68e90 IP 0000000000b1994b  [image code] java.lang.ClassLoader.loadLibrary(ClassLoader.java:195)
2023-10-18T10:52:22.1061736Z   SP 00007ffd1ca68ec0 IP 0000000000b3a59e  [image code] java.lang.Runtime.load0(Runtime.java:768)
2023-10-18T10:52:22.1063156Z   SP 00007ffd1ca68ef0 IP 00000000010c969d  [image code] java.lang.System.load(System.java:1835)
2023-10-18T10:52:22.1064834Z   SP 00007ffd1ca68ef0 IP 00000000010c969d  [image code] org.newsclub.net.unix.NativeLibraryLoader$ClasspathLibraryCandidate.load(NativeLibraryLoader.java:164)
2023-10-18T10:52:22.1066850Z   SP 00007ffd1ca68f40 IP 00000000010cd6ca  [image code] org.newsclub.net.unix.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:248)
2023-10-18T10:52:22.1068661Z   SP 00007ffd1ca68fb0 IP 00000000010ce6d5  [image code] org.newsclub.net.unix.NativeUnixSocket.<clinit>(NativeUnixSocket.java:40)
2023-10-18T10:52:22.1071093Z   SP 00007ffd1ca68fd0 IP 000000000077e1b3  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:375)
2023-10-18T10:52:22.1073563Z   SP 00007ffd1ca68fd0 IP 000000000077e1b3  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:295)
2023-10-18T10:52:22.1075566Z   SP 00007ffd1ca69180 IP 00000000010c17df  [image code] org.newsclub.net.unix.AFUNIXSocket.setIsCreated(AFUNIXSocket.java:56)
2023-10-18T10:52:22.1077158Z   SP 00007ffd1ca691a0 IP 00000000010c0667  [image code] org.newsclub.net.unix.AFUNIXSocket.<init>(AFUNIXSocket.java:50)
2023-10-18T10:52:22.1079073Z   SP 00007ffd1ca691c0 IP 00000000010c157a  [image code] org.newsclub.net.unix.AFUNIXSocket.newInstance(AFUNIXSocket.java:79)
2023-10-18T10:52:22.1080743Z   SP 00007ffd1ca691e0 IP 00000000015f591b  [image code] org.newsclub.net.unix.AFUNIXSocket.newInstance(AFUNIXSocket.java:74)
2023-10-18T10:52:22.1082501Z   SP 00007ffd1ca691e0 IP 00000000015f591b  [image code] unixsocket_http.impl.FixedPathUnixSocket$_init.invokeStatic(FixedPathUnixSocket.clj:30)

Unfortunately, I could not get it working with the busybox image, so I had to switch to ubuntu:jammy and manually install curl and unzip.

@xsc xsc merged commit 5743c2f into main Oct 19, 2023
4 checks passed
@xsc xsc deleted the fix/segfault branch October 19, 2023 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant