cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1346 resolver error

From: Christian Hesse <eworm_at_users.sf.net>
Date: Mon, 17 Mar 2014 15:53:27 +0000

This is Arch Linux, package version 7.35.0-1.
https://www.archlinux.org/packages/core/x86_64/curl/

These are the build options:
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/curl

It is not linked against c-ares:

ldd /usr/lib/libcurl.so
        linux-vdso.so.1 (0x00007fffcb3fe000)
        libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007fc3420e8000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fc341e7b000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fc341a75000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007fc341829000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007fc341548000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007fc341316000)
        libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007fc341111000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fc340efb000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fc340cde000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007fc340935000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fc340731000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007fc340524000)
        libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007fc34031f000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fc340108000)
        /usr/lib64/ld-linux-x86-64.so.2 (0x00007fc3425bf000)

---
** [bugs:#1346] resolver error**
**Status:** open
**Labels:** dns 
**Created:** Mon Mar 17, 2014 03:40 PM UTC by Christian Hesse
**Last Updated:** Mon Mar 17, 2014 03:44 PM UTC
**Owner:** Daniel Stenberg
libcurl has a resolver bug that requires some conditions to trigger:
* libcurl tries to resolv A and AAAA records
* DNS response is too long to fit into a UDP packet
What happens:
* libcurl sends two DNS UDP requests, one for A record, one for AAAA record
* libcurl receives one truncated UDP response
* libcurl sends TCP request
* libcurl receives TCP response
* libcurl sends TCP reset, ignoring the response
Everything works just fine when querying only A record (give option -4).
A capture demonstrating the problem is attached.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-03-17

These mail archives are generated by hypermail.

donate! Page updated December 29, 2013.
web site info

File upload with ASP.NET