https://issues.apache.org/ooo/show_bug.cgi?id=121139

Oliver-Rainer Wittmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #33 from Oliver-Rainer Wittmann <[email protected]> ---
I have found the root cause together with Herbert

I also see missing numbering characters in the number format list, but could
not reproduce the described crashes. I observe other crashes by using number
formats with missing numbering characters.

I had a look at the changes made to module i18npool.
I found the change of revision 1350317.
Reverting the change brought back the missing numbering characters in the
number format list and the crashes I observed at gone.

Together with Herbert I investigated the code and we got it:
- string <newStr> was created by using (damn) function
<x_rtl_uString_new_WithLength(...)> which creates a string with reference count
0.
- the changed return statement (revision 1350317) passes over the ownership of
string <newStr> without incrementing the reference count.
--> not a good situation having a string with a reference count of 0.

Solution: 
get rid of function <x_rtl_uString_new_WithLength(...)> in favor of
<rtl_uString_new_WithLength(...)> and assure that the memory of the string are
not leaking.

@Regina, @Ariel:
Can you please give it a try by just reverting change of revision 1350317 in
your environment?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to