Bug 2491

Summary: busybox: nslookup: segfaults when an IPv6 nameserver is listed in /etc/resolv.conf
Product: Busybox Reporter: Matt Smith <mcs>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.17.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

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)