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

#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:4 kaliber]:
 > I did some research, my conclusions:
 >
 > 1. In ICUNumericData::Initialize() *dataBridge->addrOfGlibcDecimalPoint
 has correct value (".")

 As it should have.

 > 2. Writing to the *dataBridge->addrOfGlibcDecimalPoint is not permitted,
 additionally in the syslog there is "write access attempted on write-
 protected area 0x657 at 0x00613000", it's possible clang bug.

 Err, no, actually it '''is''' a bug in my code, since the struct that is
 being written to is marked as constant, so the compiler is free to put it
 into a write-protected section (which apparently gcc doesn't). Fixing ...

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

Other related posts: