File 0148-Fix-erl-profile_boot-true-crash.patch of Package erlang (Revision d343fc579c8ccd2842bf83436ee72284)
Currently displaying revision d343fc579c8ccd2842bf83436ee72284 , Show latest
xxxxxxxxxx
1
From 4ebf557966c3449cf73219a5bb9b98c958336cf0 Mon Sep 17 00:00:00 2001
2
From: vk <v.katsuba.dev@gmail.com>
3
Date: Thu, 23 Dec 2021 15:04:34 +0200
4
Subject: [PATCH 1/2] Fix erl -profile_boot true crash
5
6
Inside of this function is used erlang:trace_info(_, call_time) which can return
7
{call_time, list()} | {call_time, boolean()} | {call_time, undefined}
8
The issue was in missing clause matching for {call_time, undefined}
9
---
10
erts/preloaded/src/init.erl | 2 ++
11
1 file changed, 2 insertions(+)
12
13
diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl
14
index 3b2ff529e0..810c596e57 100644
15
--- a/erts/preloaded/src/init.erl
16
+++ b/erts/preloaded/src/init.erl
17
18
collect_mfas(MFAs,Info);
19
{call_time, false} ->
20
collect_mfas(MFAs,Info);
21
+ {call_time, undefined} ->
22
+ collect_mfas(MFAs,Info);
23
{call_time, Data} ->
24
case collect_mfa(MFA,Data,0,0) of
25
{{0,_},_} ->
26
--
27
2.31.1
28
29