Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472544 - =sys-libs/glibc-2.17 getaddrinfo: free() tries to free invalid data: 0 bytes inside data symbol "noai6ai_cached"
Summary: =sys-libs/glibc-2.17 getaddrinfo: free() tries to free invalid data: 0 bytes ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 05:54 UTC by Sergei Trofimovich (RETIRED)
Modified: 2016-06-19 13:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2013-06-07 05:54:17 UTC
I've observed this bug on curlftpfs today.

Bug description with minimal test case is here:

https://bugzilla.redhat.com/show_bug.cgi?id=754026

==3271== Invalid free() / delete / delete[]
==3271==    at 0x4C2962E: free (vg_replace_malloc.c:366)
==3271==    by 0x4F459B7: __free_in6ai (check_pf.c:426)
==3271==    by 0x4F0D444: getaddrinfo (getaddrinfo.c:2560)
==3271==    by 0x4005F4: _resolve_addr (in /home/matt/test/gai-invalid-free/test)
==3271==    by 0x400652: main (in /home/matt/test/gai-invalid-free/test)
==3271==  Address 0x51e3390 is 0 bytes inside data symbol "noai6ai_cached"

I failed to find what actually fixes in in glibc's tree. Sorry.
Comment 1 Andrew Kovalenko 2014-02-13 17:34:12 UTC
It occurs in version 2.18-r1 too:

==11499== Invalid free() / delete / delete[] / realloc()
==11499==    at 0x4C2A2AC: free (vg_replace_malloc.c:468)
==11499==    by 0x5E61C6B: __libc_freeres (in /lib64/libc-2.18.so)
==11499==    by 0x4A2374C: _vgnU_freeres (vg_preloaded.c:62)
==11499==    by 0x5D4C839: __run_exit_handlers (in /lib64/libc-2.18.so)
==11499==    by 0x5D4C8D4: exit (in /lib64/libc-2.18.so)
==11499==    by 0x5D35DDB: (below main) (in /lib64/libc-2.18.so)
==11499==  Address 0x60b92d0 is 0 bytes inside data symbol "noai6ai_cached"
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2016-06-19 13:35:04 UTC
On modern glibc (2.22, 2.23) the bug does not manifest.
Tried on sample from https://bugzilla.redhat.com/show_bug.cgi?id=754026

Closing as OBSOLETE.