File 0564-erts-Add-assert-in-process-info-signal-handling.patch of Package erlang

From 4ff6ed7388bbe71decbb65b98aa2564902f3f790 Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Tue, 13 Sep 2022 14:24:15 +0200
Subject: [PATCH] [erts] Add assert in process info signal handling

---
 erts/emulator/beam/erl_proc_sig_queue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/erts/emulator/beam/erl_proc_sig_queue.c b/erts/emulator/beam/erl_proc_sig_queue.c
index ad5610d817..4bee2a226a 100644
--- a/erts/emulator/beam/erl_proc_sig_queue.c
+++ b/erts/emulator/beam/erl_proc_sig_queue.c
@@ -3096,6 +3096,7 @@ handle_process_info(Process *c_p, ErtsSigRecvTracing *tracing,
                 *c_p->sig_qs.last = c_p->sig_qs.cont;
                 c_p->sig_qs.last = *next_nm_sig;
 
+                ASSERT(*next_nm_sig);
                 c_p->sig_qs.cont = **next_nm_sig;
                 if (c_p->sig_qs.nmsigs.last == *next_nm_sig)
                     c_p->sig_qs.nmsigs.last = &c_p->sig_qs.cont;
-- 
2.35.3

openSUSE Build Service is sponsored by