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
syscall: syscall.Exec crashes MacOS 10.9.3 #8471
Labels
Comments
I'm sorry that this code crashes your Mac. Can you please provide the following data 1. If there is any sort of crash report provided by OSX on restart, please attach it here. 2. Use the os/exec package which is specifically designed to do what you want. 3. Details about your hardware and OSX version as well as xcode version and the version of go used. It is possible that causing syscall.Exec without the correct arguments could crash the OSX kernel but that would be an issue in the kernel, not go (we're just an average user space process) Status changed to WaitingForReply. |
Thanks for the help, both of the suggested options works! exec.Command("cp", "-rf", "goTools/data/", service.Name+"/trunk/").Output() or binary, lookErr := exec.LookPath("cp") if lookErr != nil { panic(lookErr) } args := []string{"/bin/cp", "-rf", "goTools/data/", service.Name+"/trunk/"} env := os.Environ() execErr := syscall.Exec(binary, args, env) if execErr != nil { panic(execErr) } For completeness I attached the kernel panic, and it is happening on OS X 10.9.4 15-inch, Mid 2012 Xcode Version 5.1.1 (5B1008) Thanks again Attachments:
|
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by MrWanny:
The text was updated successfully, but these errors were encountered: