tikv / pprof-rs

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

Getting a seg fault with no error or line number #203

Open JohnAllen opened 1 year ago

JohnAllen commented 1 year ago

Getting a seg fault with no error printed. I'm not using any other profilers. Tried a bunch of things (turning off flame graph and not using parallel iterations and stuff) but to no avail. Using 0.11.1. Tried --release and without it. Sorry I can't help more.

The only thing i do get is a number before segmentation fault which changes, e.g. 2953 segmentation fault and 3108 segmentation fault. Not sure what that is as I'm still new to Rust.

hi-rustin commented 1 year ago

Could you please provide more information about your environment? Or could provide a minimal project which can reproduce it.

ccqpein commented 1 year ago

@hi-rustin . I think I got the same problem when I was benchmarking my code. I make a minimal piece of code to reproduce the issue here. Copy this bench file and run it can cause the issue.

I think it is because of format! macro.

My env: