This bug was fixed in the package gdb - 8.1-0ubuntu3 --------------- gdb (8.1-0ubuntu3) bionic; urgency=medium
* Update, taken from the gdb-8.1-branch 20180409. * Use bash instead of /bin/sh as this script uses arrays which require bash. (Trent Lloyd). LP: #1762320. -- Matthias Klose <d...@ubuntu.com> Mon, 09 Apr 2018 11:31:42 +0200 ** Changed in: gdb (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, 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: Fix Released 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 -- 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