[Bug 1306412] Re: patch -pq throws segfault

Doug McMahon 1306412 at bugs.launchpad.net
Thu May 8 11:11:50 UTC 2014


2.7.1-4ubuntu1 doesn't segfault

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to patch in Ubuntu.
https://bugs.launchpad.net/bugs/1306412

Title:
  patch -pq throws segfault

Status in “patch” package in Ubuntu:
  Fix Released
Status in “patch” source package in Trusty:
  Fix Committed
Status in “patch” package in Debian:
  Fix Released

Bug description:
  [Impact]
  patch crashes when -p option is given non-number. Output when running with:

   ~/src/patch-2.7.1$ gdb --args src/patch -pq

  (gdb) run
  Starting program: /home/user/src/patch-2.7.1/src/patch -pq
  /home/user/src/patch-2.7.1/src/patch: **** strip count q is not a number

  Program received signal SIGSEGV, Segmentation fault.
  gl_list_iterator_inline (list=0x0) at ../lib/gl_list.h:762
  762	         ->iterator (list);
  (gdb)

  [Test Case]
  patch -pq

  [Regression Potential]
  Just in Utopic. Add if clause.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: patch 2.7.1-4
  ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
  Uname: Linux 3.13.0-19-generic x86_64
  ApportVersion: 2.14.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: LXDE
  Date: Fri Apr 11 10:12:15 2014
  Dependencies:
   gcc-4.9-base 4.9-20140406-0ubuntu1
   libc6 2.19-0ubuntu4
   libgcc1 1:4.9-20140406-0ubuntu1
   multiarch-support 2.19-0ubuntu4
  InstallationDate: Installed on 2014-04-07 (3 days ago)
  InstallationMedia: Lubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
  SourcePackage: patch
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list