From owner-freebsd-ports@FreeBSD.ORG Tue Feb 21 00:57:21 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF2E0106566C; Tue, 21 Feb 2012 00:57:21 +0000 (UTC) (envelope-from ache@vniz.net) Received: from vniz.net (vniz.net [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 151ED8FC15; Tue, 21 Feb 2012 00:57:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by vniz.net (8.14.5/8.14.5) with ESMTP id q1L0vFbq002061; Tue, 21 Feb 2012 04:57:18 +0400 (MSK) (envelope-from ache@vniz.net) Received: (from ache@localhost) by localhost (8.14.5/8.14.5/Submit) id q1L0vC1V002058; Tue, 21 Feb 2012 04:57:13 +0400 (MSK) (envelope-from ache) Date: Tue, 21 Feb 2012 04:57:09 +0400 From: Andrey Chernov To: ports@freebsd.org, emulation@freebsd.org Message-ID: <20120221005707.GB1781@vniz.net> Mail-Followup-To: Andrey Chernov , ports@freebsd.org, emulation@freebsd.org References: <20120215164722.GA1693@vniz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120215164722.GA1693@vniz.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: linux-f10-flashplugin11 not works for 9-stable (Linuxulator?) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 00:57:21 -0000 Just in case it may help somebody: the cause (but not the root) of the problem is found and workaround too. The cause of the problem is ::1 localhost localhost.my.domain line from our _standard_ /usr/src/etc/hosts which comes first before 127.0.0.1 localhost localhost.my.domain line. Linux takes the first match on localhost, i.e. ::1, then tries 8605 npviewer.bin STRU struct sockaddr { AF_INET6, [::1]:6010 } it was last command from npviewer.bin, then it immeditelly terminates: 8605 npviewer.bin RET linux_socketcall -1 errno 4 Interrupted system call 8605 npviewer.bin PSIG SIGTERM SIG_DFL code=0x10001 The workaround is to switch lines order in /etc/hosts, i.e. 127.0.0.1 localhost ::1 localhost to make IPv4 one comes first. Flash works afterwards. The bug affects IPv6-enabled machines with IPv4 over IPv6 preferred or maybe IPv4 too I don't know, but since we don't have such reports in mass, I think IPv4-only setup is fine. On Wed, Feb 15, 2012 at 08:47:22PM +0400, Andrey Chernov wrote: > Having 9-stable and ports from Feb 14, all builded from sources, I get > this commonly looking error attempting to view flash in FF 10.0.1: > > *** NSPlugin Wrapper *** ERROR: failed to initialize plugin-side RPC > client connection > NOTE: child process received `Goodbye', closing down > > Looking into ktrace I found error reason: > > 82037 plugin-container CALL connect(0x16,0x2c04f9d4,0x42) > 82037 plugin-container STRU struct sockaddr { AF_LOCAL, invalid } > 82037 plugin-container NAMI > "/tmp/_org_wrapper_NSPlugins_libflashplayer.so_82037-2_1804289383" > 82037 plugin-container RET connect -1 errno 2 No such file or directory > > (repeated several times). > > This "invalid" in sockaddr looks familiar as for some time ago added > sockaddr length checks our kernel, but as bz@ says this should be > already fixed. > > Does anybody runs flash successfly on 9-stable? If yes, where else the > problem can be? -- http://ache.vniz.net/