From 042677624b1d7b3f4c99be4e1483180e7fe8b2c0 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Thu, 28 Jan 2016 15:09:35 +0100 Subject: erts: Fix bug concerning line information for hipe modules Line table was left uninitialized for hipe (stub) modules causing process_info(OtherPid, current_location) to crash. --- erts/emulator/beam/beam_load.c | 1 + 1 file changed, 1 insertion(+) diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c index b70e5b9a2d..a6dce2d1d2 100644 --- a/erts/emulator/beam/beam_load.c +++ b/erts/emulator/beam/beam_load.c @@ -6249,6 +6249,7 @@ erts_make_stub_module(Process* p, Eterm Mod, Eterm Beam, Eterm Info) code[MI_LITERALS_END] = 0; code[MI_LITERALS_OFF_HEAP] = 0; code[MI_ON_LOAD_FUNCTION_PTR] = 0; + code[MI_LINE_TABLE] = 0; code[MI_MD5_PTR] = 0; ci = MI_FUNCTIONS + n + 1; -- cgit v1.2.3