Bug 526912 - Valgrind errors with latest glibc
Summary: Valgrind errors with latest glibc
Keywords:
Status: CLOSED DUPLICATE of bug 518247
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-02 13:37 UTC by Zdenek Kabelac
Modified: 2009-10-02 13:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-10-02 13:41:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.