Page MenuHome
Paste P862

(An Untitled Masterwork)
ActivePublic

Authored by Dalai Felinto (dfelinto) on Dec 7 2018, 1:49 AM.
=================================================================
==30322==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000158ab0 at pc 0x55bb2063c742 bp 0x7ffe006d8f70 sp 0x7ffe006d8f60
READ of size 8 at 0x604000158ab0 thread T0
#0 0x55bb2063c741 in BKE_mesh_runtime_clear_edit_data /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh_runtime.c:184
#1 0x55bb2063ae06 in BKE_mesh_runtime_clear_cache /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh_runtime.c:67
#2 0x55bb205bedf0 in BKE_mesh_free /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh.c:470
#3 0x55bb206e7565 in BKE_object_free_derived_caches /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/object.c:474
#4 0x55bb216019db in deg_restore_object_runtime /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:861
#5 0x55bb21602689 in DEG::deg_update_copy_on_write_datablock(DEG::Depsgraph const*, DEG::IDDepsNode const*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_wri
te.cc:972
#6 0x55bb21603313 in DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDDepsNode const*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1115
#7 0x55bb215bd16b in void std::__invoke_impl<void, void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*, DEG::IDDepsNode*&>(std::__invoke_other, void (*&)(Depsgraph*, DEG::IDDepsNode const*), Dep
sgraph*&&, DEG::IDDepsNode*&) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1735e16b)
#8 0x55bb215b9601 in std::__invoke_result<void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*, DEG::IDDepsNode*&>::type std::__invoke<void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*, D
EG::IDDepsNode*&>(void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*&&, DEG::IDDepsNode*&) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1735a601)
#9 0x55bb215b535a in void std::_Bind<void (*(std::_Placeholder<1>, DEG::IDDepsNode*))(Depsgraph*, DEG::IDDepsNode const*)>::__call<void, Depsgraph*&&, 0ul, 1ul>(std::tuple<Depsgraph*&&>&&, std::_Index
_tuple<0ul, 1ul>) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1735635a)
#10 0x55bb215ae602 in void std::_Bind<void (*(std::_Placeholder<1>, DEG::IDDepsNode*))(Depsgraph*, DEG::IDDepsNode const*)>::operator()<Depsgraph*, void>(Depsgraph*&&) (/home/dfelinto/src/blender/rele
ase/blender2.8/bin/blender+0x1734f602)
#11 0x55bb215a512b in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, DEG::IDDepsNode*))(Depsgraph*, DEG::IDDepsNode const*)> >::_M_invoke(std::_Any_data const&, Dep
sgraph*&&) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1734612b)
#12 0x55bb215fb8a0 in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/7/bits/std_function.h:706
#13 0x55bb215f8403 in deg_task_run_func /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:95
#14 0x55bb21502114 in BLI_task_pool_work_and_wait /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:899
#15 0x55bb21502a67 in BLI_task_pool_work_wait_and_reset /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:927
#16 0x55bb215fb5c0 in DEG::deg_evaluate_on_refresh(DEG::Depsgraph*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:330
#17 0x55bb215696ed in DEG_evaluate_on_refresh /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/depsgraph_eval.cc:70
#18 0x55bb208798b3 in BKE_scene_graph_update_tagged /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/scene.c:1438
#19 0x55bb1d734fde in wm_event_do_depsgraph /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:336
#20 0x55bb1d73525b in wm_event_do_refresh_wm_and_depsgraph /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:361
#21 0x55bb1d73698e in wm_event_do_notifiers /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:519
#22 0x55bb1d7280e5 in WM_main /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm.c:430
#23 0x55bb1d71b6e8 in main /home/dfelinto/src/blender/blender/source/creator/creator.c:521
#24 0x7f3a119bcb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#25 0x55bb1d71aa59 in _start (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x134bba59)
0x604000158ab0 is located 32 bytes inside of 40-byte region [0x604000158a90,0x604000158ab8)
freed by thread T0 here:
#0 0x7f3a15b6a7b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
#1 0x55bb2176d921 in MEM_lockfree_freeN /home/dfelinto/src/blender/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:164
#2 0x55bb2063cbe5 in BKE_mesh_runtime_clear_edit_data /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh_runtime.c:193
#3 0x55bb2063ae06 in BKE_mesh_runtime_clear_cache /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh_runtime.c:67
#4 0x55bb205bedf0 in BKE_mesh_free /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh.c:470
#5 0x55bb20545de1 in BKE_libblock_free_datablock /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/library_remap.c:708
#6 0x55bb21602f1b in DEG::deg_free_copy_on_write_datablock(ID*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1098
#7 0x55bb21602529 in DEG::deg_update_copy_on_write_datablock(DEG::Depsgraph const*, DEG::IDDepsNode const*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_wri
te.cc:961
#8 0x55bb21603313 in DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDDepsNode const*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1115
#9 0x55bb215bd16b in void std::__invoke_impl<void, void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*, DEG::IDDepsNode*&>(std::__invoke_other, void (*&)(Depsgraph*, DEG::IDDepsNode const*), Dep
sgraph*&&, DEG::IDDepsNode*&) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1735e16b)
#10 0x55bb215b9601 in std::__invoke_result<void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*, DEG::IDDepsNode*&>::type std::__invoke<void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*,
DEG::IDDepsNode*&>(void (*&)(Depsgraph*, DEG::IDDepsNode const*), Depsgraph*&&, DEG::IDDepsNode*&) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1735a601)
#11 0x55bb215b535a in void std::_Bind<void (*(std::_Placeholder<1>, DEG::IDDepsNode*))(Depsgraph*, DEG::IDDepsNode const*)>::__call<void, Depsgraph*&&, 0ul, 1ul>(std::tuple<Depsgraph*&&>&&, std::_Inde
x_tuple<0ul, 1ul>) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1735635a)
#12 0x55bb215ae602 in void std::_Bind<void (*(std::_Placeholder<1>, DEG::IDDepsNode*))(Depsgraph*, DEG::IDDepsNode const*)>::operator()<Depsgraph*, void>(Depsgraph*&&) (/home/dfelinto/src/blender/rele
ase/blender2.8/bin/blender+0x1734f602)
#13 0x55bb215a512b in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, DEG::IDDepsNode*))(Depsgraph*, DEG::IDDepsNode const*)> >::_M_invoke(std::_Any_data const&, Dep
sgraph*&&) (/home/dfelinto/src/blender/release/blender2.8/bin/blender+0x1734612b)
#14 0x55bb215fb8a0 in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/7/bits/std_function.h:706
#15 0x55bb215f8403 in deg_task_run_func /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:95
#16 0x55bb21502114 in BLI_task_pool_work_and_wait /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:899
#17 0x55bb21502a67 in BLI_task_pool_work_wait_and_reset /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:927
#18 0x55bb215fb5c0 in DEG::deg_evaluate_on_refresh(DEG::Depsgraph*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:330
#19 0x55bb215696ed in DEG_evaluate_on_refresh /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/depsgraph_eval.cc:70
#20 0x55bb208798b3 in BKE_scene_graph_update_tagged /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/scene.c:1438
#21 0x55bb1d734fde in wm_event_do_depsgraph /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:336
#22 0x55bb1d73525b in wm_event_do_refresh_wm_and_depsgraph /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:361
#23 0x55bb1d73698e in wm_event_do_notifiers /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:519
#24 0x55bb1d7280e5 in WM_main /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm.c:430
#25 0x55bb1d71b6e8 in main /home/dfelinto/src/blender/blender/source/creator/creator.c:521
#26 0x7f3a119bcb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
previously allocated by thread T15 here:
#0 0x7f3a15b6ad38 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded38)
#1 0x55bb2176df62 in MEM_lockfree_callocN /home/dfelinto/src/blender/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:282
#2 0x55bb2063c5ff in BKE_mesh_runtime_ensure_edit_data /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh_runtime.c:174
#3 0x55bb201783e2 in editbmesh_calc_modifiers /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/DerivedMesh.c:1858
#4 0x55bb2017a6b1 in editbmesh_build_data /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/DerivedMesh.c:2092
#5 0x55bb2017adee in makeDerivedMesh /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/DerivedMesh.c:2153
#6 0x55bb2072c623 in BKE_object_handle_data_update /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/object_update.c:194
#7 0x55bb2072e3bd in BKE_object_eval_uber_data /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/object_update.c:369
#8 0x55bb215bdc74 in void std::__invoke_impl<void, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>(std::__invoke_other, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*&&, Sce
ne*&, Object*&) /usr/include/c++/7/bits/invoke.h:60
#9 0x55bb215ba4d3 in std::__invoke_result<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>::type std::__invoke<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object
*&>(void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*&&, Scene*&, Object*&) /usr/include/c++/7/bits/invoke.h:95
#10 0x55bb215b647c in void std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::__call<void, Depsgraph*&&, 0ul, 1ul, 2ul>(std::tuple<Depsgraph*&&>&&, std::_Index_t
uple<0ul, 1ul, 2ul>) /usr/include/c++/7/functional:467
#11 0x55bb215b000c in void std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::operator()<Depsgraph*, void>(Depsgraph*&&) /usr/include/c++/7/functional:551
#12 0x55bb215a780d in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)> >::_M_invoke(std::_Any_data const&, Depsgraph*&
&) /usr/include/c++/7/bits/std_function.h:316
#13 0x55bb215fb8a0 in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/7/bits/std_function.h:706
#14 0x55bb215f8403 in deg_task_run_func /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:95
#15 0x55bb214fd11c in handle_local_queue /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:420
#16 0x55bb214fd11c in task_scheduler_thread_run /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:449
#17 0x7f3a138fb6da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)
Thread T15 created by T0 here:
#0 0x7f3a15ac3d2f in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x37d2f)
#1 0x55bb214fd958 in BLI_task_scheduler_create /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:505
#2 0x55bb21507617 in BLI_task_scheduler_get /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/threads.c:182
#3 0x55bb21505767 in BLI_task_parallel_range /home/dfelinto/src/blender/blender/source/blender/blenlib/intern/task.c:1113
#4 0x55bb21605aa5 in flush_prepare /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_flush.cc:122
#5 0x55bb21605aa5 in DEG::deg_graph_flush_updates(Main*, DEG::Depsgraph*) /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/eval/deg_eval_flush.cc:380
#6 0x55bb2158130b in DEG_graph_flush_update /home/dfelinto/src/blender/blender/source/blender/depsgraph/intern/depsgraph_tag.cc:670
#7 0x55bb208798a7 in BKE_scene_graph_update_tagged /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/scene.c:1434
#8 0x55bb1d734fde in wm_event_do_depsgraph /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_event_system.c:336
#9 0x55bb1d75de02 in wm_file_read_post /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_files.c:493
#10 0x55bb1d760484 in wm_homefile_read /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_files.c:1008
#11 0x55bb1d7776df in WM_init /home/dfelinto/src/blender/blender/source/blender/windowmanager/intern/wm_init_exit.c:259
#12 0x55bb1d71b40a in main /home/dfelinto/src/blender/blender/source/creator/creator.c:439
#13 0x7f3a119bcb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
SUMMARY: AddressSanitizer: heap-use-after-free /home/dfelinto/src/blender/blender/source/blender/blenkernel/intern/mesh_runtime.c:184 in BKE_mesh_runtime_clear_edit_data