Skip to content

Avoid statx syscall on Android API < 30 to prevent SIGSYS crash#2

Open
sky130 wants to merge 1 commit into
MohammedKHC:android-nativefrom
sky130:android-native
Open

Avoid statx syscall on Android API < 30 to prevent SIGSYS crash#2
sky130 wants to merge 1 commit into
MohammedKHC:android-nativefrom
sky130:android-native

Conversation

@sky130

@sky130 sky130 commented Apr 28, 2026

Copy link
Copy Markdown

Stack trace points to okio.PosixFileSystem.variantMetadataOrNull() calling the statx syscall. On Android API 26, statx is blocked by seccomp and the kernel directly sends SIGSYS to the process. Execution never reaches the fallback lstat path because the signal terminates the app immediately.

Fatal signal 31 (SIGSYS), code 1 in tid 29348 (package-name)
(kfun:okio#variantMetadataOrNull__at__okio.PosixFileSystem(okio.Path){}okio.FileMetadata?+1136)
(kfun:okio.PosixFileSystem#metadataOrNull(okio.Path){}okio.FileMetadata?+88)
(kfun:okio.FileSystem#metadataOrNull(okio.Path){}okio.FileMetadata?-trampoline+64)
(kfun:okio.internal#commonExists__at__okio.FileSystem(okio.Path){}kotlin.Boolean+132)
(kfun:okio.FileSystem#exists(okio.Path){}kotlin.Boolean+80)
(kfun:okio.internal#commonCreateDirectories__at__okio.FileSystem(okio.Path;kotlin.Boolean){}+536)
(kfun:okio.FileSystem#createDirectories(okio.Path;kotlin.Boolean){}+108)
(kfun:okio.FileSystem#createDirectories$default(okio.Path;kotlin.Boolean;kotlin.Int){}+172)

@sky130 sky130 marked this pull request as draft April 28, 2026 16:12
@sky130 sky130 marked this pull request as ready for review April 29, 2026 03:51
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