Paste P567

T53481 crash
ActivePublic

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