tikv / pprof-rs

A Rust CPU profiler implemented with the help of backtrace-rs
Apache License 2.0
1.29k stars 99 forks source link

My process exits soon after start cpu profiler #186

Open PeakerChen opened 1 year ago

PeakerChen commented 1 year ago

let _p_guard = pprof::ProfilerGuardBuilder::default() .frequency(1000) .blocklist(&["libc", "libgcc", "pthread", "vdso"]) .build() .unwrap();

Execute the above code in main,my process exit after 10s,

Process finished with exit code 133 (interrupted by signal 5: SIGTRAP)

clarkmcc commented 7 months ago

Same issue here. I tried adding the profiler to surrealdb and this happened to me except it exited immediately.