Public bug reported:

Redirection to an empty variable causes `dash` to exit abnormally via
SIGSEGV.


1) $ lsb_release -rd
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
2) $ apt-cache policy dash
dash:
  Installed: 0.5.8-2.1ubuntu2
  Candidate: 0.5.8-2.1ubuntu2
  Version table:
 *** 0.5.8-2.1ubuntu2 500
        500 http://ua.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
3) Script to reproduce:
$ cat test.sh 

foobar() {
        local a=$1
        echo abc >&$a
}
foobar

4) Result:
$ dash ~/cloudlinux/kernelcare/test.sh 
Segmentation fault (core dumped)

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

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

Title:
  redir to an empty variable

Status in dash package in Ubuntu:
  New

Bug description:
  Redirection to an empty variable causes `dash` to exit abnormally via
  SIGSEGV.

  
  1) $ lsb_release -rd
  Description:  Ubuntu 16.04.5 LTS
  Release:      16.04
  2) $ apt-cache policy dash
  dash:
    Installed: 0.5.8-2.1ubuntu2
    Candidate: 0.5.8-2.1ubuntu2
    Version table:
   *** 0.5.8-2.1ubuntu2 500
          500 http://ua.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
          100 /var/lib/dpkg/status
  3) Script to reproduce:
  $ cat test.sh 

  foobar() {
        local a=$1
        echo abc >&$a
  }
  foobar

  4) Result:
  $ dash ~/cloudlinux/kernelcare/test.sh 
  Segmentation fault (core dumped)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/1802149/+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