Skip to contentSkip to conversation

weird messages from 2.1.99, ultrapenguin-1.0.9

DISCUSSION Jan Rychter 2 participants 4 messages Jul 3, 1998 – Jul 4, 1998

lore
Share & tools
lore
#0 lore raw

[14:07] sonata:/stuff#/usr/sbin/named
get interface configuration: Cannot allocate memory Abort

(trying another time I succeeded)

[14:07] sonata:/stuff/#ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:7168 Metric:1
RX packets:186 errors:0 dropped:0 overruns:0 frame:0 TX packets:186 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

eth0 Link encap:Ethernet HWaddr 08:00:20:86:98:50

          inet addr:194.181.232.10  Bcast:194.181.232.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:115501 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58801 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0
          Interrupt:4 Base address:0x6400

whiteh: unknown interface.
[14:07] sonata:/stuff#

Any ideas ?

As far as memory is concerned:

[14:07] sonata:/stuff#free
total used free shared buffers cached

Mem:         61864      43368      18496      21456      10944       8736
-/+ buffers/cache:      23688      38176

Swap: 122344 8104 114240
[14:09] sonata:/stuff#

[14:09] sonata:/stuff#uname -a
Linux sonata.chopin.edu.pl 2.1.99 #3 Tue Jun 30 16:49:49 CEST 1998 sparc64 unknown

thanks,
--J.

#1 lore raw

From: Jan Rychter <[email protected]>
Date: 03 Jul 1998 14:13:46 +0200

[14:07] sonata:/stuff#/usr/sbin/named
get interface configuration: Cannot allocate memory Abort

(trying another time I succeeded)

Run it under strace during a failure case and send us the output.

[14:07] sonata:/stuff/#ifconfig

...

whiteh: unknown interface.
[14:07] sonata:/stuff#

Harmless message. The virtual whitehole networking interface is available when you config the kernel with various options set, and this ifconfig has no idea what it is.

Later,
David S. Miller
[email protected]

#2 lore raw
In reply to Jan Rychter
Quoted 10 lines

From: Jan Rychter <[email protected]>
Date: 03 Jul 1998 14:13:46 +0200

[14:07] sonata:/stuff#/usr/sbin/named
get interface configuration: Cannot allocate memory Abort

(trying another time I succeeded)

Run it under strace during a failure case and send us the output.

There you go:

execve("/usr/sbin/named", ["/usr/sbin/named"], [/* 33 vars */]) = 0

brk(0)                                  = 0x78888
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4

fstat(4, {st_mode=S_IFREG|0644, st_sizet98, ...}) = 0 mmap(0, 7498, PROT_READ, MAP_PRIVATE, 4, 0) = 0x70014000
close(4) = 0
open("/lib/libc.so.6", O_RDONLY) = 4
mmap(0, 8192, PROT_READ, MAP_PRIVATE, 4, 0) = 0x70018000
munmap(0x70018000, 8192) = 0
mmap(0, 777096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x70024000 mprotect(0x700c0000, 138120, PROT_NONE) = 0

mmap(0x700c4000, 81920, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0x90000) = 0x700c4000
mmap(0x700d8000, 39816, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x700d8000
close(4)                                = 0
personality(PER_LINUX)                  = 0
getpid()                                = 12504
getuid()                                = 0
getgid()                                = 0
gettimeofday({899539444, 738566}, NULL) = 0
getpid()                                = 12504
umask(022)                              = 022
brk(0)                                  = 0x78888
brk(0x799d0)                            = 0x799d0
brk(0x7a000)                            = 0x7a000
brk(0x80000)                            = 0x80000
getrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0
close(1023)                             = -1 EBADF (Bad file descriptor)
close(1022)                             = -1 EBADF (Bad file descriptor)
close(1021)                             = -1 EBADF (Bad file descriptor)
close(1020)                             = -1 EBADF (Bad file descriptor)
[... 1000 lines deleted ...]
close(5)                                = -1 EBADF (Bad file descriptor)
close(4)                                = -1 EBADF (Bad file descriptor)
close(3)                                = 0
brk(0x82000)                            = 0x82000

gettimeofday({899539445, 217610}, NULL) = 0
socket(PF_UNIX, SOCK_DGRAM, 0) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sun_family�_UNIX, sun_path="/dev/log"}, 16) = -1 EPROTOTYPE (Protocol wrong type for socket)

close(3)                                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
connect(3, {sun_family�_UNIX, sun_path="/dev/log"}, 16) = 0
brk(0x84000)                            = 0x84000
brk(0x86000)                            = 0x86000
brk(0x88000)                            = 0x88000
brk(0x8e000)                            = 0x8e000
sigprocmask(SIG_BLOCK, [USR1 USR2], NULL) = 0
sigprocmask(SIG_UNBLOCK, [USR1 USR2], NULL) = 0
sigaction(-2, {0x240cc, [], 0}, NULL)   = 0
sigaction(-4, {0x24134, [], 0}, NULL)   = 0
sigaction(-30, {0x240e0, [], 0}, NULL)  = 0
sigaction(-31, {0x24104, [], 0}, NULL)  = 0
sigaction(-1, {0x240a4, [], 0}, NULL)   = 0
sigaction(-28, {0x24120, [], 0}, NULL)  = 0
sigaction(-20, {0x27030, [], 0}, NULL)  = 0
sigaction(-13, {0x24148, [], 0}, NULL)  = 0
sigaction(-15, {0x240b8, [], 0}, NULL)  = 0
sigaction(-25, {0x240a4, [], 0}, NULL)  = 0

gettimeofday({899539445, 226058}, NULL) = 0
open("/etc/localtime", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size�0, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70018000 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 940

close(4)                                = 0
munmap(0x70018000, 8192)                = 0
time([899539445])                       = 899539445
getpid()                                = 12504

sigaction(-13, {0x70097e70, [], SA_INTERRUPT|SA_NOMASK|0x700dab80}, {0x24148, [], SA_INTERRUPT|SA_NOMASK|SA_ONESHOT|SA_NOCLDSTOP|0x802c0}) = 0 send(3, "<29>Jul 4 10:04:05 named[12504]"..., 154, 0) = 154
sigaction(-13, {0x24148, [], SA_INTERRUPT|SA_NOMASK|0x700dab80}, NULL) = 0
gettimeofday({899539445, 231169}, NULL) = 0
getpid() = 12504
gettimeofday({899539445, 231494}, NULL) = 0

open("/etc/irs.conf", O_RDONLY)         = -1 ENOENT (No such file or directory)
brk(0x92000)                            = 0x92000
brk(0x96000)                            = 0x96000
open("/etc/hesiod.conf", O_RDONLY)      = -1 ENOENT (No such file or directory)
brk(0x9a000)                            = 0x9a000
open("/etc/services", O_RDONLY)         = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
fstat(4, {st_mode=S_IFREG|0644, st_sizeD91, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70018000
read(4, "#\n# services\tThis file describ"..., 8192) = 4491
read(4, "", 8192)                       = 0
close(4)                                = 0
munmap(0x70018000, 8192)                = 0
open("/etc/protocols", O_RDONLY)        = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
fstat(4, {st_mode=S_IFREG|0644, st_sizeq5, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70018000
read(4, "#\n# protocols\tThis file descri"..., 8192) = 715
read(4, "", 8192)                       = 0
close(4)                                = 0
munmap(0x70018000, 8192)                = 0

gettimeofday({899539445, 239486}, NULL) = 0
brk(0xa0000) = 0xa0000
getrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 getrlimit(RLIMIT_STACK, {rlim_cur�92*1024, rlim_max�92*1024}) = 0 getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0
brk(0xa6000) = 0xa6000
chdir(".") = 0
stat(".", {st_mode=S_IFDIR|0700, st_size24, ...}) = 0 getrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 getrlimit(RLIMIT_STACK, {rlim_cur�92*1024, rlim_max�92*1024}) = 0 setrlimit(RLIMIT_STACK, {rlim_cur�92*1024, rlim_max�92*1024}) = 0 getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0 setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0 setrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0 gettimeofday({899539445, 243924}, NULL) = 0
brk(0xaa000) = 0xaa000
gettimeofday({899539445, 244442}, NULL) = 0 gettimeofday({899539445, 244637}, NULL) = 0

open("/etc/named.conf", O_RDONLY)       = 4
brk(0xc8000)                            = 0xc8000
brk(0xca000)                            = 0xca000

fstat(4, {st_mode=S_IFREG|0644, st_size�7, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70018000 read(4, "// generated by named-bootconf.p"..., 8192) = 807
chdir("/var/named") = 0
stat("/var/named", {st_mode=S_IFDIR|0755, st_size24, ...}) = 0 getrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 setrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 getrlimit(RLIMIT_STACK, {rlim_cur�92*1024, rlim_max�92*1024}) = 0 setrlimit(RLIMIT_STACK, {rlim_cur�92*1024, rlim_max�92*1024}) = 0 getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0 setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0 setrlimit(RLIMIT_NOFILE, {rlim_cur24, rlim_max24}) = 0 gettimeofday({899539445, 251339}, NULL) = 0
gettimeofday({899539445, 251538}, NULL) = 0
gettimeofday({899539445, 251729}, NULL) = 0
open("named.ca", O_RDONLY) = 5
gettimeofday({899539445, 252384}, NULL) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size'69, ...}) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size'69, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001c000
read(5, "; This file holds the info"..., 8192) = 2769

brk(0xcc000)                            = 0xcc000
read(5, "", 8192)                       = 0
close(5)                                = 0
munmap(0x7001c000, 8192)                = 0
gettimeofday({899539445, 257446}, NULL) = 0
brk(0xd0000)                            = 0xd0000
time([899539445])                       = 899539445
getpid()                                = 12504

sigaction(-13, {0x70097e70, [], 0}, {0x24148, [], 0}) = 0
send(3, "<30>Jul 4 10:04:05 named[12504]"..., 71, 0) = 71 sigaction(-13, {0x24148, [], 0}, NULL) = 0
open("named.local", O_RDONLY) = 5
gettimeofday({899539445, 260500}, NULL) = 0
fstat(5, {st_mode=S_IFREG|0644, st_sizeB2, ...}) = 0
fstat(5, {st_mode=S_IFREG|0644, st_sizeB2, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001c000
read(5, "@ IN SOA localhos"..., 8192) = 422

read(5, "", 8192)                       = 0
close(5)                                = 0
munmap(0x7001c000, 8192)                = 0
gettimeofday({899539445, 262733}, NULL) = 0
brk(0xd4000)                            = 0xd4000
time([899539445])                       = 899539445
getpid()                                = 12504

sigaction(-13, {0x70097e70, [], 0}, {0x24148, [], 0}) = 0
send(3, "<30>Jul 4 10:04:05 named[12504]"..., 101, 0) = 101 sigaction(-13, {0x24148, [], 0}, NULL) = 0
open("chopin.zone", O_RDONLY) = 5
gettimeofday({899539445, 266570}, NULL) = 0
fstat(5, {st_mode=S_IFREG|0664, st_sizex9, ...}) = 0
fstat(5, {st_mode=S_IFREG|0664, st_sizex9, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001c000 read(5, "$ORIGIN edu.pl.\nchopin\t\tIN\tS"..., 8192) = 789

read(5, "", 8192)                       = 0
close(5)                                = 0
munmap(0x7001c000, 8192)                = 0

gettimeofday({899539445, 270264}, NULL) = 0
time([899539445]) = 899539445
getpid() = 12504
sigaction(-13, {0x70097e70, [], 0}, {0x24148, [], 0}) = 0
send(3, "<30>Jul 4 10:04:05 named[12504]"..., 92, 0) = 92 sigaction(-13, {0x24148, [], 0}, NULL) = 0
open("232.181.194.rev", O_RDONLY) = 5
gettimeofday({899539445, 272789}, NULL) = 0
fstat(5, {st_mode=S_IFREG|0664, st_sizep2, ...}) = 0
fstat(5, {st_mode=S_IFREG|0664, st_sizep2, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001c000 read(5, "$ORIGIN 181.194.in-addr.arpa.\n2"..., 8192) = 702

read(5, "", 8192)                       = 0
close(5)                                = 0
munmap(0x7001c000, 8192)                = 0

gettimeofday({899539445, 276363}, NULL) = 0
time([899539445]) = 899539445
getpid() = 12504
sigaction(-13, {0x70097e70, [], 0}, {0x24148, [], 0}) = 0 send(3, "<30>Jul 4 10:04:05 named[12504]"..., 103, 0) = 103

sigaction(-13, {0x24148, [], 0}, NULL)  = 0
read(4, "", 8192)                       = 0
close(4)                                = 0
munmap(0x70018000, 8192)                = 0

stat("/var/run/named.pid", {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
unlink("/var/run/named.pid") = 0
open("/var/run/named.pid", O_WRONLY|O_CREAT|O_EXCL, 0666) = 4
fcntl(4, F_GETFL) = 0x1 (flags O_WRONLY)
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x70018000

lseek(4, 0, SEEK_CUR)                   = 0
getpid()                                = 12504
write(4, "12504\n", 6)                  = 6
close(4)                                = 0
munmap(0x70018000, 8192)                = 0
time(NULL)                              = 899539445

socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
ioctl(4, SIOCGIFCONF, 0xeffff868) = -1 ENOMEM (Cannot allocate memory)
gettimeofday({899539445, 839990}, NULL) = 0
time([899539445]) = 899539445
getpid() = 12504
sigaction(-13, {0x70097e70, [], 0}, {0x24148, [], 0}) = 0 send(3, "<26>Jul 4 10:04:05 named[12504]"..., 86, 0) = 86 sigaction(-13, {0x24148, [], 0}, NULL) = 0 gettimeofday({899539445, 842724}, NULL) = 0
time([899539445]) = 899539445
getpid() = 12504
sigaction(-13, {0x70097e70, [], 0}, {0x24148, [], 0}) = 0 send(3, "<26>Jul 4 10:04:05 named[12504]"..., 86, 0) = 86 sigaction(-13, {0x24148, [], 0}, NULL) = 0 write(2, "get interface configuration: Can"..., 52) = 52

sigprocmask(SIG_UNBLOCK, [ABRT], NULL)  = 0
getpid()                                = 12504
kill(12504, SIGABRT)                    = 0

--- SIGABRT (Aborted) ---
+++ killed by SIGABRT +++

I don't see anything that would point to the problem in the strace output above, but then I'm not _the_ expert :)

--Jan

#3 lore raw
In reply to Jan Rychter

From: Jan Rychter <[email protected]>
Date: 04 Jul 1998 15:02:55 +0200

...

socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
ioctl(4, SIOCGIFCONF, 0xeffff868) = -1 ENOMEM (Cannot allocate memory)
gettimeofday({899539445, 839990}, NULL) = 0

...

I don't see anything that would point to the problem in the strace output above, but then I'm not _the_ expert :)

Here is what is going awry, the SIOCGIFCONF call, try to find out what is being passed in the 3'rd argument to that ioctl().

Later,
David S. Miller
[email protected]