Bug 526912

Summary: Valgrind errors with latest glibc
Product: [Fedora] Fedora Reporter: Zdenek Kabelac <zkabelac>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jakub, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-02 13:41:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zdenek Kabelac 2009-10-02 13:37:45 UTC
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:

Comment 1 Jakub Jelinek 2009-10-02 13:41:09 UTC

*** This bug has been marked as a duplicate of bug 518247 ***