[Bug 1762320] Re: gcore does not execute, uses /bin/sh but requires bash

Ubuntu Foundations Team Bug Bot 1762320 at bugs.launchpad.net
Mon Apr 9 08:21:33 UTC 2018


The attachment "gdb-bionic-gcore-bash.debdiff" seems to be a debdiff.
The ubuntu-sponsors team has been subscribed to the bug report so that
they can review and hopefully sponsor the debdiff.  If the attachment
isn't a patch, please remove the "patch" flag from the attachment,
remove the "patch" tag, and if you are member of the ~ubuntu-sponsors,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

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

Title:
  gcore does not execute, uses /bin/sh but requires bash

Status in gdb package in Ubuntu:
  Confirmed

Bug description:
  gcore fails to execute on bionic

  $ gcore
  /usr/bin/gcore: 28: /usr/bin/gcore: Syntax error: "(" unexpected

  Line 28 is:
   28 dump_all_cmds=()                                                                

  This appears to be bash syntax for arrays (as reinforced further down)
  which is not compatible with the /bin/sh shebang using dash.

  Upstream has a recent commit to move this from /bin/sh to bash (along also making other changes to fix problems with quoting within the same commit):
  https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=e1e6f073a9f5d7c3183cb8096fb24a42c28ba36b

  As a minimum fix we should probably change it from /bin/sh to
  /bin/bash

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



More information about the foundations-bugs mailing list