From owner-freebsd-bugs Sat Jan 12 6:50:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1842137B416 for ; Sat, 12 Jan 2002 06:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0CEo1l53020; Sat, 12 Jan 2002 06:50:01 -0800 (PST) (envelope-from gnats) Received: from deliverator.sentor.se (deliverator.sentor.se [212.112.177.100]) by hub.freebsd.org (Postfix) with ESMTP id 8114037B41C for ; Sat, 12 Jan 2002 06:42:19 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by viruswall.sentor.se (Postfix) with ESMTP id 6DCF335492A for ; Sat, 12 Jan 2002 15:40:57 +0100 (CET) Received: by deliverator.sentor.se (Postfix, from userid 1001) id 6D3C635492B; Sat, 12 Jan 2002 15:40:56 +0100 (CET) Message-Id: <20020112144056.6D3C635492B@deliverator.sentor.se> Date: Sat, 12 Jan 2002 15:40:56 +0100 (CET) From: Kenny Jansson Reply-To: Kenny Jansson To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/33812: crontab segfaults when new entry contains a 0 i the monthfield Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33812 >Category: bin >Synopsis: crontab segfaults when new entry contains a 0 i the monthfield >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 12 06:50:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Kenny Jansson >Release: FreeBSD 4.3-STABLE i386 >Organization: Sentor AB >Environment: System: FreeBSD xx.xx.xx 4.3-STABLE FreeBSD 4.3-STABLE #1: Tue Jul 17 11:03:52 CEST 2001 >Description: crontab segfaults when you try to add a new entry containing a '0' in the monthfield. Here's a stacktrace from the dead process: #0 0x804b9e9 in env_free () #1 0x804a8c4 in free_entry () #2 0x804b537 in load_entry () #3 0x804a6ca in replace_cmd () at /usr/src/usr.sbin/cron/crontab/crontab.c:551 #4 0x804a349 in edit_cmd () at /usr/src/usr.sbin/cron/crontab/crontab.c:454 #5 0x80497ad in main (argc=2, argv=0xbfbff7d8) at /usr/src/usr.sbin/cron/crontab/crontab.c:117 #6 0x804960d in _start () >How-To-Repeat: crontab -e and add a line like so: 1 1 1 0 1 touch /tmp/blah crontab will segfault and the new entry will not be added to the users crontab >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message