From owner-freebsd-ports Thu Dec 19 12:20: 8 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C169F37B401 for ; Thu, 19 Dec 2002 12:20:05 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEAAA43EDA for ; Thu, 19 Dec 2002 12:20:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBJKK4x3087270 for ; Thu, 19 Dec 2002 12:20:04 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBJKK4f9087269; Thu, 19 Dec 2002 12:20:04 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3951137B401 for ; Thu, 19 Dec 2002 12:10:45 -0800 (PST) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.5.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5159643EB2 for ; Thu, 19 Dec 2002 12:10:44 -0800 (PST) (envelope-from agapon@excite.com) Received: from asv8.srv.hcvlny.cv.net (asv8.srv.hcvlny.cv.net [167.206.5.47]) by mta1.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.05 (built Nov 6 2002)) with ESMTP id <0H7D002PRUQ4DC@mta1.srv.hcvlny.cv.net> for FreeBSD-gnats-submit@freebsd.org; Thu, 19 Dec 2002 15:10:55 -0500 (EST) Received: from mta11.srv.hcvlny.cv.net (mta11.srv.hcvlny.cv.net [167.206.5.46]) by asv8.srv.hcvlny.cv.net (8.12.6/8.11.6) with ESMTP id gBJKAatA009767 for ; Thu, 19 Dec 2002 15:10:37 -0500 (EST) Received: from edge.foundation.invalid (ool-4352ef3f.dyn.optonline.net [67.82.239.63]) by mta11.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.05 (built Nov 6 2002)) with ESMTP id <0H7D0003CUPO7P@mta11.srv.hcvlny.cv.net> for FreeBSD-gnats-submit@freebsd.org; Thu, 19 Dec 2002 15:10:36 -0500 (EST) Received: from edge.foundation.invalid (localhost.foundation.invalid [127.0.0.1]) by edge.foundation.invalid (8.12.6/8.12.3) with ESMTP id gBJKAZS7067774 for ; Thu, 19 Dec 2002 15:10:35 -0500 Received: (from avg@localhost) by edge.foundation.invalid (8.12.6/8.12.3/Submit) id gBJKAZTR067773; Thu, 19 Dec 2002 15:10:35 -0500 (EST) Message-Id: <200212192010.gBJKAZTR067773@edge.foundation.invalid> Date: Thu, 19 Dec 2002 15:10:35 -0500 (EST) From: Andriy Gapon Reply-To: Andriy Gapon To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/46381: racoon coredumps when talking to win2k Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46381 >Category: ports >Synopsis: racoon coredumps when talking to win2k >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 19 12:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Andriy Gapon >Release: FreeBSD 4.7-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD edge.foundation.invalid 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #0: Tue Nov 19 17:28:50 EST 2002 avg@edge.foundation.invalid:/sys-devel/obj/sys-devel/src/sys/EDGE i386 racoon version 20021120a >Description: racoon succesfully establishes SA with Win2K host for tunnel mode ipsec and shortly after that coredumps. Here's a stacktrace: Core was generated by `racoon'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libcrypto.so.2...done. Reading symbols from /usr/lib/libssl.so.2...done. Reading symbols from /usr/lib/libc.so.4...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 0x804d7e9 in isakmp_send (iph1=0x0, sbuf=0x80b7a80) at isakmp.c:1410 1410 s = getsockmyaddr(iph1->local); (gdb) bt #0 0x804d7e9 in isakmp_send (iph1=0x0, sbuf=0x80b7a80) at isakmp.c:1410 #1 0x804d985 in isakmp_ph2resend (iph2=0x80a2400) at isakmp.c:1484 #2 0x804d95d in isakmp_ph2resend_stub (p=0x80a2400) at isakmp.c:1467 #3 0x8074b30 in schedular () at schedule.c:96 #4 0x804b2a6 in session () at session.c:133 #5 0x804b07d in main (ac=3, av=0xbfbff794) at main.c:250 #6 0x804ac51 in _start () as you can see coredump is due to iph1 argument to isakmp_send being NULL. Why this happens I am not sure. >How-To-Repeat: see above >Fix: work-around can be to check iph2.iph1 for NULL in isakmp_ph2resend and ignore a resend request. But I don't know if this would do a right thing, since I have no clue about a root cause. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message