This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug locale/19084] localedef incompatibility between 2.21/2.22 affects statically linked binaries


https://sourceware.org/bugzilla/show_bug.cgi?id=19084

Rafal Luzynski <digitalfreak at lingonborough dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |digitalfreak@lingonborough.
                   |                            |com

--- Comment #2 from Rafal Luzynski <digitalfreak at lingonborough dot com> ---
Created attachment 9112
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9112&action=edit
Make sure _nl_value_type_LC_<category> arrays have correct size

Partially this has been worked around with this commit:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=0062ace2292effc4135c15ea99b1931fea5e0203
If a problem occurs then it just returns an error code and ignores the faulty
locale file rather than raising an assertion. The solution is partial because
we still want this file to be loaded rather than silently rejected.

I have not reproduced your problem but I have spotted a similar case which may
be the same. The root reason is that a size of a locale category (a number of
its items) was not calculated correctly. If the last element of a category was
an array (consisted of multiple elements) this algorithm counted it as a single
element. The locale file was correct, the assertion was false positive. This
patch fixes my problem and maybe will fix your problem.

The problem has not been spotted before because so far there was no category
ending with a subarray but I'm going to add one as a solution for bug 10871.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]