-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
tprof can crash with {bad_generator, undefined}
#8483
Comments
I cannot reproduce it with your example using 27.0, can you check if you still can? What I did was:
|
Interesting, I can very easily reproduce it on macOS using 27.0 but I can't on Linux. on macOS it just took a second or so to get this:
|
How odd, guess I'll have to switch to a mac to debug further. |
Can't reproduce on my Intel mac.... I assume you are running an arm machine? |
Yes, M1Pro |
This happens when It might be (note: since Update: I managed to reproduce this on Linux.
This can, for example, happen if
I can make a PR, but let me think on a good test case causing that specific race (module unloaded in between of |
aha, that would explain it. A PR would be most welcome even if you cannot come up with a good testcase. |
Describe the bug
tprof can crash with the following error:
To Reproduce
I don't have a deterministic way to reproduce. However, using the following loops I can trigger it within seconds.
I'm using https://github.com/max-au/erlperf just to easily generate some activity
rebar3 shell
While this example is somewhat artificial, I suspect the problem is timing related and therefore short lived processes and short tprof captures make it easy to trigger it. Originally I hit this issue under more usual circumstances.
Affected versions
Current
master
(I'm running d15e18e, from May 9th exactly)The text was updated successfully, but these errors were encountered: