- ==29385== ----------------------------------------------------------------
- ==29385==
- ==29385== Thread #1: lock order "0x7542D08 before 0x7542CA8" violated
- ==29385==
- ==29385== Observed (incorrect) order is: acquisition of lock at 0x7542CA8
- ==29385== at 0x483B74C: pthread_rwlock_rdlock_WRK (hg_intercepts.c:2240)
- ==29385== by 0x4AD8285: switch_loadable_module_get_codec_interface (switch_loadable_module.c:2613)
- ==29385== by 0x4A6CD50: switch_core_codec_init_with_bitrate (switch_core_codec.c:663)
- ==29385== by 0x10B1E9: main (switch_core_codec.c:64)
- ==29385==
- ==29385== followed by a later acquisition of lock at 0x7542D08
- ==29385== at 0x4839CCC: mutex_lock_WRK (hg_intercepts.c:909)
- ==29385== by 0x4AD826C: switch_loadable_module_get_codec_interface (switch_loadable_module.c:2613)
- ==29385== by 0x4A6CD50: switch_core_codec_init_with_bitrate (switch_core_codec.c:663)
- ==29385== by 0x4A6D12E: switch_core_codec_copy (switch_core_codec.c:624)
- ==29385== by 0x10B246: main (switch_core_codec.c:74)
- ==29385==
- ==29385== Required order was established by acquisition of lock at 0x7542D08
- ==29385== at 0x4839CCC: mutex_lock_WRK (hg_intercepts.c:909)
- ==29385== by 0x4AD826C: switch_loadable_module_get_codec_interface (switch_loadable_module.c:2613)
- ==29385== by 0x4A6CD50: switch_core_codec_init_with_bitrate (switch_core_codec.c:663)
- ==29385== by 0x10B1E9: main (switch_core_codec.c:64)
- ==29385==
- ==29385== followed by a later acquisition of lock at 0x7542CA8
- ==29385== at 0x483B74C: pthread_rwlock_rdlock_WRK (hg_intercepts.c:2240)
- ==29385== by 0x4AD8285: switch_loadable_module_get_codec_interface (switch_loadable_module.c:2613)
- ==29385== by 0x4A6CD50: switch_core_codec_init_with_bitrate (switch_core_codec.c:663)
- ==29385== by 0x10B1E9: main (switch_core_codec.c:64)
- ==29385==
- ==29385== Lock at 0x7542D08 was first observed
- ==29385== at 0x483DB1D: pthread_mutex_init (hg_intercepts.c:787)
- ==29385== by 0x4D8799E: apr_thread_mutex_create (thread_mutex.c:66)
- ==29385== by 0x4ADAA80: switch_loadable_module_create_interface (switch_loadable_module.c:3115)
- ==29385== by 0x8F2B187: mod_opus_load (mod_opus.c:1352)
- ==29385== by 0x4AD4131: switch_loadable_module_load_file (switch_loadable_module.c:1751)
- ==29385== by 0x4AD4131: switch_loadable_module_load_module_ex (switch_loadable_module.c:1859)
- ==29385== by 0x4AD71C4: switch_loadable_module_init (switch_loadable_module.c:2289)
- ==29385== by 0x4A935D8: switch_core_init_and_modload (switch_core.c:2475)
- ==29385== by 0x10A637: fst_init_core_and_modload (switch_test.h:116)
- ==29385== by 0x10A637: main (switch_core_codec.c:37)
- ==29385== Address 0x7542d08 is 776 bytes inside a block of size 8,192 alloc'd
- ==29385== at 0x48367CF: malloc (vg_replace_malloc.c:299)
- ==29385== by 0x4D88E39: allocator_alloc (apr_pools.c:300)
- ==29385== by 0x4D88E39: apr_pool_create_ex (apr_pools.c:827)
- ==29385== by 0x4A6AE11: switch_core_perform_new_memory_pool (switch_core_memory.c:385)
- ==29385== by 0x4AD3EFE: switch_loadable_module_load_file (switch_loadable_module.c:1685)
- ==29385== by 0x4AD3EFE: switch_loadable_module_load_module_ex (switch_loadable_module.c:1859)
- ==29385== by 0x4AD71C4: switch_loadable_module_init (switch_loadable_module.c:2289)
- ==29385== by 0x4A935D8: switch_core_init_and_modload (switch_core.c:2475)
- ==29385== by 0x10A637: fst_init_core_and_modload (switch_test.h:116)
- ==29385== by 0x10A637: main (switch_core_codec.c:37)
- ==29385== Block was alloc'd by thread #1
- ==29385==
- ==29385== Lock at 0x7542CA8 was first observed
- ==29385== at 0x483B213: pthread_rwlock_init_WRK (hg_intercepts.c:2027)
- ==29385== by 0x4D8783B: apr_thread_rwlock_create (thread_rwlock.c:49)
- ==29385== by 0x4ADAA6B: switch_loadable_module_create_interface (switch_loadable_module.c:3115)
- ==29385== by 0x8F2B187: mod_opus_load (mod_opus.c:1352)
- ==29385== by 0x4AD4131: switch_loadable_module_load_file (switch_loadable_module.c:1751)
- ==29385== by 0x4AD4131: switch_loadable_module_load_module_ex (switch_loadable_module.c:1859)
- ==29385== by 0x4AD71C4: switch_loadable_module_init (switch_loadable_module.c:2289)
- ==29385== by 0x4A935D8: switch_core_init_and_modload (switch_core.c:2475)
- ==29385== by 0x10A637: fst_init_core_and_modload (switch_test.h:116)
- ==29385== by 0x10A637: main (switch_core_codec.c:37)
- ==29385== Address 0x7542ca8 is 680 bytes inside a block of size 8,192 alloc'd
- ==29385== at 0x48367CF: malloc (vg_replace_malloc.c:299)
- ==29385== by 0x4D88E39: allocator_alloc (apr_pools.c:300)
- ==29385== by 0x4D88E39: apr_pool_create_ex (apr_pools.c:827)
- ==29385== by 0x4A6AE11: switch_core_perform_new_memory_pool (switch_core_memory.c:385)
- ==29385== by 0x4AD3EFE: switch_loadable_module_load_file (switch_loadable_module.c:1685)
- ==29385== by 0x4AD3EFE: switch_loadable_module_load_module_ex (switch_loadable_module.c:1859)
- ==29385== by 0x4AD71C4: switch_loadable_module_init (switch_loadable_module.c:2289)
- ==29385== by 0x4A935D8: switch_core_init_and_modload (switch_core.c:2475)
- ==29385== by 0x10A637: fst_init_core_and_modload (switch_test.h:116)
- ==29385== by 0x10A637: main (switch_core_codec.c:37)
- ==29385== Block was alloc'd by thread #1