[haiku-bugs] Re: [Haiku] #6581: Crash in ICUNumericData::Initialize()

  • From: "zooey" <trac@xxxxxxxxxxxx>
  • Date: Sat, 11 Sep 2010 16:04:16 -0000

#6581: Crash in ICUNumericData::Initialize()
------------------------------+---------------------------------------------
  Reporter:  kaliber          |         Owner:  zooey         
      Type:  bug              |        Status:  in-progress   
  Priority:  normal           |     Milestone:  R1            
 Component:  Kits/Locale Kit  |       Version:  R1/Development
Resolution:                   |      Keywords:  clang         
Blocked By:                   |   Has a Patch:  0             
  Platform:  All              |      Blocking:                
------------------------------+---------------------------------------------

Comment (by zooey):

 Replying to [comment:2 zooey]:
 [ ... ]
 > The problem seems to be that the code relies on global objects being
 initialized in a specific order and that clang picks a different order. In
 this specific case, the constructor of LocaleNumericDataBridge relies on
 glibc's _nl_C_LC_NUMERIC to be set up already. I'm trying to find a way
 around that ...

 Nope, _nl_C_LC_NUMERIC is not dynamically initialized, so it *must* be
 filled before any dynamic initialization is done. So something's wrong
 with the clang port, I suppose.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6581#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: