Bug 2491 - busybox: nslookup: segfaults when an IPv6 nameserver is listed in /etc/resolv.conf
Summary: busybox: nslookup: segfaults when an IPv6 nameserver is listed in /etc/resolv...
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.17.x
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-02 00:49 UTC by Matt Smith
Modified: 2011-09-11 17:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Smith 2010-09-02 00:49:38 UTC
As long as you have an IPv6 nameserver listed in /etc/resolv.conf, nslookup will segfault.

Here's what I have observed:
* It doesn't matter if you have both IPv6 and IPv4 nameservers (if you do, the order doesn't matter either).
* Using nslookup with only IPv4 nameserver(s) in resolv.conf seems to resolve A, AAAA, and ip6.arpa PTR records just fine.
* The ping and traceroute applets don't seem to have a problem pinging or tracerouting hostnames with A-only records or those with A and AAAA records. (Of course, they only ping or traceroute via IPv4.)

I'm using Alpine Linux 2.0.0 with busybox 1.17.1 and uclibc++ 0.2.2.

Here are the corresponding APKBUILDs directly from the aports git tree:
http://git.alpinelinux.org/cgit/aports/tree/main/busybox/APKBUILD
http://git.alpinelinux.org/cgit/aports/tree/main/uclibc++/APKBUILD
Comment 1 Natanael Copa 2010-09-02 13:24:29 UTC
i think you mean uclibc, not uclibc++:
http://git.alpinelinux.org/cgit/aports/tree/main/libc0.9.32
Comment 2 Matt Smith 2011-03-09 17:29:59 UTC
@Natanael Copa: You're right.

This seems to have been fixed; it now works problem-free in the following version combinations:

- uClibc 0.9.32_alpha0_git1012071015 / busybox 1.17.4 (Alpine Linux v2.1.5)
- uClibc 0.9.32_rc2 / busybox 1.18.3 (Alpine Linux - Edge - 2011-03-09)