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 libc/21336] __libc_res_nsearch() leak?


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

--- Comment #2 from Rob Krakora <rob.krakora at bluepillar dot com> ---

Here is a trace flagged by dmalloc (we could not use Valgrind as we are on an
ARM v5 and Valgrind support starts at ARM v7) as the source of the 64K memory
leak.

#0  send_dg (resplen2=<optimized out>, anssizp2=<optimized out>,
ansp2=<optimized out>, anscp=<optimized out>, 
    gotsomewhere=<synthetic pointer>, v_circuit=<synthetic pointer>,
ns=-1290429468, terrno=0xb3159bcc, anssizp=0xb3159c80, 
    ansp=0xb3159c7c, buflen2=<optimized out>, buf2=<optimized out>,
buflen=<optimized out>, buf=<optimized out>, statp=0x0)
    at res_send.c:1359
#1  __libc_res_nsend (statp=statp@entry=0xb315c704, buf=0x0,
buf@entry=0xb3159ca8 "(\255\001", buflen=0, buflen@entry=63, 
    buf2=0xb315c704 "\005", buf2@entry=0xb3159ce8 "\001q\001",
buflen2=buflen2@entry=63, ans=ans@entry=0xb315a7f0 "(\255\201\200", 
    anssiz=anssiz@entry=2048, ansp=ansp@entry=0xb315aff8,
ansp2=ansp2@entry=0xb315affc, nansp2=nansp2@entry=0xb315b000, 
    resplen2=resplen2@entry=0xb315b004) at res_send.c:575
#2  0xb0927b84 in __GI___libc_res_nquery (statp=statp@entry=0xb315c704, 
    name=name@entry=0x109f414 "bp-cloud-api-app-01.eastus.cloudapp.azure.com",
class=class@entry=1, type=type@entry=17429524, 
    answer=0xb315a7f0 "(\255\201\200", answer@entry=0xb0928634
<__GI___libc_res_nsearch+656> "", anslen=2048, anslen@entry=62321, 
    answerp=0xb315aff8, answerp@entry=0xb315a7f0, answerp2=0xb315affc,
answerp2@entry=0x800, nanswerp2=0xb315b000, 
    nanswerp2@entry=0xb315aff8, resplen2=0xb315b004, resplen2@entry=0xb315affc)
at res_query.c:226
#3  0xb0928114 in __libc_res_nquerydomain (statp=statp@entry=0xb315c704, 
    name=name@entry=0x109f414 "bp-cloud-api-app-01.eastus.cloudapp.azure.com",
domain=domain@entry=0x0, class=1, 
    class@entry=5024748, type=62321, type@entry=0, answer=0xb315a7f0
"(\255\201\200", 
    answer@entry=0xb315b03c "\330K\241\266`\265\025\263l\265\025\263",
anslen=anslen@entry=2048, answerp=answerp@entry=0xb315aff8, 
    answerp2=answerp2@entry=0xb315affc, nanswerp2=0xb315b000,
nanswerp2@entry=0xb315aff8, resplen2=0xb315b004, 
    resplen2@entry=0xb315affc) at res_query.c:585
#4  0xb0928634 in __GI___libc_res_nsearch (statp=0xb315c704, name=0x109f414
"bp-cloud-api-app-01.eastus.cloudapp.azure.com", 
    class=5024748, class@entry=1, type=0, type@entry=62321,
answer=answer@entry=0xb315a7f0 "(\255\201\200", 
    anslen=anslen@entry=2048, answerp=0xb315aff8,
answerp2=answerp2@entry=0xb315affc, nanswerp2=nanswerp2@entry=0xb315b000, 
    resplen2=resplen2@entry=0xb315b004) at res_query.c:378
#5  0xb093f4a4 in _nss_dns_gethostbyname4_r (name=<optimized out>, 
    name@entry=0x109f414 "bp-cloud-api-app-01.eastus.cloudapp.azure.com",
pat=pat@entry=0xb315b55c, 
    buffer=buffer@entry=0xb315b058 "\177", buflen=buflen@entry=1056,
errnop=errnop@entry=0xb315b560, 
    herrnop=herrnop@entry=0xb315b56c, ttlp=ttlp@entry=0x0) at
nss_dns/dns-host.c:314
#6  0xb6a14bd8 in gaih_inet (name=<optimized out>, name@entry=0x109f414
"bp-cloud-api-app-01.eastus.cloudapp.azure.com", 
    service=<optimized out>, req=req@entry=0xb315b6f8,
pai=pai@entry=0xb315b608, naddrs=naddrs@entry=0xb315b614)
    at ../sysdeps/posix/getaddrinfo.c:850
#7  0xb6a16ab4 in __GI_getaddrinfo (name=0x109f414
"bp-cloud-api-app-01.eastus.cloudapp.azure.com", service=0x0, hints=0xb315b6f8, 
    pai=0xb315b6d8) at ../sysdeps/posix/getaddrinfo.c:2406
#8  0x00220ddc in Poco::Net::DNS::hostByName (hostname=...,
hintFlags=hintFlags@entry=34)
    at
/mnt/gateway-image/mlinux-3.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/poco/1.7.7-r0/poco-poco-1.7.7-release/Net/src/DNS.cpp:60
#9  0x00202000 in Poco::Net::SocketAddress::init (this=this@entry=0xb315b7a0,
hostAddress=..., portNumber=<optimized out>)
    at
/mnt/gateway-image/mlinux-3.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/poco/1.7.7-r0/poco-poco-1.7.7-release/Net/src/SocketAddress.cpp:233
#10 0x002022fc in Poco::Net::SocketAddress::SocketAddress (this=0xb315b7a0,
hostAddress=..., portNumber=<optimized out>)
    at
/mnt/gateway-image/mlinux-3.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/poco/1.7.7-r0/poco-poco-1.7.7-release/Net/src/SocketAddress.cpp:76
#11 0x002186fc in Poco::Net::HTTPClientSession::reconnect
(this=this@entry=0x1219a08)
    at
/mnt/gateway-image/mlinux-3.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/poco/1.7.7-r0/poco-poco-1.7.7-release/Net/src/HTTPClientSession.cpp:341
#12 0x00219760 in Poco::Net::HTTPClientSession::sendRequest (this=0x1219a08,
request=...)
    at
/mnt/gateway-image/mlinux-3.x/build/tmp/work/arm926ejste-mlinux-linux-gnueabi/poco/1.7.7-r0/poco-poco-1.7.7-release/Net/src/HTTPClientSession.cpp:205
#13 0x000be8b0 in AvisePocoClient::sendRequest (this=0x10f7008, req=...)

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