From owner-freebsd-questions@freebsd.org Sat Nov 18 10:30:05 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22EEBDB807B for ; Sat, 18 Nov 2017 10:30:05 +0000 (UTC) (envelope-from srs0=hv69=cq=sigsegv.be=kristof@codepro.be) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0B1BD6B089 for ; Sat, 18 Nov 2017 10:30:05 +0000 (UTC) (envelope-from srs0=hv69=cq=sigsegv.be=kristof@codepro.be) Received: by mailman.ysv.freebsd.org (Postfix) id 079EBDB807A; Sat, 18 Nov 2017 10:30:05 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05708DB8078 for ; Sat, 18 Nov 2017 10:30:05 +0000 (UTC) (envelope-from srs0=hv69=cq=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5FBC6B088 for ; Sat, 18 Nov 2017 10:30:04 +0000 (UTC) (envelope-from srs0=hv69=cq=sigsegv.be=kristof@codepro.be) Received: from [172.20.10.2] (unknown [188.188.30.158]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id B29CB9E73; Sat, 18 Nov 2017 11:30:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1511001001; bh=S/G/ql33aVq5X2fqiWwfqvnyQ1femik/XDXAclpjSHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DPGX4/k5Eu9azUJ4vxaOHmMFPzq/9xZE+zsoX5Y8QmNSoYe32wLQWAXLc7LZGNjYC hi+L8STJR+1W8fbT8nSTpnu4BzcvRBLXr6aWSfhKCAniPGBtDPEM20g5vxsk76PHry mI2QKD3IDQoQbXjfCIBz8e15FCjub9GC3lyA+rz8= From: "Kristof Provost" To: "Jukka A. Ukkonen" Cc: questions@freebsd.org Subject: Re: 10.4-stable systematically crashing inside pselect() when a tun device is used Date: Sat, 18 Nov 2017 11:30:00 +0100 Message-ID: <98FCCAA8-B52E-462E-A5FF-4A58FE586253@sigsegv.be> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6096) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Nov 2017 10:30:05 -0000 On 18 Nov 2017, at 10:27, Jukka A. Ukkonen wrote: > Hello all, > > As briefly stated in the subject I have a 10-stable system on > which I have been testing a program which opens either a tun > device or a tap device, waits in pselect() for the descriptor > to become readable, and then proceeds to read the packet/frame. > When using a tun descriptor the pselect() call always panics the > kernel with the complaints shown in the photo below. When using > a tap device the same code works just fine. The mailing lists don’t allow attachments. You’ll have to get a text version of the backtrace. (Set dumpdev="AUTO" in /etc/rc.conf, reboot, trigger the crash. Look for /var/crash/core.txt.0) Regards, Kristof