Bug#640245: vlc runs xdg-screensaver with signal child blocked
Jörg Sommer
joerg at alea.gnuu.de
Sat Sep 3 10:23:47 UTC 2011
Package: vlc
Version: 1.1.11-2+b2
Severity: normal
Hi,
vlc runs the program to disable the screensaver with SIGCHLD blocked
which causes this program misbehaves, because it doesn't see its child
has quit.
% ps -O etime,user,size,rss fax G -A1 xdg
8476 20:05 joerg 312 456 S pts/10 00:00:00 /bin/sh /usr/bin/xdg-screensaver suspend 0x0180040a
8512 20:03 joerg 0 0 Z pts/10 00:00:00 \_ [xprop] <defunct>
8506 20:04 joerg 312 444 S pts/10 00:00:00 /bin/sh /usr/bin/xdg-screensaver suspend 0x01800490
8529 20:02 joerg 0 0 Z pts/10 00:00:00 \_ [xprop] <defunct>
8632 19:30 joerg 312 456 S pts/10 00:00:00 /bin/sh /usr/bin/xdg-screensaver suspend 0x0180036b
8670 19:28 joerg 0 0 Z pts/10 00:00:00 \_ [xprop] <defunct>
8660 19:29 joerg 312 456 S pts/10 00:00:00 /bin/sh /usr/bin/xdg-screensaver suspend 0x018003b3
8689 19:27 joerg 0 0 Z pts/10 00:00:00 \_ [xprop] <defunct>
8850 17:57 joerg 312 456 S pts/10 00:00:00 /bin/sh /usr/bin/xdg-screensaver suspend 0x01800385
8890 17:55 joerg 0 0 Z pts/10 00:00:00 \_ [xprop] <defunct>
8880 17:56 joerg 312 456 S pts/10 00:00:00 /bin/sh /usr/bin/xdg-screensaver suspend 0x0180040b
8911 17:54 joerg 0 0 Z pts/10 00:00:00 \_ [xprop] <defunct>
% grep ^Sig /proc/8880/status
SigQ: 26/4981
SigPnd: 0000000000000000
SigBlk: 0000000000015007
SigIgn: 0000000000001006
SigCgt: 0000000000010000
^ this is SIGCHLD
I can work around this problem with this perl script and a small shell
script placed in PATH as xdg-screensaver before the real xdg-screensaver:
#!/usr/bin/perl -W
use POSIX;
$sigset = POSIX::SigSet->new();
sigprocmask(SIG_SETMASK, $sigset);
exec @ARGV;
#!/bin/sh
exec unblock-signals /usr/bin/xdg-screensaver "$@"
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 3.1.0-rc3.ledtest-00161-g671ee7f-dirty
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages vlc depends on:
ii libaa1 1.4p5-38+b1
ii libavcodec52 4:0.6.2-5
ii libavutil50 4:0.6.2-5
ii libc6 2.13-18
ii libfreetype6 2.4.6-2
ii libfribidi0 0.19.2-1
ii libgcc1 1:4.6.1-8
ii libgl1-mesa-glx [libgl1] 7.11-5
ii libqtcore4 4:4.7.3-7
ii libqtgui4 4:4.7.3-7
ii libsdl-image1.2 1.2.10-2.1
ii libsdl1.2debian 1.2.14-6.4
ii libstdc++6 4.6.1-8
ii libtar0 1.2.11-8
ii libva-x11-1 1.0.12-2
ii libva1 1.0.12-2
ii libvlccore4 1.1.11-2+b2
ii libx11-6 2:1.4.4-1
ii libx11-xcb1 2:1.4.4-1
ii libxcb-keysyms1 0.3.8-1
ii libxcb-randr0 1.7-3
ii libxcb-shm0 1.7-3
ii libxcb-xv0 1.7-3
ii libxcb1 1.7-3
ii libxext6 2:1.3.0-3
ii libxpm4 1:3.5.9-1
ii ttf-freefont 20100919-1
ii vlc-nox 1.1.11-2+b2
ii zlib1g 1:1.2.5.dfsg-1
Versions of packages vlc recommends:
ii vlc-plugin-notify <none>
ii vlc-plugin-pulse <none>
ii xdg-utils 1.1.0~rc1-2
Versions of packages vlc suggests:
pn mozilla-plugin-vlc <none>
pn videolan-doc <none>
Versions of packages vlc-nox depends on:
ii liba52-0.7.4 0.7.4-16
ii libasound2 1.0.24.1-3
ii libass4 0.9.13-1
ii libavahi-client3 0.6.30-5
ii libavahi-common3 0.6.30-5
ii libavc1394-0 0.5.3-1+b2
ii libavcodec52 4:0.6.2-5
ii libavformat52 4:0.6.2-5
ii libavutil50 4:0.6.2-5
ii libc6 2.13-18
ii libcaca0 0.99.beta17-2
ii libcddb2 1.3.2-3
ii libcdio10 0.81-4
ii libdbus-1-3 1.4.14-1
ii libdc1394-22 2.1.3-4
ii libdca0 0.0.5-4
ii libdirac-encoder0 1.0.2-4
ii libdvbpsi7 0.2.0-1
ii libdvdnav4 4.1.4-1219-1
ii libdvdread4 4.1.4-1219-1
ii libebml3 1.2.1-1
ii libfaad2 2.7-7
ii libflac8 1.2.1-5
ii libfontconfig1 2.8.0-3
ii libfreetype6 2.4.6-2
ii libfribidi0 0.19.2-1
ii libgcc1 1:4.6.1-8
ii libgcrypt11 1.5.0-3
ii libgnutls26 2.12.7-8
ii libgpg-error0 1.10-0.3
ii libkate1 0.4.1-1
ii liblircclient0 0.9.0~pre1-1
ii liblua5.1-0 5.1.4-10
ii libmad0 0.15.1b-6
ii libmatroska4 1.2.0-1
ii libmodplug1 1:0.8.8.2-3
ii libmpcdec6 2:0.1~r459-1
ii libmpeg2-4 0.4.1-3
ii libmtp9 1.1.0-4
ii libncursesw5 5.9-1
ii libogg0 1.2.2~dfsg-1
ii libpng12-0 1.2.46-3
ii libpostproc51 4:0.6.2-5
ii libproxy0 0.3.1-3
ii libraw1394-11 2.0.7-1
ii libschroedinger-1.0-0 1.0.10-2.1
ii libshout3 2.2.2-5+b1
ii libsmbclient 2:3.5.11~dfsg-1
ii libspeex1 1.2~rc1-1
ii libstdc++6 4.6.1-8
ii libswscale0 4:0.6.2-5
ii libtag1c2a 1.7-1
ii libtheora0 1.1.1+dfsg.1-3
ii libtwolame0 0.3.13-1
ii libudev0 172-1
ii libupnp3 1:1.6.6-5.1
ii libv4l-0 0.8.5-3
ii libvcdinfo0 0.7.23-4+b1
ii libvlc5 1.1.11-2+b2
ii libvlccore4 1.1.11-2+b2
ii libvorbis0a 1.3.2-1
ii libvorbisenc2 1.3.2-1
ii libx264-116 2:0.116.2042+git178455c-1
ii libxml2 2.7.8.dfsg-4
ii zlib1g 1:1.2.5.dfsg-1
Versions of packages libvlc5 depends on:
ii libc6 2.13-18
ii libvlccore4 1.1.11-2+b2
Versions of packages libvlccore4 depends on:
ii libc6 2.13-18
ii libdbus-1-3 1.4.14-1
ii vlc-data 1.1.11-2
Versions of packages vlc is related to:
ii libavutil50 4:0.6.2-5
ii libavutil51 4:0.7.1-4
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20110903/7f45863a/attachment.pgp>
More information about the pkg-multimedia-maintainers
mailing list