NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: (CRON) DEATH (can't fork)
On Mon, 9 Feb 2009 09:35:20 -0500
matthew sporleder <msporleder%gmail.com@localhost> wrote:
> On Mon, Feb 9, 2009 at 6:13 AM, <raymond.meyer%rambler.ru@localhost> wrote:
> > $ uname -a
> > NetBSD ultra10 5.0_BETA NetBSD 5.0_BETA (GENERIC) #0: Tue Feb 3
> > 21:25:22 GMT 2009
> > root@p3smp:/opt/obj.sparc64/sys/arch/sparc64/compile/GENERIC sparc64
> >
> > My /var/log/cron.log file is filled with the following lines:
> >
> > Feb 3 22:53:17 ultra10 cron[397]: (CRON) DEATH (can't fork)
> > Feb 8 11:46:38 ultra10 cron[402]: (CRON) DEATH (can't fork)
> > Feb 9 10:54:43 ultra10 cron[343]: (CRON) DEATH (can't fork)
> >
> > Once the system has booted multiuser and I manually run
> >
> > /etc/rc.d/cron start
> >
> > then cron starts without problems.
> >
> > I have /var/run mounted as tmpfs, but I also have
> >
> > critical_filesystems_local="${critical_filesystems_local} /var/run /opt"
> >
> > in my /etc/rc.conf file.
> >
> > Any idea what the problem might be?
> >
>
> Sadly, that error just means the daemon() call failed but it doesn't
> report errno.
>
> Do you have swap? Do you have a really low ulimit? Is cron trying to
> start twice?
>
> You could also change line 100 of cron.c to be more like:
> log_it("CRON",getpid(),"DEATH",errno,"can't fork");
>
> to get more info. (you may also need to #include <errno.h> if you go
> down that path)
I've added the following line to /etc/rc.d/cron
start_cmd="ktrace -d -i -f /root/ktrace.out -t A /usr/sbin/${name}"
to get a trace when cron is starting.
I've attached the output of kdump on /root/ktrace.out file.
Does it give you any clues?
429 1 ktrace EMUL "netbsd"
429 1 ktrace CALL
execve(0xffffffffffffde8e,0xffffffffffffbcd0,0xffffffffffffbce0)
429 1 ktrace NAMI "/usr/sbin/cron"
429 1 ktrace CSW stop kernel
429 1 ktrace CSW resume kernel
429 1 ktrace NAMI "/usr/libexec/ld.elf_so"
429 1 ktrace ARG "/usr/sbin/cron"
429 1 ktrace ENV "PWD=/"
429 1 ktrace ENV "HOME=/"
429 1 ktrace ENV "PATH=/sbin:/bin:/usr/sbin:/usr/bin"
429 1 ktrace ENV "RC_PID=2"
429 1 ktrace CSW stop kernel
429 1 ktrace CSW resume kernel
429 1 cron EMUL "netbsd"
429 1 cron RET execve JUSTRETURN
429 1 cron CALL mmap(0,0x8000,3,0x1002,0xffffffffffffffff,0,0)
429 1 cron RET mmap 1075879936/0x4020a000, 32768/0x8000
429 1 cron CALL open(0x4030e128,0,0xffffffffffffbe00)
429 1 cron NAMI "/etc/ld.so.conf"
429 1 cron RET open -1 errno 2 No such file or directory
429 1 cron CALL open(0xffffffffffffb398,0,0x7f7f7f7f7f7f7f7f)
429 1 cron NAMI "/usr/lib/libutil.so.7"
429 1 cron RET open 3
429 1 cron CALL __fstat30(3,0xffffffffffffb248)
429 1 cron RET __fstat30 0, -19896/0xffffffffffffb248
429 1 cron CALL mmap(0,0x2000,1,1,3,0,0)
429 1 cron RET mmap 1075920896/0x40214000, 8192/0x2000
429 1 cron CALL munmap(0x40214000,0x2000)
429 1 cron RET munmap 0, 8192/0x2000
429 1 cron CALL mmap(0,0x11a000,5,0x14000002,3,0,0)
429 1 cron RET mmap 1078984704/0x40500000, 1155072/0x11a000
429 1 cron CALL mmap(0x40614000,0x4000,7,0x12,3,0,0x14000)
429 1 cron RET mmap 1080115200/0x40614000, 16384/0x4000
429 1 cron CALL
mmap(0x40618000,0x2000,7,0x1012,0xffffffffffffffff,0,0)
429 1 cron RET mmap 1080131584/0x40618000, 8192/0x2000
429 1 cron CALL mprotect(0x40514000,0x100000,0)
429 1 cron RET mprotect 0, 1048576/0x100000
429 1 cron CALL close(3)
429 1 cron RET close 0, 3
429 1 cron CALL open(0xffffffffffffb398,0,0x7f7f7f7f7f7f7f7f)
429 1 cron NAMI "/usr/lib/libc.so.12"
429 1 cron RET open 3
429 1 cron CALL __fstat30(3,0xffffffffffffb248)
429 1 cron RET __fstat30 0, -19896/0xffffffffffffb248
429 1 cron CALL mmap(0,0x2000,1,1,3,0,0)
429 1 cron RET mmap 1075920896/0x40214000, 8192/0x2000
429 1 cron CALL munmap(0x40214000,0x2000)
429 1 cron RET munmap 0, 8192/0x2000
429 1 cron CALL mmap(0,0x236000,5,0x14000002,3,0,0)
429 1 cron RET mmap 1081081856/0x40700000, 2318336/0x236000
429 1 cron CALL mmap(0x40910000,0x16000,7,0x12,3,0,0x110000)
429 1 cron RET mmap 1083244544/0x40910000, 90112/0x16000
429 1 cron CALL
mmap(0x40926000,0x10000,7,0x1012,0xffffffffffffffff,0,0)
429 1 cron RET mmap 1083334656/0x40926000, 65536/0x10000
429 1 cron CALL mprotect(0x40810000,0x100000,0)
429 1 cron RET mprotect 0, 1048576/0x100000
429 1 cron CALL close(3)
429 1 cron RET close 0, 3
429 1 cron CALL open(0xffffffffffffb398,0,0x7f7f7f7f7f7f7f7f)
429 1 cron NAMI "/lib/libc.so.12"
429 1 cron RET open 3
429 1 cron CALL __fstat30(3,0xffffffffffffb248)
429 1 cron RET __fstat30 0, -19896/0xffffffffffffb248
429 1 cron CALL close(3)
429 1 cron RET close 0, -19896/0xffffffffffffb248
429 1 cron CALL
__sysctl(0xffffffffffffb848,2,0x4092efe0,0xffffffffffffb840,0,0)
429 1 cron MIB 1.81
429 1 cron GIO read 64 bytes
"ZS\M-/K\M-`\M^R\M^CsXq\M^K\^BN(\M-fPI\"\M-P\M^S>\M-X\^Dm\^R\M-t\M-r}\
\^?I4\M-u\M-9iS\M-M\M^Q\^T\^C\M-<\M-4\M-!~\M-\\M^R\M^H\^E\M-*\M-G9<\
\M^Gkn\M-;\M-b[)\M^D\M-)\M-G\M-h\M-)\M-<"
429 1 cron RET __sysctl 0, 2
429 1 cron CSW stop kernel
429 1 cron CSW resume kernel
429 1 cron CALL __fstat30(1,0xffffffffffffb958)
429 1 cron RET __fstat30 0, -18088/0xffffffffffffb958
429 1 cron CALL
__sysctl(0xffffffffffffb4ec,2,0x40925eb8,0xffffffffffffb4e0,0,0)
429 1 cron MIB 6.3
429 1 cron GIO read 4 bytes
"\0\0\0\^A"
429 1 cron RET __sysctl 0, 2
429 1 cron CALL
__sysctl(0xffffffffffffb2a8,2,0x40932208,0xffffffffffffb2a0,0,0)
429 1 cron MIB 6.7
429 1 cron GIO read 4 bytes
"\0\0 \0"
429 1 cron RET __sysctl 0, 2
429 1 cron CALL readlink(0x40804e48,0xffffffffffffb4f5,0x400)
429 1 cron NAMI "/etc/malloc.conf"
429 1 cron RET readlink -1 errno 2 No such file or directory
429 1 cron CALL mmap(0,0x2000,3,0x1002,0xffffffffffffffff,0,0)
429 1 cron RET mmap 1075912704/0x40212000, 8192/0x2000
429 1 cron CALL
mmap(0,0x100000,3,0x14001002,0xffffffffffffffff,0,0)
429 1 cron RET mmap 1084227584/0x40a00000, 1048576/0x100000
429 1 cron CALL __fstat30(2,0xffffffffffffb958)
429 1 cron RET __fstat30 0, -18088/0xffffffffffffb958
429 1 cron CALL
__sigaction_sigtramp(SIGCHLD,0xffffffffffffba90,0xffffffffffffba70,0x40804340,2)
429 1 cron RET __sigaction_sigtramp 0, -17776/0xffffffffffffba90
429 1 cron CALL
__sigaction_sigtramp(SIGHUP,0xffffffffffffba90,0xffffffffffffba70,0x40804340,2)
429 1 cron RET __sigaction_sigtramp 0, -17776/0xffffffffffffba90
429 1 cron CALL open(0xffffffffffffba48,0x202,0x1a4)
429 1 cron NAMI "/var/run/cron.pid"
429 1 cron RET open 3, 514/0x202
429 1 cron CALL fcntl(3,3,0)
429 1 cron RET fcntl 2, 3
429 1 cron CALL flock(3,6)
429 1 cron RET flock 0, 6
429 1 cron CALL fcntl(3,2,1)
429 1 cron RET fcntl 0, 2
429 1 cron CALL __fstat30(3,0xffffffffffffb5b8)
429 1 cron RET __fstat30 0, -19016/0xffffffffffffb5b8
429 1 cron CALL lseek(3,0,0,0)
429 1 cron RET lseek 0
429 1 cron CALL getpid
429 1 cron RET getpid 429/0x1ad, 388/0x184
429 1 cron CALL write(3,0x40a22000,4)
429 1 cron GIO fd 3 wrote 4 bytes
"429\n"
429 1 cron RET write 4, 1084366848/0x40a22000
429 1 cron CALL lseek(3,0,0,1)
429 1 cron RET lseek 4
429 1 cron CALL ftruncate(3,0,4)
429 1 cron RET ftruncate 0
429 1 cron CALL seteuid(0)
429 1 cron RET seteuid 0
429 1 cron CALL __stat30(0x1076a8,0xffffffffffffba28)
429 1 cron NAMI "/var/cron"
429 1 cron RET __stat30 0, -17880/0xffffffffffffba28
429 1 cron CALL chdir(0x1076a8)
429 1 cron NAMI "/var/cron"
429 1 cron RET chdir 0, -17880/0xffffffffffffba28
429 1 cron CALL __stat30(0x106c78,0xffffffffffffba28)
429 1 cron NAMI "tabs"
429 1 cron CSW stop kernel
429 1 cron CSW resume kernel
429 1 cron RET __stat30 0, -17880/0xffffffffffffba28
429 1 cron CALL fork
429 1 cron RET fork 343/0x157
429 1 cron CALL exit(0)
343 1 cron EMUL "netbsd"
343 1 cron PSIG SIGHUP caught handler=0x102880 mask=():
code=SI_NOINFO
343 1 cron RET fork 0
343 1 cron CALL setcontext(0xffffffffffffb660)
343 1 cron RET setcontext JUSTRETURN
343 1 cron CALL getpid
343 1 cron RET getpid 343/0x157, 1
343 1 cron CALL gettimeofday(0xffffffffffffab40,0)
343 1 cron RET gettimeofday 0
343 1 cron CALL access(0x40804910,4)
343 1 cron NAMI "/etc/localtime"
343 1 cron RET access 0, 4
343 1 cron CALL open(0x40804910,0,0)
343 1 cron NAMI "/etc/localtime"
343 1 cron RET open 4
343 1 cron CALL read(4,0xffffffffffff812b,0x249c)
343 1 cron GIO fd 4 read 1323 bytes
"TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\a\0\0\0\a\0\0\0\0\0\0\0\M-r\
\0\0\0\a\0\0\0\r\M^[&\M--\240\M^[\M-V\^E \M^\\M-O0\240\M^]\M-$\M-C\240\
\M^^\M^\\M^]\240\M^_\M^W\^Z\240\240\M^E\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\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\
\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\
\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\^D\^E\0\0\
\^N\^P\^A\0\0\0\0\0\0\^D\0\0\^\ \^A\b\0\0\^N\^P\0\0\0\0\^N\^P\^A\0\0\0\
\0\0\0\^D\0\0\0\0\0\^DBST\0GMT\0BDST\0\^A\^A\^A\0\^A\^A\0\0\0\0\0\^A\
\^A\0"
343 1 cron RET read 1323/0x52b, -32469/0xffffffffffff812b
343 1 cron CALL close(4)
343 1 cron RET close 0, -32469/0xffffffffffff812b
343 1 cron CALL getpid
343 1 cron RET getpid 343/0x157, 1
343 1 cron CALL __socket30(1,2,0)
343 1 cron RET __socket30 4, 2
343 1 cron CALL fcntl(4,2,1)
343 1 cron RET fcntl 0, 2
343 1 cron CALL connect(4,0x4080b1b3,0x6a)
343 1 cron MISC sockargs: 106,
6a012f7661722f72756e2f6c6f670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
343 1 cron NAMI "/var/run/log"
343 1 cron RET connect 0, 1082175923/0x4080b1b3
343 1 cron CALL sendto(4,0xffffffffffffac98,0x39,0,0,0)
343 1 cron MISC msghdr: 48,
000000000000000000000000c747ac41000000000d803cb0000000010c07f40000000000000000000000000000000000
343 1 cron GIO fd 4 wrote 57 bytes
"<78>Feb 9 15:20:50 cron[343]: (CRON) DEATH (can't fork)\n"
343 1 cron RET sendto 57/0x39, -21352/0xffffffffffffac98
343 1 cron CALL exit(1)
Home |
Main Index |
Thread Index |
Old Index