カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
その他仮承認未処理2015-04-01 19:402015-04-02 01:53
 
テスターFirewave担当者 ソースmidway/midvunit.cpp
バージョン0.160発生バージョン修正バージョン
修正コミットプルリク
フラグ
セット wargods
セット詳細
wargods - War Gods (HD 10/09/1996 - Dual Resolution)
 
概 要ThreadSanitizer: data raceエラー。
詳 細Might possibly occur with all games using the poly_manager

WARNING: ThreadSanitizer: data race (pid=9260)
  Write of size 8 at 0x7fd19872b000 by main thread:
    #0 memcpy /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:638:3 (mame64d+0x000002840e30)
    #1 poly_manager<float, midvunit_object_data, 2, 4000>::wait(char const*) /home/notroot/trunk/src/emu/video/poly.h:480:3 (mame64d+0x000003bd6fd0)
    #2 midvunit_state::midvunit_videoram_r(address_space&, unsigned int, unsigned int) /home/notroot/trunk/src/mame/video/midvunit.c:494:2 (mame64d+0x000003bd4cd4)
    #3 delegate_base<unsigned int, address_space&, unsigned int, unsigned int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(address_space&, unsigned int, unsigned int) const /home/notroot/trunk/src/lib/util/delegate.h:653:78 (mame64d+0x000006bfdfa9)
    #4 handler_entry_read::read32(address_space&, unsigned int, unsigned int) const /home/notroot/trunk/src/emu/memory.c:360 (mame64d+0x000006bfdfa9)
    #5 address_space_specific<unsigned int, (endianness_t)0, true>::read_native(unsigned int) /home/notroot/trunk/src/emu/memory.c:1096 (mame64d+0x000006bfdfa9)
    #6 address_space_specific<unsigned int, (endianness_t)0, true>::read_dword(unsigned int) /home/notroot/trunk/src/emu/memory.c:1417:67 (mame64d+0x000006bfc961)
    #7 tms3203x_device::RMEM(unsigned int) /home/notroot/trunk/src/emu/cpu/tms32031/tms32031.c:355:9 (mame64d+0x000006186c88)
    #8 tms3203x_device::ldisti(unsigned int) /home/notroot/trunk/src/emu/cpu/tms32031/32031ops.c:6185 (mame64d+0x000006186c88)
    #9 tms3203x_device::execute_one() /home/notroot/trunk/src/emu/cpu/tms32031/32031ops.c:96:3 (mame64d+0x00000615fb60)
    #10 tms3203x_device::execute_run() /home/notroot/trunk/src/emu/cpu/tms32031/tms32031.c:806 (mame64d+0x00000615fb60)
    #11 non-virtual thunk to tms3203x_device::execute_run() /home/notroot/trunk/src/emu/cpu/tms32031/tms32031.c:769:23 (mame64d+0x00000615fbb0)
    #12 device_execute_interface::run() /home/notroot/trunk/src/emu/diexec.h:191:15 (mame64d+0x000006c57d15)
    #13 device_scheduler::timeslice() /home/notroot/trunk/src/emu/schedule.c:474 (mame64d+0x000006c57d15)
    #14 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:397:5 (mame64d+0x000006bbdc78)
    #15 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #16 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #17 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #18 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #22 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #23 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #24 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #25 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #26 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #27 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #28 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #29 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Previous read of size 8 at 0x7fd19872b000 by thread T4:
    #0 midvunit_renderer::render_tex(int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int) /home/notroot/trunk/src/mame/video/midvunit.c:126:17 (mame64d+0x000003bd2b3c)
    #1 delegate_base<void, int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int) const /home/notroot/trunk/src/lib/util/delegate.h:654:90 (mame64d+0x000003bd74e3)
    #2 poly_manager<float, midvunit_object_data, 2, 4000>::work_item_callback(void*, int) /home/notroot/trunk/src/emu/video/poly.h:422 (mame64d+0x000003bd74e3)
    #3 worker_thread_process(osd_work_queue*, work_thread_info*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:744:21 (mame64d+0x00000720f15b)
    #4 worker_thread_entry(void*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:668:4 (mame64d+0x00000720eacb)

  Location is heap block of size 256064 at 0x7fd19872b000 allocated by main thread:
    #0 malloc /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:495:5 (mame64d+0x00000283f50d)
    #1 osd_malloc_array(unsigned long) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:89:9 (mame64d+0x00000720d259)
    #2 malloc_file_line(unsigned long, char const*, int, bool, bool, bool) /home/notroot/trunk/src/lib/util/corealloc.c:112:25 (mame64d+0x000006e44f4a)
    #3 operator new[](unsigned long, char const*, int, zeromem_t const&) /home/notroot/trunk/src/lib/util/corealloc.h:78:144 (mame64d+0x000003bd7d85)
    #4 poly_manager<float, midvunit_object_data, 2, 4000>::poly_array<midvunit_object_data, 4001>::poly_array(running_machine&, poly_manager<float, midvunit_object_data, 2, 4000>&) /home/notroot/trunk/src/emu/video/poly.h:187 (mame64d+0x000003bd7d85)
    #5 poly_manager<float, midvunit_object_data, 2, 4000>::poly_manager(running_machine&, unsigned char) /home/notroot/trunk/src/emu/video/poly.h:292:3 (mame64d+0x000003bd538d)
    #6 midvunit_renderer::midvunit_renderer(midvunit_state&) /home/notroot/trunk/src/mame/video/midvunit.c:30:18 (mame64d+0x000003bd2510)
    #7 midvunit_state::video_start() /home/notroot/trunk/src/mame/video/midvunit.c:73 (mame64d+0x000003bd2510)
    #8 driver_device::device_start() /home/notroot/trunk/src/emu/driver.c:231:3 (mame64d+0x000006b23743)
    #9 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #10 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #11 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #12 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #13 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #14 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #15 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #16 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #22 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #23 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #24 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #25 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #26 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #27 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Thread T4 (tid=9266, running) created by main thread at:
    #0 pthread_create /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:896:3 (mame64d+0x0000028433c1)
    #1 osd_thread_create(void* (*)(void*), void*) /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:320:7 (mame64d+0x00000720da4d)
    #2 osd_work_queue_alloc(int) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:241:20 (mame64d+0x00000720e956)
    #3 poly_manager<float, midvunit_object_data, 2, 4000>::poly_manager(running_machine&, unsigned char) /home/notroot/trunk/src/emu/video/poly.h:306:13 (mame64d+0x000003bd53d9)
    #4 midvunit_renderer::midvunit_renderer(midvunit_state&) /home/notroot/trunk/src/mame/video/midvunit.c:30:18 (mame64d+0x000003bd2510)
    #5 midvunit_state::video_start() /home/notroot/trunk/src/mame/video/midvunit.c:73 (mame64d+0x000003bd2510)
    #6 driver_device::device_start() /home/notroot/trunk/src/emu/driver.c:231:3 (mame64d+0x000006b23743)
    #7 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #8 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #9 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #10 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #11 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #12 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #13 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #14 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #15 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #16 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #22 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #23 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #24 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #25 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

SUMMARY: ThreadSanitizer: data race /home/notroot/trunk/src/emu/video/poly.h:480 poly_manager<float, midvunit_object_data, 2, 4000>::wait(char const*)
==================
...
==================
WARNING: ThreadSanitizer: data race (pid=9260)
  Read of size 2 at 0x7fd197f1a000 by main thread:
    #0 midvunit_state::midvunit_videoram_r(address_space&, unsigned int, unsigned int) /home/notroot/trunk/src/mame/video/midvunit.c:495:9 (mame64d+0x000003bd4cf3)
    #1 delegate_base<unsigned int, address_space&, unsigned int, unsigned int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(address_space&, unsigned int, unsigned int) const /home/notroot/trunk/src/lib/util/delegate.h:653:78 (mame64d+0x000006bfdfa9)
    #2 handler_entry_read::read32(address_space&, unsigned int, unsigned int) const /home/notroot/trunk/src/emu/memory.c:360 (mame64d+0x000006bfdfa9)
    #3 address_space_specific<unsigned int, (endianness_t)0, true>::read_native(unsigned int) /home/notroot/trunk/src/emu/memory.c:1096 (mame64d+0x000006bfdfa9)
    #4 address_space_specific<unsigned int, (endianness_t)0, true>::read_dword(unsigned int) /home/notroot/trunk/src/emu/memory.c:1417:67 (mame64d+0x000006bfc961)
    #5 tms3203x_device::RMEM(unsigned int) /home/notroot/trunk/src/emu/cpu/tms32031/tms32031.c:355:9 (mame64d+0x000006186c88)
    #6 tms3203x_device::ldisti(unsigned int) /home/notroot/trunk/src/emu/cpu/tms32031/32031ops.c:6185 (mame64d+0x000006186c88)
    #7 tms3203x_device::execute_one() /home/notroot/trunk/src/emu/cpu/tms32031/32031ops.c:96:3 (mame64d+0x00000615fb60)
    #8 tms3203x_device::execute_run() /home/notroot/trunk/src/emu/cpu/tms32031/tms32031.c:806 (mame64d+0x00000615fb60)
    #9 non-virtual thunk to tms3203x_device::execute_run() /home/notroot/trunk/src/emu/cpu/tms32031/tms32031.c:769:23 (mame64d+0x00000615fbb0)
    #10 device_execute_interface::run() /home/notroot/trunk/src/emu/diexec.h:191:15 (mame64d+0x000006c57d15)
    #11 device_scheduler::timeslice() /home/notroot/trunk/src/emu/schedule.c:474 (mame64d+0x000006c57d15)
    #12 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:397:5 (mame64d+0x000006bbdc78)
    #13 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #14 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #15 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #16 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #22 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #23 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #24 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #25 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #26 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #27 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Previous write of size 2 at 0x7fd197f1a000 by thread T4:
    #0 midvunit_renderer::render_tex(int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int) /home/notroot/trunk/src/mame/video/midvunit.c:151:3 (mame64d+0x000003bd2c7b)
    #1 delegate_base<void, int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int) const /home/notroot/trunk/src/lib/util/delegate.h:654:90 (mame64d+0x000003bd74e3)
    #2 poly_manager<float, midvunit_object_data, 2, 4000>::work_item_callback(void*, int) /home/notroot/trunk/src/emu/video/poly.h:422 (mame64d+0x000003bd74e3)
    #3 worker_thread_process(osd_work_queue*, work_thread_info*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:744:21 (mame64d+0x00000720f15b)
    #4 worker_thread_entry(void*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:668:4 (mame64d+0x00000720eacb)

  Location is heap block of size 2101247 at 0x7fd197e60000 allocated by main thread:
    #0 malloc /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:495:5 (mame64d+0x00000283f50d)
    #1 osd_malloc_array(unsigned long) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:89:9 (mame64d+0x00000720d259)
    #2 malloc_file_line(unsigned long, char const*, int, bool, bool, bool) /home/notroot/trunk/src/lib/util/corealloc.c:112:25 (mame64d+0x000006e44f4a)
    #3 operator new[](unsigned long, char const*, int) /home/notroot/trunk/src/lib/util/corealloc.h:72:125 (mame64d+0x00000682697f)
    #4 dynamic_array<unsigned char>::expand_internal(int) /home/notroot/trunk/src/lib/util/coretmpl.h:114 (mame64d+0x00000682697f)
    #5 dynamic_array<unsigned char>::resize(int) /home/notroot/trunk/src/lib/util/coretmpl.h:93 (mame64d+0x00000682697f)
    #6 dynamic_array<unsigned char>::resize_and_clear(int, unsigned char) /home/notroot/trunk/src/lib/util/coretmpl.h:98 (mame64d+0x00000682697f)
    #7 memory_block::memory_block(address_space&, unsigned int, unsigned int, void*) /home/notroot/trunk/src/emu/memory.c:3857:4 (mame64d+0x000006bdff33)
    #8 address_space::allocate_memory() /home/notroot/trunk/src/emu/memory.c:2069:43 (mame64d+0x000006bcb2bc)
    #9 memory_manager::initialize() /home/notroot/trunk/src/emu/memory.c:1544:3 (mame64d+0x000006bc91e7)
    #10 running_machine::start() /home/notroot/trunk/src/emu/machine.c:256:2 (mame64d+0x000006bbb5cf)
    #11 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #12 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #13 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #14 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Thread T4 (tid=9266, running) created by main thread at:
    #0 pthread_create /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:896:3 (mame64d+0x0000028433c1)
    #1 osd_thread_create(void* (*)(void*), void*) /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:320:7 (mame64d+0x00000720da4d)
    #2 osd_work_queue_alloc(int) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:241:20 (mame64d+0x00000720e956)
    #3 poly_manager<float, midvunit_object_data, 2, 4000>::poly_manager(running_machine&, unsigned char) /home/notroot/trunk/src/emu/video/poly.h:306:13 (mame64d+0x000003bd53d9)
    #4 midvunit_renderer::midvunit_renderer(midvunit_state&) /home/notroot/trunk/src/mame/video/midvunit.c:30:18 (mame64d+0x000003bd2510)
    #5 midvunit_state::video_start() /home/notroot/trunk/src/mame/video/midvunit.c:73 (mame64d+0x000003bd2510)
    #6 driver_device::device_start() /home/notroot/trunk/src/emu/driver.c:231:3 (mame64d+0x000006b23743)
    #7 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #8 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #9 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #10 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #11 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #12 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #13 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #14 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #15 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #16 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #22 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #23 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #24 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #25 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

SUMMARY: ThreadSanitizer: data race /home/notroot/trunk/src/mame/video/midvunit.c:495 midvunit_state::midvunit_videoram_r(address_space&, unsigned int, unsigned int)
==================
==================
WARNING: ThreadSanitizer: data race (pid=9260)
  Write of size 8 at 0x7fd19b402008 by main thread (mutexes: write M80):
    #0 free /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:538:3 (mame64d+0x00000283faeb)
    #1 osd_free(void*) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:103:2 (mame64d+0x00000720d289)
    #2 free_file_line(void*, char const*, int, bool) /home/notroot/trunk/src/lib/util/corealloc.c:178:2 (mame64d+0x000006e45693)
    #3 operator delete[](void*) /home/notroot/trunk/src/lib/util/corealloc.h:66:87 (mame64d+0x000002902feb)
    #4 resource_pool_array<unsigned char>::~resource_pool_array() /home/notroot/trunk/src/emu/emualloc.h:112 (mame64d+0x000002902feb)
    #5 resource_pool_array<unsigned char>::~resource_pool_array() /home/notroot/trunk/src/emu/emualloc.h:112 (mame64d+0x000002902feb)
    #6 resource_pool::remove(void*) /home/notroot/trunk/src/emu/emualloc.c:152:4 (mame64d+0x000006b29637)
    #7 resource_pool::clear() /home/notroot/trunk/src/emu/emualloc.c:222:3 (mame64d+0x000006b29085)
    #8 resource_pool::~resource_pool() /home/notroot/trunk/src/emu/emualloc.c:58 (mame64d+0x000006b29085)
    #9 running_machine::~running_machine() /home/notroot/trunk/src/emu/machine.c:177:1 (mame64d+0x000006bba876)
    #10 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:254:2 (mame64d+0x000006bb88f4)
    #11 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #12 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #13 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #14 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #15 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #16 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #17 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #18 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #19 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #20 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #21 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #22 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #23 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #24 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Previous read of size 8 at 0x7fd19b402008 by thread T4:
    #0 poly_manager<float, midvunit_object_data, 2, 4000>::work_item_callback(void*, int) /home/notroot/trunk/src/emu/video/poly.h:422:71 (mame64d+0x000003bd74a9)
    #1 worker_thread_process(osd_work_queue*, work_thread_info*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:744:21 (mame64d+0x00000720f15b)
    #2 worker_thread_entry(void*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:668:4 (mame64d+0x00000720eacb)

  Mutex M80 (0x7d0c00008850) created at:
    #0 pthread_mutex_init /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1082:3 (mame64d+0x0000028447f0)\n    #1 osd_lock_alloc() /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:118:2 (mame64d+0x00000720d530)
    #2 resource_pool::resource_pool(int) /home/notroot/trunk/src/emu/emualloc.c:42:14 (mame64d+0x000006b28f0c)
    #3 running_machine::running_machine(machine_config const&, machine_manager&) /home/notroot/trunk/src/emu/machine.c:118:18 (mame64d+0x000006bb8e13)
    #4 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:217:19 (mame64d+0x000006bb86d0)
    #5 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #6 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Thread T4 (tid=9266, running) created by main thread at:
    #0 pthread_create /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:896:3 (mame64d+0x0000028433c1)
    #1 osd_thread_create(void* (*)(void*), void*) /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:320:7 (mame64d+0x00000720da4d)
    #2 osd_work_queue_alloc(int) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:241:20 (mame64d+0x00000720e956)
    #3 poly_manager<float, midvunit_object_data, 2, 4000>::poly_manager(running_machine&, unsigned char) /home/notroot/trunk/src/emu/video/poly.h:306:13 (mame64d+0x000003bd53d9)
    #4 midvunit_renderer::midvunit_renderer(midvunit_state&) /home/notroot/trunk/src/mame/video/midvunit.c:30:18 (mame64d+0x000003bd2510)
    #5 midvunit_state::video_start() /home/notroot/trunk/src/mame/video/midvunit.c:73 (mame64d+0x000003bd2510)
    #6 driver_device::device_start() /home/notroot/trunk/src/emu/driver.c:231:3 (mame64d+0x000006b23743)
    #7 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #8 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #9 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #10 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #11 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #12 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #13 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #14 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #15 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #16 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #22 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #23 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #24 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #25 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

SUMMARY: ThreadSanitizer: data race /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:103 osd_free(void*)
==================
==================
WARNING: ThreadSanitizer: data race (pid=9260)
  Write of size 8 at 0x7fd19b402010 by main thread (mutexes: write M80):
    #0 free /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:538:3 (mame64d+0x00000283faeb)
    #1 osd_free(void*) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:103:2 (mame64d+0x00000720d289)
    #2 free_file_line(void*, char const*, int, bool) /home/notroot/trunk/src/lib/util/corealloc.c:178:2 (mame64d+0x000006e45693)
    #3 operator delete[](void*) /home/notroot/trunk/src/lib/util/corealloc.h:66:87 (mame64d+0x000002902feb)
    #4 resource_pool_array<unsigned char>::~resource_pool_array() /home/notroot/trunk/src/emu/emualloc.h:112 (mame64d+0x000002902feb)
    #5 resource_pool_array<unsigned char>::~resource_pool_array() /home/notroot/trunk/src/emu/emualloc.h:112 (mame64d+0x000002902feb)
    #6 resource_pool::remove(void*) /home/notroot/trunk/src/emu/emualloc.c:152:4 (mame64d+0x000006b29637)
    #7 resource_pool::clear() /home/notroot/trunk/src/emu/emualloc.c:222:3 (mame64d+0x000006b29085)
    #8 resource_pool::~resource_pool() /home/notroot/trunk/src/emu/emualloc.c:58 (mame64d+0x000006b29085)
    #9 running_machine::~running_machine() /home/notroot/trunk/src/emu/machine.c:177:1 (mame64d+0x000006bba876)
    #10 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:254:2 (mame64d+0x000006bb88f4)
    #11 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #12 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #13 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #14 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #15 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #16 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #17 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #18 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #19 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #20 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #21 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #22 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #23 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #24 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Previous read of size 8 at 0x7fd19b402010 by thread T4:
    #0 delegate_base<void, int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int) const /home/notroot/trunk/src/lib/util/delegate.h:654:90 (mame64d+0x000003bd74b8)
    #1 poly_manager<float, midvunit_object_data, 2, 4000>::work_item_callback(void*, int) /home/notroot/trunk/src/emu/video/poly.h:422 (mame64d+0x000003bd74b8)
    #2 worker_thread_process(osd_work_queue*, work_thread_info*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:744:21 (mame64d+0x00000720f15b)
    #3 worker_thread_entry(void*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:668:4 (mame64d+0x00000720eacb)

  Mutex M80 (0x7d0c00008850) created at:
    #0 pthread_mutex_init /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1082:3 (mame64d+0x0000028447f0)
    #1 osd_lock_alloc() /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:118:2 (mame64d+0x00000720d530)
    #2 resource_pool::resource_pool(int) /home/notroot/trunk/src/emu/emualloc.c:42:14 (mame64d+0x000006b28f0c)
    #3 running_machine::running_machine(machine_config const&, machine_manager&) /home/notroot/trunk/src/emu/machine.c:118:18 (mame64d+0x000006bb8e13)
    #4 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:217:19 (mame64d+0x000006bb86d0)
    #5 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #6 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Thread T4 (tid=9266, running) created by main thread at:
    #0 pthread_create /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:896:3 (mame64d+0x0000028433c1)
    #1 osd_thread_create(void* (*)(void*), void*) /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:320:7 (mame64d+0x00000720da4d)
    #2 osd_work_queue_alloc(int) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:241:20 (mame64d+0x00000720e956)
    #3 poly_manager<float, midvunit_object_data, 2, 4000>::poly_manager(running_machine&, unsigned char) /home/notroot/trunk/src/emu/video/poly.h:306:13 (mame64d+0x000003bd53d9)
    #4 midvunit_renderer::midvunit_renderer(midvunit_state&) /home/notroot/trunk/src/mame/video/midvunit.c:30:18 (mame64d+0x000003bd2510)
    #5 midvunit_state::video_start() /home/notroot/trunk/src/mame/video/midvunit.c:73 (mame64d+0x000003bd2510)
    #6 driver_device::device_start() /home/notroot/trunk/src/emu/driver.c:231:3 (mame64d+0x000006b23743)
    #7 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #8 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #9 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #10 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #11 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #12 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #13 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #14 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #15 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #16 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #22 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #23 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #24 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #25 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

SUMMARY: ThreadSanitizer: data race /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:103 osd_free(void*)
==================
==================
WARNING: ThreadSanitizer: data race (pid=9260)
  Write of size 8 at 0x7fd19b402018 by main thread (mutexes: write M80):
    #0 free /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:538:3 (mame64d+0x00000283faeb)
    #1 osd_free(void*) /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:103:2 (mame64d+0x00000720d289)
    #2 free_file_line(void*, char const*, int, bool) /home/notroot/trunk/src/lib/util/corealloc.c:178:2 (mame64d+0x000006e45693)
    #3 operator delete[](void*) /home/notroot/trunk/src/lib/util/corealloc.h:66:87 (mame64d+0x000002902feb)
    #4 resource_pool_array<unsigned char>::~resource_pool_array() /home/notroot/trunk/src/emu/emualloc.h:112 (mame64d+0x000002902feb)
    #5 resource_pool_array<unsigned char>::~resource_pool_array() /home/notroot/trunk/src/emu/emualloc.h:112 (mame64d+0x000002902feb)
    #6 resource_pool::remove(void*) /home/notroot/trunk/src/emu/emualloc.c:152:4 (mame64d+0x000006b29637)
    #7 resource_pool::clear() /home/notroot/trunk/src/emu/emualloc.c:222:3 (mame64d+0x000006b29085)
    #8 resource_pool::~resource_pool() /home/notroot/trunk/src/emu/emualloc.c:58 (mame64d+0x000006b29085)
    #9 running_machine::~running_machine() /home/notroot/trunk/src/emu/machine.c:177:1 (mame64d+0x000006bba876)
    #10 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:254:2 (mame64d+0x000006bb88f4)
    #11 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #12 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #13 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #14 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #15 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #16 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #17 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #18 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #19 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #20 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #21 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #22 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #23 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #24 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Previous read of size 8 at 0x7fd19b402018 by thread T4:
    #0 delegate_base<void, int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()(int, poly_manager<float, midvunit_object_data, 2, 4000>::extent_t const&, midvunit_object_data const&, int) const /home/notroot/trunk/src/lib/util/delegate.h:654:102 (mame64d+0x000003bd74cc)
    #1 poly_manager<float, midvunit_object_data, 2, 4000>::work_item_callback(void*, int) /home/notroot/trunk/src/emu/video/poly.h:422 (mame64d+0x000003bd74cc)
    #2 worker_thread_process(osd_work_queue*, work_thread_info*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:744:21 (mame64d+0x00000720f15b)
    #3 worker_thread_entry(void*) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:668:4 (mame64d+0x00000720eacb)

  Mutex M80 (0x7d0c00008850) created at:
    #0 pthread_mutex_init /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1082:3 (mame64d+0x0000028447f0)
    #1 osd_lock_alloc() /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:118:2 (mame64d+0x00000720d530)
    #2 resource_pool::resource_pool(int) /home/notroot/trunk/src/emu/emualloc.c:42:14 (mame64d+0x000006b28f0c)
    #3 running_machine::running_machine(machine_config const&, machine_manager&) /home/notroot/trunk/src/emu/machine.c:118:18 (mame64d+0x000006bb8e13)
    #4 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:217:19 (mame64d+0x000006bb86d0)
    #5 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #6 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

  Thread T4 (tid=9266, running) created by main thread at:
    #0 pthread_create /home/development/llvm/3.6.0/final/llvm.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:896:3 (mame64d+0x0000028433c1)
    #1 osd_thread_create(void* (*)(void*), void*) /home/notroot/trunk/src/osd/modules/sync/sync_tc.c:320:7 (mame64d+0x00000720da4d)
    #2 osd_work_queue_alloc(int) /home/notroot/trunk/src/osd/modules/sync/work_osd.c:241:20 (mame64d+0x00000720e956)
    #3 poly_manager<float, midvunit_object_data, 2, 4000>::poly_manager(running_machine&, unsigned char) /home/notroot/trunk/src/emu/video/poly.h:306:13 (mame64d+0x000003bd53d9)
    #4 midvunit_renderer::midvunit_renderer(midvunit_state&) /home/notroot/trunk/src/mame/video/midvunit.c:30:18 (mame64d+0x000003bd2510)
    #5 midvunit_state::video_start() /home/notroot/trunk/src/mame/video/midvunit.c:73 (mame64d+0x000003bd2510)
    #6 driver_device::device_start() /home/notroot/trunk/src/emu/driver.c:231:3 (mame64d+0x000006b23743)
    #7 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #8 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #9 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #10 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #11 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #12 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #13 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #14 device_mixer_interface::interface_pre_start() /home/notroot/trunk/src/emu/disound.c:406:2 (mame64d+0x000006ae4607)
    #15 device_t::start() /home/notroot/trunk/src/emu/device.c:403:3 (mame64d+0x000006acd660)
    #16 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #17 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #18 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #19 device_t::start() /home/notroot/trunk/src/emu/device.c:409:2 (mame64d+0x000006acd6a6)
    #20 running_machine::start_all_devices() /home/notroot/trunk/src/emu/machine.c:1105:6 (mame64d+0x000006bbd3a2)
    #21 running_machine::start() /home/notroot/trunk/src/emu/machine.c:287:2 (mame64d+0x000006bbbbf4)
    #22 running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:351:3 (mame64d+0x000006bbda39)
    #23 machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:222:11 (mame64d+0x000006bb86f2)
    #24 cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:220:15 (mame64d+0x000006aba550)
    #25 main /home/notroot/trunk/src/osd/sdl/sdlmain.c:290:9 (mame64d+0x0000055b0b80)

SUMMARY: ThreadSanitizer: data race /home/notroot/trunk/src/osd/modules/lib/osdlib_unix.c:103 osd_free(void*)
==================
再現手順 
追加情報 
 
添付ファイル