Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy of locked mutex in gop_control_free #140

Open
PerilousApricot opened this issue Oct 17, 2016 · 0 comments
Open

Destroy of locked mutex in gop_control_free #140

PerilousApricot opened this issue Oct 17, 2016 · 0 comments

Comments

@PerilousApricot
Copy link
Member

WARNING: ThreadSanitizer: destroy of a locked mutex (pid=9165)
    #0 pthread_mutex_destroy /home/meloam/llvm/llvm-3.9.0.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1135 (globus-gridftp-server+0x00000042c41e)
    #1 gop_control_free /home/meloam/lstore/src/gop/opque.c:97:9 (libgop.so.0+0x000000023316)
    #2 tbx_pc_destroy /home/meloam/lstore/src/toolbox/pigeon_coop.c:285:9 (libtoolbox.so.0+0x00000001e06c)
    #3 gop_shutdown /home/meloam/lstore/src/gop/opque.c:129:9 (libgop.so.0+0x0000000235cf)
    #4 gop_destruct_fn /home/meloam/lstore/src/gop/constructor.c:31:5 (libgop.so.0+0x00000000d323)
    #5 _dl_fini <null> (ld-linux-x86-64.so.2+0x00000000fa19)
    #6 globus_l_callback_thread_poll <null> (libglobus_common.so.0+0x00000002517e)
    #7 globus_l_thread_pool_thread_start <null> (libglobus_common.so.0+0x000000063084)
    #8 thread_starter <null> (libglobus_thread_pthread.so+0x000000003b30)

  and:
    #0 pthread_mutex_destroy /home/meloam/llvm/llvm-3.9.0.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1135 (globus-gridftp-server+0x00000042c41e)
    #1 gop_control_free /home/meloam/lstore/src/gop/opque.c:97:9 (libgop.so.0+0x000000023316)
    #2 tbx_pc_destroy /home/meloam/lstore/src/toolbox/pigeon_coop.c:285:9 (libtoolbox.so.0+0x00000001e06c)
    #3 gop_shutdown /home/meloam/lstore/src/gop/opque.c:129:9 (libgop.so.0+0x0000000235cf)
    #4 gop_destruct_fn /home/meloam/lstore/src/gop/constructor.c:31:5 (libgop.so.0+0x00000000d323)
    #5 _dl_fini <null> (ld-linux-x86-64.so.2+0x00000000fa19)
    #6 globus_l_callback_thread_poll <null> (libglobus_common.so.0+0x00000002517e)
    #7 globus_l_thread_pool_thread_start <null> (libglobus_common.so.0+0x000000063084)
    #8 thread_starter <null> (libglobus_thread_pthread.so+0x000000003b30)

  Location is heap block of size 8192 at 0x7d900000a000 allocated by main thread:
    #0 malloc /home/meloam/llvm/llvm-3.9.0.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:591 (globus-gridftp-server+0x00000044d5cf)
    #1 allocator_alloc /home/meloam/lstore/vendor/apr-accre/memory/unix/apr_pools.c:349:17 (liblio.so.0+0x0000001a8ea7)
    #2 gop_construct_fn /home/meloam/lstore/src/gop/constructor.c:27:5 (libgop.so.0+0x00000000d2f5)
    #3 _dl_init_internal <null> (ld-linux-x86-64.so.2+0x00000000f3a2)
    #4 <null> <null> (libltdl.so.7+0x0000000066a1)
    #5 globus_extension_activate <null> (libglobus_common.so.0+0x000000073628)
    #6 globus_i_gfs_data_new_dsi <null> (libglobus_gridftp_server.so.6+0x0000000317cb)
    #7 globus_i_gfs_data_init <null> (libglobus_gridftp_server.so.6+0x000000031155)
    #8 main <null> (globus-gridftp-server+0x0000004acbc2)

  Mutex M121 (0x7d900000a0a8) created at:
    #0 pthread_mutex_init /home/meloam/llvm/llvm-3.9.0.src/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:1119 (globus-gridftp-server+0x000000433f55)
    #1 apr_thread_mutex_create /home/meloam/lstore/vendor/apr-accre/locks/unix/thread_mutex.c:71:14 (liblio.so.0+0x0000001a8b26)
    #2 tbx_pc_new /home/meloam/lstore/src/toolbox/pigeon_coop.c:326:29 (libtoolbox.so.0+0x00000001e9d4)
    #3 gop_init_opque_system /home/meloam/lstore/src/gop/opque.c:114:24 (libgop.so.0+0x0000000234da)
    #4 gop_construct_fn /home/meloam/lstore/src/gop/constructor.c:27:5 (libgop.so.0+0x00000000d2f5)
    #5 _dl_init_internal <null> (ld-linux-x86-64.so.2+0x00000000f3a2)
    #6 <null> <null> (libltdl.so.7+0x0000000066a1)
    #7 globus_extension_activate <null> (libglobus_common.so.0+0x000000073628)
    #8 globus_i_gfs_data_new_dsi <null> (libglobus_gridftp_server.so.6+0x0000000317cb)
    #9 globus_i_gfs_data_init <null> (libglobus_gridftp_server.so.6+0x000000031155)
    #10 main <null> (globus-gridftp-server+0x0000004acbc2)

SUMMARY: ThreadSanitizer: destroy of a locked mutex /home/meloam/lstore/src/gop/opque.c:97:9 in gop_control_free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant