Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 20:16:48 -0700
From:      Mark Peek <mark@whistle.com>
To:        "Lanny Baron" <lnb@FreeBSDsystems.COM>, Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        Igor Kulemzin <kulemzinn@mail.ru>, "Andrey Simonenko" <simon@comsys.ntu-kpi.kiev.ua>, freebsd-questions@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: cron exited on signal 11
Message-ID:  <p0510032cb772c6d1161d@[207.76.207.129]>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kulemzinn@mail.ru> 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-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0510032cb772c6d1161d>