diff options
author | Björn Gustavsson <[email protected]> | 2015-07-08 16:13:30 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-07-08 16:30:03 +0200 |
commit | b3b9d321ce0622e1d774ad54e9700e22edde8abd (patch) | |
tree | 8bbc9d7d47451732cfc4ff7e5a0ce567fe71c6e4 /otp_build | |
parent | 832aa9e06aced4975c9cb02257f74827602217aa (diff) | |
download | otp-b3b9d321ce0622e1d774ad54e9700e22edde8abd.tar.gz otp-b3b9d321ce0622e1d774ad54e9700e22edde8abd.tar.bz2 otp-b3b9d321ce0622e1d774ad54e9700e22edde8abd.zip |
Fix crash when disassembling modules with BIFs
In a debug-compiled emulator, running erts_debug:df(io) would
trigger an assertion failure:
1> erts_debug:df(io).
beam/beam_debug.c:301:erts_debug_disassemble_1() Assertion failed: (((funcinfo[0]) & 0x3F) == ((0x0 << 4) | ((0x2 << 2) | 0x3)))
Aborted (core dumped)
It turns out that the assertion is wrong. It should have been
updated in 64ccd8c9b7a7 which made it possible to have stubs for
BIFs in the BEAM code for a module. The faulty assertion was only
found when when 16317f73f79265 added a smoke test of the BEAM
disassembler.
Diffstat (limited to 'otp_build')
0 files changed, 0 insertions, 0 deletions