HOMEPAGE FORUMS NEWS DOCUMENTATION SCREENSHOTS
SystemRescueCd forums
View unanswered posts | View active topics It is currently 20 Aug 2014, 04:49



Post new topic Reply to topic  [ 3 posts ] 
 Nameresolver broken in initrd sysrcs 2.0.1beta3 
Author Message

Joined: 07 Apr 2010, 16:19
Posts: 945
Post Nameresolver broken in initrd sysrcs 2.0.1beta3
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:
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\0@&\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)                           = ?


06 Feb 2011, 09:12
Profile
Site Admin

Joined: 17 Jul 2003, 09:44
Posts: 2700
Post Re: Nameresolver broken in initrd sysrcs 2.0.1beta3
Many thanks for having reported that problem, it will be fixed in 2.0.1-beta004 soon.


06 Feb 2011, 14:20
Profile

Joined: 07 Apr 2010, 16:19
Posts: 945
Post Re: Nameresolver broken in initrd sysrcs 2.0.1beta3
Thank you,
initrd name resolving works in beta4.

Gernot


06 Feb 2011, 19:48
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.