- 论坛徽章:
- 0
|
每次运行/usr/sbin/chroot /dns /usr/local/sbin/named -u named后都提示错误:
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] starting BIND 9.6.1 -u named
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] built with defaults
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] starting BIND 9.6.1 -u named
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] built with defaults
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.info] found 2 CPUs, using 2 worker threads
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.info] using up to 4096 sockets
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] socket.c:3497: fatal error:
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] ioctl(DP_POLL) failed: Invalid argument
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] exiting (due to fatal error in library)
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] socket.c:3497: fatal error:
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] ioctl(DP_POLL) failed: Invalid argument
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] exiting (due to fatal error in library)
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] starting BIND 9.6.1 -u named
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] built with defaults
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] starting BIND 9.6.1 -u named
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.notice] built with defaults
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.info] found 2 CPUs, using 2 worker threads
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.info] using up to 4096 sockets
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] socket.c:3497: fatal error:
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] ioctl(DP_POLL) failed: Invalid argument
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] exiting (due to fatal error in library)
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] socket.c:3497: fatal error:
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] ioctl(DP_POLL) failed: Invalid argument
Jun 29 10:26:44 Solaris2 named[14694]: [ID 873579 daemon.crit] exiting (due to fatal error in library)
后来运行truss /usr/sbin/chroot /dns /usr/local/sbin/named -u named的结果如下,哪位大哥帮忙看看问题出在哪里,谢谢!
Solaris# truss /usr/sbin/chroot /dns /usr/local/sbin/named -u named
execve("/usr/sbin/chroot", 0x08047D18, 0x08047D30) argc = 5
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD17F0000
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
resolvepath("/usr/sbin/chroot", "/usr/sbin/chroot", 1023) = 16
sysconfig(_CONFIG_PAGESIZE) = 4096
stat64("/usr/sbin/chroot", 0x08047AB0) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
stat64("/lib/libc.so.1", 0x08047350) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xD17B0000
mmap(0x00010000, 1212416, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1680000
mmap(0xD1680000, 1102069, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1680000
mmap(0xD179E000, 30183, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1105920) = 0xD179E000
mmap(0xD17A6000, 4240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xD17A6000
munmap(0xD178E000, 65536) = 0
memcntl(0xD1680000, 123884, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1790000
munmap(0xD17B0000, 3276 = 0
getcontext(0x08047920)
getrlimit(RLIMIT_STACK, 0x0804791 = 0
getpid() = 14693 [14692]
lwp_private(0, 1, 0xD1792A00) = 0x000001C3
setustack(0xD1792A60)
sysi86(SI86FPSTART, 0xD17A6740, 0x0000133F, 0x00001F80) = 0x00000001
chroot("/dns" = 0
chdir("/" = 0
execve("/usr/local/sbin/named", 0x08047D20, 0x08047D30) argc = 3
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD17F0000
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
resolvepath("/usr/local/sbin/named", "/usr/local/sbin/named", 1023) = 21
xstat(2, "/usr/local/sbin/named", 0x08047B0 = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libcrypto.so.0.9.8", 0x0804733 Err#2 ENOENT
xstat(2, "/usr/lib/libcrypto.so.0.9.8", 0x0804733 = 0
resolvepath("/usr/lib/libcrypto.so.0.9.8", "/usr/lib/libcrypto.so.0.9.8", 1023) = 27
open("/usr/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xD17B0000
mmap(0x00010000, 1327104, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1660000
mmap(0xD1660000, 1162005, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1660000
mmap(0xD178B000, 90108, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 115916 = 0xD178B000
mmap(0xD17A1000, 9448, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xD17A1000
munmap(0xD177C000, 61440) = 0
memcntl(0xD1660000, 222860, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
sysconfig(_CONFIG_PAGESIZE) = 4096
xstat(2, "/usr/local/ssl/lib/libnsl.so.1", 0x0804733 Err#2 ENOENT
xstat(2, "/usr/lib/libnsl.so.1", 0x0804733 = 0
resolvepath("/usr/lib/libnsl.so.1", "/usr/lib/libnsl.so.1", 1023) = 20
open("/usr/lib/libnsl.so.1", O_RDONLY) = 3
mmap(0xD17B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD17B0000
mmap(0x00010000, 647168, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD15C0000
mmap(0xD15C0000, 525089, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD15C0000
mmap(0xD1651000, 19869, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 528384) = 0xD1651000
mmap(0xD1656000, 30032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xD1656000
munmap(0xD1641000, 65536) = 0
memcntl(0xD15C0000, 57812, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x0804733 Err#2 ENOENT
xstat(2, "/usr/lib/libsocket.so.1", 0x0804733 = 0
resolvepath("/usr/lib/libsocket.so.1", "/usr/lib/libsocket.so.1", 1023) = 23
open("/usr/lib/libsocket.so.1", O_RDONLY) = 3
mmap(0xD17B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD17B0000
mmap(0x00010000, 114688, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD15A0000
mmap(0xD15A0000, 43986, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD15A0000
mmap(0xD15BB000, 2645, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 45056) = 0xD15BB000
munmap(0xD15AB000, 65536) = 0
memcntl(0xD15A0000, 12080, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libscf.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libscf.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libscf.so.1", "/usr/lib/libscf.so.1", 1023) = 20
open("/usr/lib/libscf.so.1", O_RDONLY) = 3
mmap(0xD17B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD17B0000
mmap(0x00010000, 159744, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1570000
mmap(0xD1570000, 89784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1570000
mmap(0xD1596000, 1873, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 90112) = 0xD1596000
munmap(0xD1586000, 65536) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD17C0000
memcntl(0xD1570000, 14596, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libpthread.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libpthread.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libpthread.so.1", "/usr/lib/libpthread.so.1", 1023) = 24
open("/usr/lib/libpthread.so.1", O_RDONLY) = 3
mmap(0xD17B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD17B0000
munmap(0xD17B3000, 20480) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libthread.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libthread.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libthread.so.1", "/usr/lib/libthread.so.1", 1023) = 23
open("/usr/lib/libthread.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xD1780000
munmap(0xD1784000, 16384) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libxml2.so.2", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libxml2.so.2", 0x08047338) = 0
resolvepath("/usr/lib/libxml2.so.2", "/usr/lib/libxml2.so.2", 1023) = 21
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xD15B0000
mmap(0x00010000, 1200128, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1440000
mmap(0xD1440000, 1090616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1440000
mmap(0xD155A000, 38228, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1089536) = 0xD155A000
mmap(0xD1564000, 288, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xD1564000
munmap(0xD154B000, 61440) = 0
memcntl(0xD1440000, 116324, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libz.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libz.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libz.so.1", "/usr/lib/libz.so.1", 1023) = 18
open("/usr/lib/libz.so.1", O_RDONLY) = 3
mmap(0xD15B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD15B0000
mmap(0x00010000, 126976, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1420000
mmap(0xD1420000, 58404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1420000
mmap(0xD143E000, 2602, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 57344) = 0xD143E000
munmap(0xD142F000, 61440) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1590000
memcntl(0xD1420000, 4104, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libm.so.2", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libm.so.2", 0x08047338) = 0
resolvepath("/usr/lib/libm.so.2", "/usr/lib/libm.so.2", 1023) = 18
open("/usr/lib/libm.so.2", O_RDONLY) = 3
mmap(0xD15B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD15B0000
mmap(0x00010000, 352256, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD13C0000
mmap(0xD13C0000, 271027, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD13C0000
mmap(0xD1412000, 14852, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 270336) = 0xD1412000
munmap(0xD1403000, 61440) = 0
memcntl(0xD13C0000, 23396, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/ssl/lib/libc.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libc.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libc.so.1", "/usr/lib/libc.so.1", 1023) = 18
open("/usr/lib/libc.so.1", O_RDONLY) = 3
mmap(0xD15B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD15B0000
mmap(0x00010000, 1212416, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1290000
mmap(0xD1290000, 1101957, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1290000
mmap(0xD13AE000, 30183, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1105920) = 0xD13AE000
mmap(0xD13B6000, 4240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xD13B6000
munmap(0xD139E000, 65536) = 0
memcntl(0xD1290000, 123808, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/usr/local/lib/libsocket.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/X11R6/lib/libsocket.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/BerkeleyDB.4.7/lib/libsocket.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libsocket.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/lib/libnsl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libnsl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/X11R6/lib/libnsl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/BerkeleyDB.4.7/lib/libnsl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/lib/libdl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libdl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/X11R6/lib/libdl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/BerkeleyDB.4.7/lib/libdl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libdl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libdl.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libdl.so.1", "/usr/lib/libdl.so.1", 1023) = 19
open("/usr/lib/libdl.so.1", O_RDONLY) = 3
mmap(0xD15B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD15B0000
mmap(0x00010000, 73728, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1270000
mmap(0xD1270000, 1532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1270000
mmap(0xD1281000, 112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 4096) = 0xD1281000
munmap(0xD1271000, 65536) = 0
close(3) = 0
xstat(2, "/usr/local/lib/libgcc_s.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libgcc_s.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/X11R6/lib/libgcc_s.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/local/BerkeleyDB.4.7/lib/libgcc_s.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libgcc_s.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libgcc_s.so.1", 0x08047338) = 0
resolvepath("/usr/lib/libgcc_s.so.1", "/usr/lib/libgcc_s.so.1", 1023) = 22
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = 3
mmap(0xD15B0000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xD15B0000
mmap(0x00010000, 94208, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xD1250000
mmap(0xD1250000, 25184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xD1250000
mmap(0xD1266000, 3372, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 24576) = 0xD1266000
munmap(0xD1257000, 61440) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xD1260000
memcntl(0xD1250000, 4984, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
xstat(2, "/lib/libc.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libc.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/lib/libdoor.so.1", 0x08047338) Err#2 ENOENT
xstat(2, "/usr/lib/libdoor.so.1", 0x08047338) = 0
待续........ |
|