You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Bin (JIRA)" <ji...@apache.org> on 2015/05/02 00:19:07 UTC

[jira] [Updated] (TS-3392) Static initialization order fiasco

     [ https://issues.apache.org/jira/browse/TS-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bin updated TS-3392:
--------------------
    Attachment: static_init_fiasco_4.diff

The fix has been updated. It should be able to be applied cleanly. 

> Static initialization order fiasco
> ----------------------------------
>
>                 Key: TS-3392
>                 URL: https://issues.apache.org/jira/browse/TS-3392
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Bin
>            Assignee: Leif Hedstrom
>             Fix For: 6.0.0
>
>         Attachments: static_init_fiasco_2.diff, static_init_fiasco_4.diff
>
>
> There is a static initialization order bug in ATS core on Mac OS X when it is configured with --enable-reclaimable-freelist. The static variable declared in file Arena.cc 
> static Allocator defaultSizeArenaBlock("ArenaBlock", DEFAULT_ALLOC_SIZE);
> uses another static variable x_pthread_mutexattr_t _g_mattr declared in file ink_mutex.cc, which have not been initialized. It causes ATS to abort early.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)