==2431370==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d000476980 at pc 0x00000dc1f915 bp 0x7ff68c72f0a0 sp 0x7ff68c72f098 READ of size 8 at 0x60d000476980 thread T622 #0 0xdc1f914 in GHOST_ActivateGPUContext blender/intern/ghost/intern/GHOST_C-api.cc:725 #1 0x450a064 in WM_system_gpu_context_activate blender/source/blender/windowmanager/intern/wm_window.c:2689 #2 0xad2e887 in RE_engine_gpu_context_destroy blender/source/blender/render/intern/engine.cc:1319 #3 0x1095beae in ccl::BlenderDisplayDriver::gpu_context_destroy() blender/intern/cycles/blender/display_driver.cpp:838 #4 0x1095d432 in ccl::BlenderDisplayDriver::gpu_resources_destroy() blender/intern/cycles/blender/display_driver.cpp:891 #5 0x10955ba2 in ccl::BlenderDisplayDriver::~BlenderDisplayDriver() blender/intern/cycles/blender/display_driver.cpp:452 #6 0x10955d89 in ccl::BlenderDisplayDriver::~BlenderDisplayDriver() blender/intern/cycles/blender/display_driver.cpp:453 #7 0x1087865b in std::default_delete::operator()(ccl::DisplayDriver*) const /usr/include/c++/12/bits/unique_ptr.h:95 #8 0x108746a3 in std::unique_ptr >::~unique_ptr() /usr/include/c++/12/bits/unique_ptr.h:396 #9 0x13caf71e in ccl::PathTraceDisplay::~PathTraceDisplay() blender/intern/cycles/integrator/../integrator/path_trace_display.h:30 #10 0x13caf759 in ccl::PathTraceDisplay::~PathTraceDisplay() blender/intern/cycles/integrator/../integrator/path_trace_display.h:30 #11 0x13c831a1 in std::default_delete::operator()(ccl::PathTraceDisplay*) const /usr/include/c++/12/bits/unique_ptr.h:95 #12 0x13c86039 in std::__uniq_ptr_impl >::reset(ccl::PathTraceDisplay*) /usr/include/c++/12/bits/unique_ptr.h:203 #13 0x13c862e7 in std::unique_ptr >::reset(ccl::PathTraceDisplay*) /usr/include/c++/12/bits/unique_ptr.h:501 #14 0x13c82153 in std::unique_ptr >::operator=(decltype(nullptr)) /usr/include/c++/12/bits/unique_ptr.h:434 #15 0x13c4108b in ccl::PathTrace::set_display_driver(std::unique_ptr >) blender/intern/cycles/integrator/path_trace.cpp:594 #16 0x13721f88 in ccl::Session::set_display_driver(std::unique_ptr >) blender/intern/cycles/session/session.cpp:631 #17 0x108521aa in ccl::BlenderSession::render_frame_finish() blender/intern/cycles/blender/session.cpp:509 #18 0x1081b05d in render_frame_finish_func blender/intern/cycles/blender/python.cpp:261 #19 0x85c91f in cfunction_call Objects/methodobject.c:552 #20 0x83718a in _PyObject_MakeTpCall Objects/call.c:215 #21 0x8981ea in _PyObject_VectorcallTstate Include/cpython/abstract.h:112 #22 0x8981ea in _PyObject_VectorcallTstate Include/cpython/abstract.h:99 #23 0x8981ea in PyObject_Vectorcall Include/cpython/abstract.h:123 #24 0x8981ea in call_function Python/ceval.c:5893 #25 0x8981ea in _PyEval_EvalFrameDefault Python/ceval.c:4181 #26 0x891bd1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46 #27 0x891bd1 in _PyEval_Vector Python/ceval.c:5067 #28 0x8979d6 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114 #29 0x8979d6 in PyObject_Vectorcall Include/cpython/abstract.h:123 #30 0x8979d6 in call_function Python/ceval.c:5893 #31 0x8979d6 in _PyEval_EvalFrameDefault Python/ceval.c:4181 #32 0x891bd1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46 #33 0x891bd1 in _PyEval_Vector Python/ceval.c:5067 #34 0x6fffbb8 in bpy_class_call blender/source/blender/python/intern/bpy_rna.c:8623 #35 0x6b0ddf7 in engine_render_frame_finish blender/source/blender/makesrna/intern/rna_render.cc:180 #36 0xad2c927 in RE_engine_render blender/source/blender/render/intern/engine.cc:1121 #37 0xad57914 in do_render_engine blender/source/blender/render/intern/pipeline.cc:1085 #38 0xad5a0f6 in do_render_compositor blender/source/blender/render/intern/pipeline.cc:1221 #39 0xad5eaec in do_render_full_pipeline blender/source/blender/render/intern/pipeline.cc:1474 #40 0xad642dd in RE_RenderFrame blender/source/blender/render/intern/pipeline.cc:1889 #41 0x9da98cc in render_startjob blender/source/blender/editors/render/render_internal.cc:727 #42 0x4478991 in do_job_thread blender/source/blender/windowmanager/intern/wm_jobs.c:387 #43 0x43897da in tslot_thread_start blender/source/blender/blenlib/intern/threads.cc:177 #44 0x7ff7000ae12c in start_thread (/lib64/libc.so.6+0x8b12c) #45 0x7ff70012fbbf in __clone3 (/lib64/libc.so.6+0x10cbbf) 0x60d000476980 is located 0 bytes inside of 136-byte region [0x60d000476980,0x60d000476a08) freed by thread T0 here: #0 0x7ff709cbc0a8 in operator delete(void*, unsigned long) (/lib64/libasan.so.8+0xbc0a8) #1 0xddb6186 in GHOST_ContextEGL::~GHOST_ContextEGL() blender/intern/ghost/intern/GHOST_ContextEGL.cc:239 #2 0xdd34b53 in GHOST_SystemWayland::disposeContext(GHOST_IContext*) blender/intern/ghost/intern/GHOST_SystemWayland.cc:6352 #3 0xdc17517 in GHOST_DisposeGPUContext blender/intern/ghost/intern/GHOST_C-api.cc:153 #4 0x450a000 in WM_system_gpu_context_dispose blender/source/blender/windowmanager/intern/wm_window.c:2683 #5 0xad2eb8b in RE_engine_gpu_context_destroy blender/source/blender/render/intern/engine.cc:1329 #6 0x1095beae in ccl::BlenderDisplayDriver::gpu_context_destroy() blender/intern/cycles/blender/display_driver.cpp:838 #7 0x1095d432 in ccl::BlenderDisplayDriver::gpu_resources_destroy() blender/intern/cycles/blender/display_driver.cpp:891 #8 0x10955ba2 in ccl::BlenderDisplayDriver::~BlenderDisplayDriver() blender/intern/cycles/blender/display_driver.cpp:452 #9 0x10955d89 in ccl::BlenderDisplayDriver::~BlenderDisplayDriver() blender/intern/cycles/blender/display_driver.cpp:453 #10 0x1087865b in std::default_delete::operator()(ccl::DisplayDriver*) const /usr/include/c++/12/bits/unique_ptr.h:95 #11 0x108746a3 in std::unique_ptr >::~unique_ptr() /usr/include/c++/12/bits/unique_ptr.h:396 #12 0x13caf71e in ccl::PathTraceDisplay::~PathTraceDisplay() blender/intern/cycles/integrator/../integrator/path_trace_display.h:30 #13 0x13caf759 in ccl::PathTraceDisplay::~PathTraceDisplay() blender/intern/cycles/integrator/../integrator/path_trace_display.h:30 #14 0x13c831a1 in std::default_delete::operator()(ccl::PathTraceDisplay*) const /usr/include/c++/12/bits/unique_ptr.h:95 #15 0x13c86039 in std::__uniq_ptr_impl >::reset(ccl::PathTraceDisplay*) /usr/include/c++/12/bits/unique_ptr.h:203 #16 0x13c862e7 in std::unique_ptr >::reset(ccl::PathTraceDisplay*) /usr/include/c++/12/bits/unique_ptr.h:501 #17 0x13c82153 in std::unique_ptr >::operator=(decltype(nullptr)) /usr/include/c++/12/bits/unique_ptr.h:434 #18 0x13c4108b in ccl::PathTrace::set_display_driver(std::unique_ptr >) blender/intern/cycles/integrator/path_trace.cpp:594 #19 0x13721f88 in ccl::Session::set_display_driver(std::unique_ptr >) blender/intern/cycles/session/session.cpp:631 #20 0x108521aa in ccl::BlenderSession::render_frame_finish() blender/intern/cycles/blender/session.cpp:509 #21 0x1081b05d in render_frame_finish_func blender/intern/cycles/blender/python.cpp:261 #22 0x85c91f in cfunction_call Objects/methodobject.c:552 previously allocated by thread T0 here: #0 0x7ff709cbb1a8 in operator new(unsigned long) (/lib64/libasan.so.8+0xbb1a8) #1 0xdd33733 in createOffscreenContext_impl blender/intern/ghost/intern/GHOST_SystemWayland.cc:6263 #2 0xdd3440e in GHOST_SystemWayland::createOffscreenContext(GHOST_GPUSettings) blender/intern/ghost/intern/GHOST_SystemWayland.cc:6325 #3 0xdc17319 in GHOST_CreateGPUContext blender/intern/ghost/intern/GHOST_C-api.cc:144 #4 0x4509f53 in WM_system_gpu_context_create blender/source/blender/windowmanager/intern/wm_window.c:2677 #5 0xad2e3c1 in RE_engine_gpu_context_create blender/source/blender/render/intern/engine.cc:1290 #6 0x1095b870 in ccl::BlenderDisplayDriver::gpu_context_create() blender/intern/cycles/blender/display_driver.cpp:814 #7 0x109557e5 in ccl::BlenderDisplayDriver::BlenderDisplayDriver(BL::RenderEngine&, BL::Scene&, bool) blender/intern/cycles/blender/display_driver.cpp:447 #8 0x10874d0c in std::__detail::_MakeUniq::__single_object std::make_unique(BL::RenderEngine&, BL::Scene&, bool&) /usr/include/c++/12/bits/unique_ptr.h:1065 #9 0x1085fab1 in ccl::BlenderSession::ensure_display_driver_if_needed() blender/intern/cycles/blender/session.cpp:1084 #10 0x1084cc75 in ccl::BlenderSession::render(BL::Depsgraph&) blender/intern/cycles/blender/session.cpp:343 #11 0x1081ae15 in render_func blender/intern/cycles/blender/python.cpp:241 #12 0x85c91f in cfunction_call Objects/methodobject.c:552 Thread T622 created by T0 here: #0 0x7ff709c4b3e6 in __interceptor_pthread_create (/lib64/libasan.so.8+0x4b3e6) #1 0x4389a17 in BLI_threadpool_insert blender/source/blender/blenlib/intern/threads.cc:191 #2 0x4479ad0 in WM_jobs_start blender/source/blender/windowmanager/intern/wm_jobs.c:478 #3 0x9dae01b in screen_render_invoke blender/source/blender/editors/render/render_internal.cc:1144 #4 0x4404329 in wm_operator_invoke blender/source/blender/windowmanager/intern/wm_event_system.cc:1532 #5 0x440e975 in wm_handler_operator_call blender/source/blender/windowmanager/intern/wm_event_system.cc:2568 #6 0x4414844 in wm_handlers_do_keymap_with_keymap_handler blender/source/blender/windowmanager/intern/wm_event_system.cc:2964 #7 0x441cadb in wm_handlers_do_intern blender/source/blender/windowmanager/intern/wm_event_system.cc:3295 #8 0x441e2df in wm_handlers_do blender/source/blender/windowmanager/intern/wm_event_system.cc:3432 #9 0x4429546 in wm_event_do_handlers blender/source/blender/windowmanager/intern/wm_event_system.cc:4143 #10 0x43d9417 in WM_main blender/source/blender/windowmanager/intern/wm.c:637 #11 0x8dfc48 in main blender/source/creator/creator.c:576 #12 0x7ff70004a50f in __libc_start_call_main (/lib64/libc.so.6+0x2750f) SUMMARY: AddressSanitizer: heap-use-after-free blender/intern/ghost/intern/GHOST_C-api.cc:725 in GHOST_ActivateGPUContext Shadow bytes around the buggy address: 0x0c1a80086ce0: fa fa fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c1a80086cf0: fd fd fd fd fa fa fa fa fa fa fa fa fd fd fd fd 0x0c1a80086d00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa 0x0c1a80086d10: fa fa fa fa fa fa fd fd fd fd fd fd fd fd fd fd 0x0c1a80086d20: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa =>0x0c1a80086d30:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c1a80086d40: fd fa fa fa fa fa fa fa fa fa fd fd fd fd fd fd 0x0c1a80086d50: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x0c1a80086d60: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd 0x0c1a80086d70: fd fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa 0x0c1a80086d80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==2431370==ABORTING