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
The following program crashes after less than a second.
package main import ( "os" "runtime/pprof" ) func main() { f, _ := os.Create("demo.pprof") pprof.StartCPUProfile(f) for { } }
The crash only happens in profiling mode.
When run under the eyes of ktruss -t A -R, the program does this:
ktruss -t A -R
thread | relative time | syscall ... 2 0.000011454 __nanosleep50 = 0 2 0.000035199 __clock_gettime50(0, 0xc820037ee8) = 0 2 0.000033803 __clock_gettime50(0, 0xc820037ed0) = 0 3 -1.979777508 stop kernel 3 0.020298198 resume kernel 3 0.000010895 compat_60__lwp_park Err#4 EINTR 3 0.000015364 SIGPROF caught handler=0x455aa0 mask=0x0 code=0x0 3 0.000084925 setcontext(0x40) Err#14 EFAULT 3 0.000009499 exit(0xffffffffffffffff) 2 -1.999839927 stop kernel 2 0.000196948 resume kernel 2 0.000006984 __nanosleep50 Err#4 EINTR 3 -1.999966198 stop kernel 3 0.000063973 resume kernel 3 0.000009777 stop kernel 3 0.000053079 resume kernel
The text was updated successfully, but these errors were encountered:
Can you try this with master? (which is soon to become Go 1.6) The Go 1.5.x. tree is frozen except for critical problems and security things, and this is neither.
Sorry, something went wrong.
I tried to reproduce this issue using master 66a7097, but building the master failed, as detailed in #13945.
Updated pkglint to 5.3.1
c51abc0
Changes since 5.3: * disabled CPU profiling on NetBSD, since it crashes without any output; see golang/go#13914
Now that #13945 is fixed, I tried again with master 7d8c8c0, and it works perfectly.
Great! Closing this, then.
No branches or pull requests
The following program crashes after less than a second.
The crash only happens in profiling mode.
When run under the eyes of
ktruss -t A -R
, the program does this:The text was updated successfully, but these errors were encountered: