syscall: Segfault on Select on ARM64 and MIPS64 #24950
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
The
select
syscall takes a timespec param. If it contains a time of zero, select returns immediately. If it contains a positive amount of time, select times out after that amount of time. If it is null, it never times out. Sometimes this latter behavior is desirable. It's well documented, mentioned in the man page, and used widely. However, https://go-review.googlesource.com/c/sys/+/70610 introduced a regression whereby Go will segfault if the timespec is nil, on ARM64 and MIPS64.The current code for those platforms is:
The correct code should be:
Currently I'm having to patch my local installation of Go to produce working executables for Android devices.
CC: @ianlancetaylor @tklauser
The text was updated successfully, but these errors were encountered: