From owner-freebsd-stable@FreeBSD.ORG Fri Apr 2 12:16:09 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB0391065677 for ; Fri, 2 Apr 2010 12:16:09 +0000 (UTC) (envelope-from oleg.lomaka@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 372038FC28 for ; Fri, 2 Apr 2010 12:16:08 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so570745fga.13 for ; Fri, 02 Apr 2010 05:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=VqzXwCFkPxCwE10eZlVyiZmwBj8DxWdkLQ6hZxDh/Xc=; b=Jki+Ylz6+oBhouYv9q1vejinDTM/fGUZCMxDy20pkxn6s/Kb35jsWHzKQrbudVNbBn XWueXa5TTfU3vAyLOBWlxV1NCwpQi6E621oaaSGtoMDignMQ5IUnsJRavhvsQfKn5DFv rKmPNxrvs1eDPBm62zOOdYuFZcsBJzP5VoG9s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=ReZNfd1p/y8ey4JsgFfdD+IZVebpPIPNhEmUa9MhiXROFGr8F0RF1IPdFNNwTN+Dzy WLxxxdpUWFO0vOAI2DcVxg6YHhDcMnzq6rfrqxSqmPftKSoLNNNPI5dJaPJ7EmknblSn /56Qc4vrQ+5cjNM+SXiY3Y5daxLI1uFmRIPHM= Received: by 10.87.67.25 with SMTP id u25mr3739518fgk.32.1270210567409; Fri, 02 Apr 2010 05:16:07 -0700 (PDT) Received: from [172.16.224.129] ([92.249.104.41]) by mx.google.com with ESMTPS id 3sm2179883fge.20.2010.04.02.05.16.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Apr 2010 05:16:07 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Oleg Lomaka In-Reply-To: <20100402120137.E40281@maildrop.int.zabbadoz.net> Date: Fri, 2 Apr 2010 15:16:05 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <363ECEF2-62D3-4F97-A21D-9E10358A1065@gmail.com> References: <44FD9C14-7114-4270-A7B6-F029995BA282@gmail.com> <20100402120137.E40281@maildrop.int.zabbadoz.net> To: "Bjoern A. Zeeb" X-Mailer: Apple Mail (2.1078) Cc: freebsd-stable@freebsd.org Subject: Re: panic during work with jailed postgresql8.4 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2010 12:16:09 -0000 On Apr 2, 2010, at 3:02 PM, Bjoern A. Zeeb wrote: > On Thu, 1 Apr 2010, Oleg Lomaka wrote: >> I have a kernel panic when connect to postgresql8.4 server installed = in one of jails from another jail. It's 100% reproducible. >> Also I have tried to connect from host machine to jailed pg server. = That way it works fine without crash. >>=20 >> Server configuration uses geli and zfs. Four disks encrypted using = geli. And raidz2 is using ad8.eli, ad10.eli, ad12.eli, ad14.eli = providers. All jails located at this raidz2 pool. >>=20 >> Also I use ezjail for jails management. And it uses NFS to mount = directories with base system. >>=20 >> atal double fault >> rip =3D 0xffffffff8063510a >> rsp =3D 0xffffff80eaec5f50 >> rbp =3D 0xffffff80eaec6040 >> cpuid =3D 1; apic id =3D 02 >> panic: double fault >> cpuid =3D 1 >> Uptime: 7m11s >> Physical memory: 8169 MB >>=20 >> uname -a >> FreeBSD cerberus.regredi.com 8.0-STABLE FreeBSD 8.0-STABLE #7 = r206031: Thu Apr 1 13:43:57 EEST 2010 = root@cerberus.regredi.com:/usr/obj/usr/src/sys/GENERIC amd64 >>=20 >> Link to dmesg.boot: >> = http://docs.google.com/leaf?id=3D0B-irbkAqk9i7OGY2ZWJiODgtOWJmMy00NDQ1LTli= ZDctZjU3N2YwNmMxNjZl&hl=3Den >>=20 >> Link to kernel core backtrace: >> = http://docs.google.com/Doc?docid=3D0AeirbkAqk9i7ZGc5Yzc2ZndfM2M4NzYydmRw&h= l=3Den >>=20 >> Can I help to spot this trouble by providing additional info? >=20 > Looking at the info I doubt it's related to jails or Pg in first > place. Have you been running that same setup already before your Apr > 1st, r206031, kernel? If so, from when was your last kernel? Yes, this configuration works on another server fine (8.0-STABLE FreeBSD = 8.0-STABLE #3 r205202) Made few more tests. All tests I make using psql command (as it is 100% = reproducible, may be now try spot it using telnet/netcat, without = involving pg). psql accomplish login operation fine, panic appears after = i run any command like \d, so I think it depends on packet size. Current picture is: 1. When connect from host machine - works fine. 2. When I connect from other server - works fine. 3. When connect from another jail on the same box as db's jail (tried = from few jails) - kernel fault.=20 Also tried security.jail.allow_raw_sockets on/off - nothing changes.=20