We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Operating System & Odin Version:
Please paste odin report output: Where to find more information and get into contact when you encounter a bug:
odin report
Website: https://odin-lang.org GitHub: https://github.com/odin-lang/Odin/issues
Useful information to add to a bug report:
Odin: dev-2024-04:efc3f9916 OS: Arch Linux ARM, Linux 6.7.9-1-MANJARO-ARM CPU: ARM64 RAM: 3862 MiB Backend: LLVM 14.0.6
package main import "core:sys/linux" import "core:fmt" main :: proc() { using linux pid, pid_err := fork() fmt.println("after fork") assert(pid_err == .NONE) if pid == 0 { argv := []cstring{ "/usr/bin/env", nil, } envp := []cstring{ "execy_env=1234", nil, } name := cstring("/usr/bin/env") fmt.println("in child") e_err := execve(name, raw_data(argv), raw_data(envp)) fmt.eprintln("unreachable") assert(e_err == .NONE) } else { fmt.println("in parent") status: i32 w_err := syscall(SYS_wait4, Pid(-1), &status, cast(u32)0, cast(rawptr) nil) assert(w_err >= 0) fmt.printfln("status: {}", status) } }
This program should work, but it sometimes does not.
This is the syscall for fork on arm64:
syscall(SYS_clone, Signal.SIGCHLD)
The current behaviour is that it sometimes fails to fork.
The clone syscall is documented as follows:
220 clone man/ cs/ DC unsigned long unsigned long int* int* unsigned long
The syscall should set all parameters.
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Please provide detailed steps for reproducing the issue.
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Operating System & Odin Version:
Please paste
odin report
output:Where to find more information and get into contact when you encounter a bug:
Website: https://odin-lang.org
GitHub: https://github.com/odin-lang/Odin/issues
Useful information to add to a bug report:
Expected Behavior
This program should work, but it sometimes does not.
Current Behavior
This is the syscall for fork on arm64:
syscall(SYS_clone, Signal.SIGCHLD)
The current behaviour is that it sometimes fails to fork.
The clone syscall is documented as follows:
The syscall should set all parameters.
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Failure Logs
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered: