Nameresolver broken in initrd sysrcs 2.0.1beta3

You can report problems, make suggestions, about the new BETA versions in this forum. For stuff related to final releases, please post a message in other forums
gernot
Posts: 1125
Joined: 07 Apr 2010, 16:19

Nameresolver broken in initrd sysrcs 2.0.1beta3

Postby gernot » 06 Feb 2011, 09:12

like written in this post the hostname resolving dont work in initrd enviremont (busybox).
viewtopic.php?f=18&p=11484#p11484

After some traces i think its not the busybox configuration but a linked lib. Im not sure what is static linked because ldd says " not a dynamic executable" but busybox loads libs.

The failing function is getaddrinfo().

Here is the end of a busybox strace running in the SYSRCD enviremont (dns working). Before this, busybox tries to get data from nscd. it looks there is no difference betwen loading initrd or SYSRCD libs.

Code: Select all

open("/lib/libnss_dns.so.2", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\v\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=21896, ...}) = 0
mmap2(NULL, 20612, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4ff000
mmap2(0x503000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x503000
close(3)                                = 0
open("/lib/libresolv.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\[email protected]&\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=71296, ...}) = 0
mmap2(NULL, 84040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x570000
mmap2(0x581000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0x581000
mmap2(0x583000, 6216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x583000
close(3)                                = 0
mprotect(0x581000, 4096, PROT_READ)     = 0
mprotect(0x503000, 4096, PROT_READ)     = 0
munmap(0xf7707000, 48619)               = 0
write(2, "ping: bad address 'fritz.box'\n", 30ping: bad address 'fritz.box'
) = 30
exit_group(1)                           = ?

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Nameresolver broken in initrd sysrcs 2.0.1beta3

Postby admin » 06 Feb 2011, 14:20

Many thanks for having reported that problem, it will be fixed in 2.0.1-beta004 soon.

gernot
Posts: 1125
Joined: 07 Apr 2010, 16:19

Re: Nameresolver broken in initrd sysrcs 2.0.1beta3

Postby gernot » 06 Feb 2011, 19:48

Thank you,
initrd name resolving works in beta4.

Gernot


Return to “Beta versions (report a bug found in a beta)”

Who is online

Users browsing this forum: No registered users and 1 guest