Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2016 12:51:15 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Cc:        gnome@freebsd.org
Subject:   graphics/atril && flashplugin???
Message-ID:  <20160929105115.GA3603@c720-r292778-amd64>

next in thread | raw e-mail | index | archive | help


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 <new process>
 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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160929105115.GA3603>