From owner-freebsd-questions Wed Jul 11 20:21:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alpo.whistle.com (s206m1.whistle.com [207.76.206.1]) by hub.freebsd.org (Postfix) with ESMTP id E9F9737B401; Wed, 11 Jul 2001 20:21:46 -0700 (PDT) (envelope-from mark@whistle.com) Received: from [207.76.207.129] ([10.1.10.118]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id UAA91488; Wed, 11 Jul 2001 20:16:43 -0700 (PDT) Mime-Version: 1.0 X-Sender: mark-ml@207.76.206.1 Message-Id: In-Reply-To: <20010711224709.11607.qmail@panda.freebsdsystems.com> References: <1399129667.20010709164730@mail.ru> <006e01c10927$c3151d80$6d36120a@comsys.ntukpi.kiev.ua> <18810557330.20010711121320@mail.ru> <86itgz4eyf.fsf@hades.hell.gr> <20010711224709.11607.qmail@panda.freebsdsystems.com> Date: Wed, 11 Jul 2001 20:16:48 -0700 To: "Lanny Baron" , Giorgos Keramidas From: Mark Peek Subject: Re: cron exited on signal 11 Cc: Igor Kulemzin , "Andrey Simonenko" , freebsd-questions@FreeBSD.ORG, stable@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 10:47 PM +0000 7/11/01, Lanny Baron wrote: >Hello, >As was stated in previous mail, upon cvsup'ing and config'ing the >kernel, /var/log/messages shows cron dies. This is right after boot >and with 4.3-STABLE >Jul 10 20:20:12 panda /kernel: pid 258 (cron), uid 0: exited on >signal 11 (core dumped) >Here are the sizes of cron: >The box it died on: >lnb@panda:~$ ls -ld /usr/sbin/cron >-r-xr-xr-x 1 root wheel 30392 Jul 10 11:33 /usr/sbin/cron >and another FreeBSD server on our LAN: >lnb@bsd:~$ ls -ld /usr/sbin/cron >-r-xr-xr-x 1 root wheel 29560 Apr 25 20:05 /usr/sbin/cron >Giorgos Keramidas writes: >>Igor Kulemzin writes: >>>Hi, >>> I've try to use default crontab file and cron worked. >>> I've use this string only in my /etc/crontab: >>> 00 12 * * 1-5 sendmail -q >> >>This doesn't look right. Not right, at all. >>The sixth field in my /etc/crontab is the username that the command is going >>to be run as. >> 1 3 * * * root periodic daily >>> After commenting it out, cron worked. >>> How can i send bug report? >>> What the gdb output or i should send cron.core? >>> What the mail address or program I should use? >> >>If you can pin this down to some specific problem in cron when a user is not >>specified, then you could send patches by running send-pr(1). >> % send-pr >>Even if you don't know a solution, send-pr(1) is the Right-Thing(TM) to do >>when you think you have discovered a bug. >>-giorgos Try this patch... Index: usr.sbin/cron/lib/env.c =================================================================== RCS file: /cvs/freebsd/src/usr.sbin/cron/lib/env.c,v retrieving revision 1.9 diff -u -r1.9 env.c --- usr.sbin/cron/lib/env.c 2000/04/30 15:57:00 1.9 +++ usr.sbin/cron/lib/env.c 2001/07/12 03:12:29 @@ -41,6 +41,8 @@ { char **p; + if (envp == NULL) + return; for (p = envp; *p; p++) free(*p); free(envp); Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message