Page MenuHome
Paste P567

T53481 crash
ActivePublic

Authored by Campbell Barton (campbellbarton) on Dec 6 2017, 7:03 AM.
==23336==ERROR: AddressSanitizer: heap-use-after-free on address 0x6110001c43b8 at pc 0x55be61a9b98a bp 0x7ffdfc4d6110 sp 0x7ffdfc4d6108
READ of size 8 at 0x6110001c43b8 thread T0
#0 0x55be61a9b989 in ed_screen_context /src/blender/source/blender/editors/screen/screen_context.c:94
#1 0x55be6318f80e in ctx_data_get /src/blender/source/blender/blenkernel/intern/context.c:342
#2 0x55be6318fc6a in ctx_data_pointer_verify /src/blender/source/blender/blenkernel/intern/context.c:374
#3 0x55be63194803 in CTX_data_main /src/blender/source/blender/blenkernel/intern/context.c:907
#4 0x55be60d67832 in ED_editors_init /src/blender/source/blender/editors/util/ed_util.c:89
#5 0x55be604e3251 in wm_file_read_post /src/blender/source/blender/windowmanager/intern/wm_files.c:476
#6 0x55be604e3a68 in WM_file_read /src/blender/source/blender/windowmanager/intern/wm_files.c:601
#7 0x55be604eb95a in wm_file_read_opwrap /src/blender/source/blender/windowmanager/intern/wm_files.c:1739
#8 0x55be604ec03f in wm_open_mainfile_exec /src/blender/source/blender/windowmanager/intern/wm_files.c:1798
#9 0x55be604c9379 in wm_operator_invoke /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1218
#10 0x55be604ca705 in wm_operator_call_internal /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1401
#11 0x55be604ca9a7 in WM_operator_name_call_ptr /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1449
#12 0x55be611fb9cc in ui_apply_but_funcs_after /src/blender/source/blender/editors/interface/interface_handlers.c:799
#13 0x55be6126935d in ui_popup_handler /src/blender/source/blender/editors/interface/interface_handlers.c:10260
#14 0x55be604c2aae in wm_handler_ui_call /src/blender/source/blender/windowmanager/intern/wm_event_system.c:530
#15 0x55be604d1353 in wm_handlers_do_intern /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2198
#16 0x55be604d2bc1 in wm_handlers_do /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2413
#17 0x55be604d5556 in wm_event_do_handlers /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2706
#18 0x55be604a6200 in WM_main /src/blender/source/blender/windowmanager/intern/wm.c:521
#19 0x55be60498f2d in main /src/blender/source/creator/creator.c:527
#20 0x7fadbb148f49 in __libc_start_main (/usr/lib/libc.so.6+0x20f49)
#21 0x55be604980c9 in _start (/src/cmake_debug/bin/blender+0x55770c9)
0x6110001c43b8 is located 120 bytes inside of 256-byte region [0x6110001c4340,0x6110001c4440)
freed by thread T0 here:
#0 0x7fadbd09e478 in __interceptor_free ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cc:45
#1 0x55be646ecf0d in MEM_lockfree_freeN /src/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:164
#2 0x55be63771db3 in BKE_view_layer_free /src/blender/source/blender/blenkernel/intern/layer.c:213
#3 0x55be63796d4d in BKE_scene_free_ex /src/blender/source/blender/blenkernel/intern/scene.c:543
#4 0x55be63797178 in BKE_scene_free /src/blender/source/blender/blenkernel/intern/scene.c:568
#5 0x55be634554cd in BKE_libblock_free_datablock /src/blender/source/blender/blenkernel/intern/library_remap.c:761
#6 0x55be63455f3a in BKE_libblock_free_ex /src/blender/source/blender/blenkernel/intern/library_remap.c:985
#7 0x55be634148de in BKE_main_free /src/blender/source/blender/blenkernel/intern/library.c:1483
#8 0x55be6306c6fb in BKE_blender_globals_clear /src/blender/source/blender/blenkernel/intern/blender.c:140
#9 0x55be630729a5 in setup_app_data /src/blender/source/blender/blenkernel/intern/blendfile.c:234
#10 0x55be63073f4d in BKE_blendfile_read /src/blender/source/blender/blenkernel/intern/blendfile.c:401
#11 0x55be604e3788 in WM_file_read /src/blender/source/blender/windowmanager/intern/wm_files.c:569
#12 0x55be604eb95a in wm_file_read_opwrap /src/blender/source/blender/windowmanager/intern/wm_files.c:1739
#13 0x55be604ec03f in wm_open_mainfile_exec /src/blender/source/blender/windowmanager/intern/wm_files.c:1798
#14 0x55be604c9379 in wm_operator_invoke /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1218
#15 0x55be604ca705 in wm_operator_call_internal /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1401
#16 0x55be604ca9a7 in WM_operator_name_call_ptr /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1449
#17 0x55be611fb9cc in ui_apply_but_funcs_after /src/blender/source/blender/editors/interface/interface_handlers.c:799
#18 0x55be6126935d in ui_popup_handler /src/blender/source/blender/editors/interface/interface_handlers.c:10260
#19 0x55be604c2aae in wm_handler_ui_call /src/blender/source/blender/windowmanager/intern/wm_event_system.c:530
#20 0x55be604d1353 in wm_handlers_do_intern /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2198
#21 0x55be604d2bc1 in wm_handlers_do /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2413
#22 0x55be604d5556 in wm_event_do_handlers /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2706
#23 0x55be604a6200 in WM_main /src/blender/source/blender/windowmanager/intern/wm.c:521
#24 0x55be60498f2d in main /src/blender/source/creator/creator.c:527
#25 0x7fadbb148f49 in __libc_start_main (/usr/lib/libc.so.6+0x20f49)
previously allocated by thread T0 here:
#0 0x7fadbd09e79a in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cc:62
#1 0x55be646ed7de in MEM_lockfree_mallocN /src/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:302
#2 0x55be62de9e1e in read_struct /src/blender/source/blender/blenloader/intern/readfile.c:1907
#3 0x55be62e4a3d5 in read_data_into_oldnewmap /src/blender/source/blender/blenloader/intern/readfile.c:8406
#4 0x55be62e4b60a in read_libblock /src/blender/source/blender/blenloader/intern/readfile.c:8537
#5 0x55be62e604a6 in link_id_part /src/blender/source/blender/blenloader/intern/readfile.c:10580
#6 0x55be62e64a07 in read_libraries /src/blender/source/blender/blenloader/intern/readfile.c:10908
#7 0x55be62e4fffe in blo_read_file_internal /src/blender/source/blender/blenloader/intern/readfile.c:9000
#8 0x55be62dd6c62 in BLO_read_from_file /src/blender/source/blender/blenloader/intern/readblenentry.c:331
#9 0x55be63073dc7 in BKE_blendfile_read /src/blender/source/blender/blenkernel/intern/blendfile.c:388
#10 0x55be604e3788 in WM_file_read /src/blender/source/blender/windowmanager/intern/wm_files.c:569
#11 0x55be604eb95a in wm_file_read_opwrap /src/blender/source/blender/windowmanager/intern/wm_files.c:1739
#12 0x55be604ec03f in wm_open_mainfile_exec /src/blender/source/blender/windowmanager/intern/wm_files.c:1798
#13 0x55be604cf16f in wm_handler_fileselect_do /src/blender/source/blender/windowmanager/intern/wm_event_system.c:1993
#14 0x55be604d02dc in wm_handler_fileselect_call /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2080
#15 0x55be604d146f in wm_handlers_do_intern /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2204
#16 0x55be604d2bc1 in wm_handlers_do /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2413
#17 0x55be604d5556 in wm_event_do_handlers /src/blender/source/blender/windowmanager/intern/wm_event_system.c:2706
#18 0x55be604a6200 in WM_main /src/blender/source/blender/windowmanager/intern/wm.c:521
#19 0x55be60498f2d in main /src/blender/source/creator/creator.c:527
#20 0x7fadbb148f49 in __libc_start_main (/usr/lib/libc.so.6+0x20f49)
SUMMARY: AddressSanitizer: heap-use-after-free /src/blender/source/blender/editors/screen/screen_context.c:94 in ed_screen_context