[ https://issues.apache.org/jira/browse/TS-1735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590889#comment-13590889 ]
Bryan Call commented on TS-1735: -------------------------------- Backtrace with debug enabled: (gdb) bt #0 0x00007fff8fa17d46 in __kill () #1 0x00007fff84824df0 in abort () #2 0x0000000100aff8d3 in ink_mutex_init () #3 0x0000000100aff64d in reclaimable_freelist_init () #4 0x0000000100afe9c1 in ink_freelist_init () #5 0x000000010018b3c1 in Allocator::Allocator () #6 0x000000010018aba1 in Allocator::Allocator () #7 0x0000000100af1947 in __cxx_global_var_init () #8 0x0000000100af1959 in global constructors keyed to a () The core is happening at ink_mutex.h:80 if (pthread_mutex_init(m, &_g_mattr.attr) != 0) { <--- _g_mattr hasn't been initialized abort(); <----- here } > reclaimable freelist causes core in osx > --------------------------------------- > > Key: TS-1735 > URL: https://issues.apache.org/jira/browse/TS-1735 > Project: Traffic Server > Issue Type: Bug > Components: Core > Reporter: Bryan Call > Fix For: 3.3.1 > > > Global variable dependency and ininitialtion order can cause reclaimable > freelist to core. Reclaimable freelist depends on a global mutex attribute. > (gdb) bt > #0 0x00007fff8fa17d46 in __kill () > #1 0x00007fff84824df0 in abort () > #2 0x00000001009ce697 in reclaimable_freelist_init (fl=<value temporarily > unavailable, due to optimizations>, name=<value temporarily unavailable, due > to optimizations>, type_size=<value temporarily unavailable, due to > optimizations>, chunk_size=<value temporarily unavailable, due to > optimizations>, alignment=<value temporarily unavailable, due to > optimizations>) at ink_mutex.h:80 > #3 0x00007fff5fc13378 in > __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE > () > #4 0x00007fff5fc13762 in > __dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE > () > #5 0x00007fff5fc1006e in > __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE > () > #6 0x00007fff5fc0ffc4 in > __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE > () > #7 0x00007fff5fc0feba in > __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE > () > #8 0x00007fff5fc01fc0 in __dyld__ZN4dyld24initializeMainExecutableEv () > #9 0x00007fff5fc05b04 in > __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_Pm () > #10 0x00007fff5fc01397 in > __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKclS2_Pm () > #11 0x00007fff5fc0105e in __dyld__dyld_start () -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira