otp
otp copied to clipboard
27.1 crash (core dump) while running `tprof`
Describe the bug
I wanted to use tprof on a running RabbitMQ node and the Beam crashed completely. I submitted a bunch of commands to the shell at once so I'm not sure which command was executing when it happened.
It looked like this:
> tprof:start(#{type => call_memory}), tprof:set_pattern('_', '_' , '_'), tprof:enable_trace(whereis(ra_log_wal)), timer:sleep(5000), Sample = tprof:collect().
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
[os_mon] memory supervisor port (memsup): Erlang has closed
make: *** [/home/kura/rabbitmq/server/ra-log-single-memtbl/deps/rabbit_common/mk/rabbitmq-run.mk:275: run-broker] Floating point exception (core dumped)
I've uploaded beam.smp and the core dump here:
https://drive.google.com/drive/folders/1VqXjDjNcvl06moBy4qbL7of1Ym4EEzQ9?usp=drive_link
Affected versions 27.1
Thanks for the good report. This was an over ten-year-old bug. Proposed fix in #8897.
Fix in OTP-26.2.5.4.