Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11644
| Path | csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Nicholas Bamber <nicholas@periapt.co.uk> |
| Newsgroups | gnu.bash.bug |
| Subject | Debian: bash --debugger doesn't start the debugger |
| Date | Mon, 12 Oct 2015 21:16:12 +0100 |
| Organization | Periapt Technologies |
| Lines | 66 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.210.1444724588.7904.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/mixed; boundary="------------030701000304010608050702" |
| X-Trace | usenet.stanford.edu 1444724589 13441 208.118.235.17 (13 Oct 2015 08:23:09 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | 403304@bugs.debian.org, Matthias Klose <doko@debian.org>, bug-bash@gnu.org, Oleksandr Moskalenko <malex@debian.org> |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.6.x |
| X-Received-From | 212.67.218.27 |
| X-Mailman-Approved-At | Tue, 13 Oct 2015 04:23:07 -0400 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:11644 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
My investigations indicate that it is still true that as per Debian bug
report (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403304)
--debugger does NOT start the debugger UNLESS the debugged script has a
$1. For example
/bin/bash --debugger -- ~/scripts/ex1.sh
will just run the script but
/bin/bash --debugger -- ~/scripts/ex1.sh XXX
will enter the debugger. To comment on the other prior information on
the Debian bug report:
1. The upstream bashdb developer is correct that checking "strings
`which bash` | grep bashdb" is a good test for whether bash will find
bashdb-main.inc, but this is not relevant to Debian becase this is set
correctly in Debian's case.
2. If you take an upstream tarball of bash and compile it then even the
extra $1 will not make the debugger run under that bash, unless you link
the upsteram location of '/usr/local/share/bashdb' to the Debian value
of /usr/share/bashdb.
In other words the other commenters were correct but had not got to the
root issue. The root issue is appears to be this line in shell.c in the
bash code:
if (debugging_mode && locally_skip_execution == 0 && running_setuid
== 0 && dollar_vars[1])
start_debugger ();
I enclose a patch that I believe would address this, and suggest it is
an upstream bash issue.
Back to gnu.bash.bug | Previous | Next | Find similar
Debian: bash --debugger doesn't start the debugger Nicholas Bamber <nicholas@periapt.co.uk> - 2015-10-12 21:16 +0100
csiph-web