[Bug 1683923] [NEW] Empty extglob patterns hang bash

John Valko 1683923 at bugs.launchpad.net
Tue Apr 18 20:28:07 UTC 2017


Public bug reported:

Bash hangs when extglobs with no patterns are specified.

Example:

$ echo !()

should print the contents of the current directory, but actually makes
bash hang with 100% CPU usage. Also affects other pattern types, e.g.
@() and ?(). Non-empty patterns work correctly.

After executing a command containing such a glob, a SIGKILL is required
to terminate the process.

Additional info:

$ lsb_release  -rd
Description:	Ubuntu 14.04.4 LTS
Release:	14.04

$ apt-cache policy bash
bash:
  Installed: 4.3-7ubuntu1.5
  Candidate: 4.3-7ubuntu1.5
  Version table:
 *** 4.3-7ubuntu1.5 0
        500 http://mirrors.linode.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://mirrors.linode.com/ubuntu/ trusty-security/main amd64 Packages
                                                                                        100 /var/lib/dpkg/status
     4.3-6ubuntu1 0
        500 http://mirrors.linode.com/ubuntu/ trusty/main amd64 Packages

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Empty extglob patterns hang bash

Status in bash package in Ubuntu:
  New

Bug description:
  Bash hangs when extglobs with no patterns are specified.

  Example:

  $ echo !()

  should print the contents of the current directory, but actually makes
  bash hang with 100% CPU usage. Also affects other pattern types, e.g.
  @() and ?(). Non-empty patterns work correctly.

  After executing a command containing such a glob, a SIGKILL is
  required to terminate the process.

  Additional info:

  $ lsb_release  -rd
  Description:	Ubuntu 14.04.4 LTS
  Release:	14.04

  $ apt-cache policy bash
  bash:
    Installed: 4.3-7ubuntu1.5
    Candidate: 4.3-7ubuntu1.5
    Version table:
   *** 4.3-7ubuntu1.5 0
          500 http://mirrors.linode.com/ubuntu/ trusty-updates/main amd64 Packages
          500 http://mirrors.linode.com/ubuntu/ trusty-security/main amd64 Packages
                                                                                          100 /var/lib/dpkg/status
       4.3-6ubuntu1 0
          500 http://mirrors.linode.com/ubuntu/ trusty/main amd64 Packages

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



More information about the foundations-bugs mailing list