otp icon indicating copy to clipboard operation
otp copied to clipboard

27.1 crash (core dump) while running `tprof`

Open mkuratczyk opened this issue 1 year ago • 2 comments

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

mkuratczyk avatar Sep 20 '24 12:09 mkuratczyk

Thanks for the good report. This was an over ten-year-old bug. Proposed fix in #8897.

sverker avatar Oct 03 '24 15:10 sverker

Fix in OTP-26.2.5.4.

sverker avatar Oct 09 '24 11:10 sverker