Here are two alternative ways to demonstrate this command line parsing bug:
1. In a bash terminal say:
trap "I received an invalid TERM signal" SIGTERM
/bin/kill -s TERM -15
Note that bash ignores the TERM unless this trap is present, so the TRAP makes 
it clear what is going on.
2. In a bash terminal say:
/bin/kill -s KILL -15
Bash will die along with other user processes due to SIGKILL and the user will 
be returned to a login prompt.

Note that 15 here is just a stand-in for any process group. This bug
affects all uses of /bin/kill on valid process groups where the process
group's first digit is a 1. If the process group's first digit is not a
1 then the first digit will be used as the target of the process group
kill. /bin/kill -s TERM -203432 will send TERM to process group 2.

Note that the bash built-in does not have this bug.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/1577297

Title:
  echo | xargs kill -15 kills running window session

Status in procps package in Ubuntu:
  Confirmed

Bug description:
  Running the command

  $ echo | xargs kill -15

  kills everything in the current window session. If run from tty1:

  $ echo | xargs kill -15
  Terminated

  And the window session is also killed.

  Same command tested on CentOS 7, running procps 3.3.10, shows kill
  command help.

  Same command tested on Arch Linux, running procps 3.3.11, shows "kill:
  not enough arguments".

  ProblemType: Bug
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Sun May  1 21:37:15 2016
  Dependencies:
   adduser 3.113+nmu3ubuntu4
   apt 1.2.10ubuntu1
   apt-utils 1.2.10ubuntu1
   coreutils 8.25-2ubuntu2
   debconf 1.5.58ubuntu1
   debconf-i18n 1.5.58ubuntu1
   debianutils 4.7
   dpkg 1.18.4ubuntu1
   e2fslibs 1.42.13-1ubuntu1
   e2fsprogs 1.42.13-1ubuntu1
   gcc-5-base 5.3.1-14ubuntu2
   gcc-6-base 6.0.1-0ubuntu1
   gnupg 1.4.20-1ubuntu3
   gpgv 1.4.20-1ubuntu3
   init-system-helpers 1.29ubuntu1
   initscripts 2.88dsf-59.3ubuntu2
   insserv 1.14.0-5ubuntu3
   libacl1 2.2.52-3
   libapt-inst2.0 1.2.10ubuntu1
   libapt-pkg5.0 1.2.10ubuntu1
   libattr1 1:2.4.47-2
   libaudit-common 1:2.4.5-1ubuntu2
   libaudit1 1:2.4.5-1ubuntu2
   libblkid1 2.27.1-6ubuntu3
   libbz2-1.0 1.0.6-8
   libc6 2.23-0ubuntu3
   libcomerr2 1.42.13-1ubuntu1
   libdb5.3 5.3.28-11
   libfdisk1 2.27.1-6ubuntu3
   libgcc1 1:6.0.1-0ubuntu1
   libgcrypt20 1.6.5-2
   libgpg-error0 1.21-2ubuntu1
   libgpm2 1.20.4-6.1
   liblocale-gettext-perl 1.07-1build1
   liblz4-1 0.0~r131-2ubuntu2
   liblzma5 5.1.1alpha+20120614-2ubuntu2
   libmount1 2.27.1-6ubuntu3
   libncurses5 6.0+20160213-1ubuntu1
   libncursesw5 6.0+20160213-1ubuntu1
   libpam-modules 1.1.8-3.2ubuntu2
   libpam-modules-bin 1.1.8-3.2ubuntu2
   libpam0g 1.1.8-3.2ubuntu2
   libpcre3 2:8.38-3.1
   libprocps4 2:3.3.10-4ubuntu2
   libreadline6 6.3-8ubuntu2
   libselinux1 2.4-3build2
   libsemanage-common 2.3-1build3
   libsemanage1 2.3-1build3
   libsepol1 2.4-2
   libsmartcols1 2.27.1-6ubuntu3
   libss2 1.42.13-1ubuntu1
   libstdc++6 5.3.1-14ubuntu2
   libsystemd0 229-4ubuntu4
   libtext-charwidth-perl 0.04-7build5
   libtext-iconv-perl 1.7-5build4
   libtext-wrapi18n-perl 0.06-7.1
   libtinfo5 6.0+20160213-1ubuntu1
   libudev1 229-4ubuntu4
   libusb-0.1-4 2:0.1.12-28
   libustr-1.0-1 1.0.4-5
   libuuid1 2.27.1-6ubuntu3
   lsb-base 9.20160110
   mount 2.27.1-6ubuntu3
   multiarch-support 2.23-0ubuntu3
   passwd 1:4.2-3.1ubuntu5
   perl-base 5.22.1-9
   psmisc 22.21-2.1build1
   readline-common 6.3-8ubuntu2
   sensible-utils 0.0.9
   sysv-rc 2.88dsf-59.3ubuntu2
   sysvinit-utils 2.88dsf-59.3ubuntu2
   tar 1.28-2.1
   ubuntu-keyring 2012.05.19
   util-linux 2.27.1-6ubuntu3
   uuid-runtime 2.27.1-6ubuntu3
   zlib1g 1:1.2.8.dfsg-2ubuntu4
  DistroRelease: Ubuntu 16.04
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-05-29 (338 days ago)
  InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Release amd64 Package: 
procps 2:3.3.10-4ubuntu2
  PackageArchitecture: amd64
  ProcEnviron:
   LANGUAGE=
   LC_TIME=nb_NO.UTF-8
   LC_MONETARY=nb_NO.UTF-8
   TERM=xterm
   LC_COLLATE=nb_NO.UTF-8
   PATH=(custom, no user)
   LC_ADDRESS=nb_NO.UTF-8
   XDG_RUNTIME_DIR=<set>
   LC_TELEPHONE=nb_NO.UTF-8
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
   LC_NAME=nb_NO.UTF-8
   LC_MEASUREMENT=nb_NO.UTF-8
   LC_IDENTIFICATION=nb_NO.UTF-8
   LC_NUMERIC=nb_NO.UTF-8
   LC_PAPER=nb_NO.UTF-8
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  SourcePackage: procps
  Tags:  xenial
  Uname: Linux 4.4.0-21-generic x86_64
  UpgradeStatus: Upgraded to xenial on 2016-04-22 (9 days ago)
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1577297/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to