Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
1169-avoid-crash-when-tracer-erts_tracer_nil.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1169-avoid-crash-when-tracer-erts_tracer_nil.patch of Package erlang
From 4a02b68b796df5fb80aaaa8b60139b6d68ef70c3 Mon Sep 17 00:00:00 2001 From: Zeyu Zhang <zeyu@fb.com> Date: Tue, 22 Nov 2022 09:27:24 -0800 Subject: [PATCH] avoid crash when tracer = erts_tracer_nil --- erts/emulator/beam/erl_trace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erts/emulator/beam/erl_trace.c b/erts/emulator/beam/erl_trace.c index ec62e137d8..82d4cf728c 100644 --- a/erts/emulator/beam/erl_trace.c +++ b/erts/emulator/beam/erl_trace.c @@ -2633,6 +2633,9 @@ lookup_tracer_nif(const ErtsTracer tracer) { ErtsTracerNif tnif_tmpl; ErtsTracerNif *tnif; + if (tracer == erts_tracer_nil) { + return NULL; + } tnif_tmpl.module = ERTS_TRACER_MODULE(tracer); ERTS_LC_ASSERT(erts_thr_progress_lc_is_delaying() || erts_get_scheduler_id() > 0); erts_rwmtx_rlock(&tracer_mtx); -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor