From owner-freebsd-gnome@freebsd.org Thu Sep 29 10:51:27 2016 Return-Path: Delivered-To: freebsd-gnome@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 EDC0FC01AE0 for ; Thu, 29 Sep 2016 10:51:27 +0000 (UTC) (envelope-from guru@unixarea.de) 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 D58981A4D for ; Thu, 29 Sep 2016 10:51:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: by mailman.ysv.freebsd.org (Postfix) id D4E20C01ADE; Thu, 29 Sep 2016 10:51:27 +0000 (UTC) Delivered-To: gnome@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 D1FC5C01ADD; Thu, 29 Sep 2016 10:51:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 985051A4C; Thu, 29 Sep 2016 10:51:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [2.247.247.198] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bpYvu-0008Ov-PN; Thu, 29 Sep 2016 12:51:18 +0200 Received: from localhost.my.domain (c720-r292778-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id u8TApGYg003630 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 29 Sep 2016 12:51:16 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id u8TApF16003629; Thu, 29 Sep 2016 12:51:15 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 29 Sep 2016 12:51:15 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Cc: gnome@freebsd.org Subject: graphics/atril && flashplugin??? Message-ID: <20160929105115.GA3603@c720-r292778-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org, gnome@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r292778 (amd64) User-Agent: Mutt/1.5.24 (2015-08-30) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 2.247.247.198 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 10:51:28 -0000 Hello, I'm using from the ports graphics/atril (on 11-CURRENT amd64, ports rev. r414411) and always encounter that it takes 3-4 seconds until atril after saying Ctrl-w in its window. I investigated with truss(1) and see that at the end it is waiting for one of its child (here pid 3045) and finally it is giving up and killing it: $ fgrep 3045, atril.tr 3033: 20.501371823 wait4(3045,0x0,WNOHANG,0x0) = 0 (0x0) 3033: 21.503397499 wait4(3045,0x0,WNOHANG,0x0) = 0 (0x0) 3033: 22.506252611 wait4(3045,0x0,WNOHANG,0x0) = 0 (0x0) 3033: 23.510077119 wait4(3045,0x0,WNOHANG,0x0) = 0 (0x0) 3033: 23.510418224 kill(3045,SIGTERM) = 0 (0x0) 3033: 23.512856522 wait4(3045,0x0,WNOHANG,0x0) = 3045 (0xbe5) the child 3045 has other issues: on start it spends many time to close the not open fd from 3 to 87542(!!!) and than it executes via /usr/local/lib/nspluginwrapper/i386/linux/npviewer (see below) and the users .mozilla/plugins/npwrapper.libflashplayer.so If one moves .mozilla/plugins/npwrapper.libflashplayer.so away, atril works fine and fast. Why is this design? 3045: 1.496706146 3045: 1.496985511 thr_self(0x813415000) = 0 (0x0) 3045: 1.497405397 getpid() = 3045 (0xbe5) 3045: 1.497716610 sysarch(AMD64_SET_FSBASE,0x7fffffffd3b8) = 0 (0x0) 3045: 1.497900432 sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0) 3045: 1.498091238 getrlimit(RLIMIT_NOFILE,{ cur=87543,max=87543 }) = 0 (0x0) 3045: 1.498302438 close(3) = 0 (0x0) 3045: 1.498475365 close(4) = 0 (0x0) 3045: 1.498618121 close(5) = 0 (0x0) 3045: 1.498813956 close(6) = 0 (0x0) 3045: 1.498966769 close(7) = 0 (0x0) 3045: 1.499109803 close(8) = 0 (0x0) 3045: 1.499240546 close(9) = 0 (0x0) 3045: 1.499386934 close(10) ERR#9 'Bad file descriptor' 3045: 1.499522426 close(11) = 0 (0x0) 3045: 1.499833918 close(12) = 0 (0x0) 3045: 1.499968572 close(13) = 0 (0x0) 3045: 1.500107137 close(14) = 0 (0x0) 3045: 1.500239556 close(15) ERR#9 'Bad file descriptor' 3045: 1.500385384 close(16) ERR#9 'Bad file descriptor' ... 3045: 11.353033975 close(87540) ERR#9 'Bad file descriptor' 3045: 11.353262496 close(87541) ERR#9 'Bad file descriptor' 3045: 11.353421455 close(87542) ERR#9 'Bad file descriptor' 3045: 11.360569570 execve("/usr/local/lib/nspluginwrapper/i386/linux/npviewer",0x7fffffffd5a0,0x8134d8000) = 0 (0x0) ... 3045: 11.683922119 linux_socketcall(1,{ LINUX_SOCKET, 0x0 }) = 7 (0x7) 3045: 11.684067947 linux_access("/etc/sysconfig/32bit_ssse3_memcpy_via_32bit_ssse3_memmove",F_OK) ERR#4294967294 'Unknown error: -2' 3045: 11.684297865 linux_socketcall(2,{ LINUX_GETPEERNAME, 0x40 }) = 0 (0x0) 3045: 11.684543986 linux_socketcall(4,{ LINUX_GETPEERNAME, 0x40 }) = 0 (0x0) 3045: 23.510353411 linux_socketcall(5,{ LINUX_GETPEERNAME, 0xffffc5e0 }) ERR#4294967292 'Unknown error: -4' 3045: 23.510353411 SIGNAL 15 (SIGTERM) 3045: 23.512761818 process killed, signal = 15 -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045 "Ohne die Mauer hätte es Krieg gegeben" Fritz Streletz u.a. "Sin el Muro hubiese habido guerra."