From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 11 19:20:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 41D142E8 for ; Thu, 11 Apr 2013 19:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2363D14B9 for ; Thu, 11 Apr 2013 19:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3BJK0jV080624 for ; Thu, 11 Apr 2013 19:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3BJK00V080623; Thu, 11 Apr 2013 19:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 11 Apr 2013 19:20:00 GMT Resent-Message-Id: <201304111920.r3BJK00V080623@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Todd Blum Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EC8DC2AC for ; Thu, 11 Apr 2013 19:16:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id DDB21149D for ; Thu, 11 Apr 2013 19:16:05 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3BJG5BD055824 for ; Thu, 11 Apr 2013 19:16:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3BJG5GQ055823; Thu, 11 Apr 2013 19:16:05 GMT (envelope-from nobody) Message-Id: <201304111916.r3BJG5GQ055823@red.freebsd.org> Date: Thu, 11 Apr 2013 19:16:05 GMT From: Todd Blum To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/177785: ipsec-tools 0.8.0 racoon tends to segfault when multiple Phase1's aren't establishing X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2013 19:20:01 -0000 >Number: 177785 >Category: misc >Synopsis: ipsec-tools 0.8.0 racoon tends to segfault when multiple Phase1's aren't establishing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 11 19:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Todd Blum >Release: 8.1 >Organization: >Environment: FreeBSD mbsnet-pf1.mbspchost.com 8.1-RELEASE-p13 FreeBSD 8.1-RELEASE-p13 #1: Fri Dec 7 16:55:26 EST 2012 root@snapshots-8_1-i386.builders.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8 i386 >Description: I had two Phase1's that were not coming up, and it seemed like racoon was segfaulting once every 4 days or so. Then when I had three Phase1's down, it seems like racoon started to segfault once every few days. I've been noticing this behavior for several months. I've opened this ticket at ipsec-tools with more detailed information: https://sourceforge.net/tracker/?func=detail&aid=3603844&group_id=74601&atid=541482 >How-To-Repeat: Try configuring 3 or more Ipsec tunnels that will not come up, then wait 7 days. >Fix: My current workaround is to reboot if racoon crashes (falling back on CARP slave while rebooting): #!/bin/sh # # Find the pid of the process (PPID will be the shell that started it) # remember no spaces allowed between varnames, just equals sign, and the value # Script name cannot contain the word racoon in order to to avoid self-triggering sleep 30 FIND_PROC=`pgrep racoon` # if FIND_PROC is empty, the process has died; restart it if [ -z "${FIND_PROC}" ]; then echo racoon failed at `date` nohup shutdown -r now & fi exit With cron entry: * * * * * root /root/ipsec-watchdog.sh >> /root/ipsec-watchdog.log >Release-Note: >Audit-Trail: >Unformatted: