Description of problem: Valgrind complains about errors in strcmp and strlen functions: Here is just short cut from plain 'ls' command output: =2679== Invalid read of size 8 ==2679== at 0x56DCD74: __GI_strncmp (strcmp.S:830) ==2679== by 0x5686143: _nl_load_locale_from_archive (loadarchive.c:177) ==2679== by 0x5685301: _nl_find_locale (findlocale.c:107) ==2679== by 0x5684B05: setlocale (setlocale.c:333) ==2679== by 0x40817E: ??? (in /bin/ls) ==2679== by 0x5679B4C: (below main) (libc-start.c:220) ==2679== Address 0x6000380 is 0 bytes inside a block of size 5 alloc'd ==2679== at 0x4C25E5D: malloc (vg_replace_malloc.c:195) ==2679== by 0x568B865: _nl_normalize_codeset (l10nflist.c:345) ==2679== by 0x568612D: _nl_load_locale_from_archive (loadarchive.c:174) ==2679== by 0x5685301: _nl_find_locale (findlocale.c:107) ==2679== by 0x5684B05: setlocale (setlocale.c:333) ==2679== by 0x40817E: ??? (in /bin/ls) ==2679== by 0x5679B4C: (below main) (libc-start.c:220) ==2679== ==2679== Conditional jump or move depends on uninitialised value(s) ==2679== at 0x56DC284: __GI_strlen (strlen.S:37) ==2679== by 0x5685EA7: _nl_load_locale_from_archive (loadarchive.c:271) ==2679== by 0x5685301: _nl_find_locale (findlocale.c:107) ==2679== by 0x5684B05: setlocale (setlocale.c:333) ==2679== by 0x40817E: ??? (in /bin/ls) ==2679== by 0x5679B4C: (below main) (libc-start.c:220) ==2679== ==2679== Conditional jump or move depends on uninitialised value(s) ==2679== at 0x5685EAD: _nl_load_locale_from_archive (hashval.h:38) ==2679== by 0x5685301: _nl_find_locale (findlocale.c:107) ==2679== by 0x5684B05: setlocale (setlocale.c:333) ==2679== by 0x40817E: ??? (in /bin/ls) ==2679== by 0x5679B4C: (below main) (libc-start.c:220) ... Not really sure which comment here is to be fixed - either glibc or valgrind... Version-Release number of selected component (if applicable): glibc-2.10.90-24.x86_64 valgrind-3.5.0-1.x86_64 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
*** This bug has been marked as a duplicate of bug 518247 ***