GNU bug report logs - #25488
25.1; gdb package interpreter problem

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Randy Yates <randyy@HIDDEN>; Keywords: confirmed; dated Thu, 19 Jan 2017 20:37:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 25488 <at> debbugs.gnu.org:


Received: (at 25488) by debbugs.gnu.org; 20 Jan 2017 19:24:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 20 14:24:52 2017
Received: from localhost ([127.0.0.1]:36627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cUens-0006aL-97
	for submit <at> debbugs.gnu.org; Fri, 20 Jan 2017 14:24:52 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35266)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1cUenq-0006a9-R6
 for 25488 <at> debbugs.gnu.org; Fri, 20 Jan 2017 14:24:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1cUenj-0005Bu-Tt
 for 25488 <at> debbugs.gnu.org; Fri, 20 Jan 2017 14:24:45 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46856)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1cUenV-00057W-R2; Fri, 20 Jan 2017 14:24:29 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1cUenV-0004UX-0J; Fri, 20 Jan 2017 14:24:29 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Randy Yates <randyy@HIDDEN>
Subject: Re: bug#25488: 25.1; gdb package interpreter problem
References: <878tq6oklq.fsf@HIDDEN>
X-Spook: NORAD mindwar Human to Animal SAFE Sears Tower SRI
X-Ran: '<dTyTpm5]?;-K24@bTYey$)m<Ie5=9;&EQ>9@x9&i(jW8[QhH.p"}Hcg#5ywTTM\D|S_(
X-Hue: black
X-Attribution: GM
Date: Fri, 20 Jan 2017 14:24:28 -0500
In-Reply-To: <878tq6oklq.fsf@HIDDEN> (Randy Yates's message
 of "Thu, 19 Jan 2017 20:33:54 +0000")
Message-ID: <inr33xsff7.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -8.2 (--------)
X-Debbugs-Envelope-To: 25488
Cc: "yates@HIDDEN" <yates@HIDDEN>, 25488 <at> debbugs.gnu.org,
 sergiodj@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -8.2 (--------)


(Nick doesn't maintain gdb.el any more, so I removed him from the cc)

Randy Yates wrote:

> 1. configure remote system by running "gdbserver --multi localhost:<port>"
>
> 2. on host system, run emacs, then "M-x gdb <ret> -i=mi"
>
> 3. at the gdb prompt:
>
>   file <path-to-exe>
>   target extended-remote <remote-host-ip-addr>:<port>
>   set remote exec-file <path-to-exe>
>   start
>
> 4.on the remote side, note the message:
>
>   "Cannot exec <path-to-exe> : No such file or directory."
>
> specifically, note the space between "<path-to-exe>" and ":", which
> should not be there. this is the extraneous space.


Confirmed on rhel 7.

This seems to be due to the " " in:

(concat gdb-continuation string " ")

in gdb-send, which was added in bug#14847. I've cc'd the author of that change.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25488; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Jan 2017 20:36:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 19 15:36:57 2017
Received: from localhost ([127.0.0.1]:35805 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cUJS5-00080e-Hr
	for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 15:36:57 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36545)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <randyy@HIDDEN>) id 1cUJPi-0007wE-4Q
 for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 15:34:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <randyy@HIDDEN>) id 1cUJPb-0007Gs-5Z
 for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 15:34:24 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48915)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <randyy@HIDDEN>)
 id 1cUJPb-0007Gj-2y
 for submit <at> debbugs.gnu.org; Thu, 19 Jan 2017 15:34:23 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55733)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <randyy@HIDDEN>) id 1cUJPZ-0007rJ-9F
 for bug-gnu-emacs@HIDDEN; Thu, 19 Jan 2017 15:34:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <randyy@HIDDEN>) id 1cUJPU-0007DF-B1
 for bug-gnu-emacs@HIDDEN; Thu, 19 Jan 2017 15:34:21 -0500
Received: from s12p02o160.mxlogic.net ([208.65.145.83]:56666)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <randyy@HIDDEN>)
 id 1cUJPU-0007Bv-1g; Thu, 19 Jan 2017 15:34:16 -0500
Received: from unknown [107.190.148.219]
 by s12p02o160.mxlogic.net(mxl_mta-8.5.0-1605) over TLS secured channel
 with SMTP id 3c221885.0.1868566.00-359.3906157.s12p02o160.mxlogic.net
 (envelope-from <randyy@HIDDEN>); 
 Thu, 19 Jan 2017 13:34:11 -0700 (MST)
X-MXL-Hash: 588122c345c9aebf-99efc7c8b6487313f284d2ce8ce86279e21afb8b
Received: from Exch2013.Ebtron01.local (10.0.0.94) by Exch2013.Ebtron01.local
 (10.0.0.94) with Microsoft SMTP Server (TLS) id 15.0.847.32;
 Thu, 19 Jan 2017 15:33:55 -0500
Received: from Exch2013.Ebtron01.local ([fe80::953b:8a0c:2430:8971]) by
 Exch2013.Ebtron01.local ([fe80::953b:8a0c:2430:8971%12]) with mapi id
 15.00.0847.040; Thu, 19 Jan 2017 15:33:55 -0500
From: Randy Yates <randyy@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: 25.1; gdb package interpreter problem
Thread-Topic: 25.1; gdb package interpreter problem
Thread-Index: AQHScpNaF9EJ28SBq0qMKMIYTABL/g==
Date: Thu, 19 Jan 2017 20:33:54 +0000
Message-ID: <878tq6oklq.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.16.1.3]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-AnalysisOut: [v=2.2 cv=WMEPZjkR c=1 sm=1 tr=0 a=9cAOY3D1fQ7Z7wLPOCIRfg==]
X-AnalysisOut: [:117 a=9cAOY3D1fQ7Z7wLPOCIRfg==:17 a=mbhvz6Q9Lt8A:10 a=8nJ]
X-AnalysisOut: [EP1OIZ-IA:10 a=xqWC_Br6kY4A:10 a=IgFoBzBjUZAA:10 a=vTr9H3x]
X-AnalysisOut: [dAAAA:8 a=QeOCh57HzEM7iHPYWTIA:9 a=TC7nq5_4-mELVetc:21 a=G]
X-AnalysisOut: [OulmvybEiq4bYRo:21 a=wPNLvfGTeEIA:10 a=7PCjnrUJ-F5voXmZD6j]
X-AnalysisOut: [J:22]
X-Spam: [F=0.5199920032; CM=0.500; MH=0.519(2017011910); S=0.499(2015072901)]
X-MAIL-FROM: <randyy@HIDDEN>
X-SOURCE-IP: [107.190.148.219]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 19 Jan 2017 15:36:56 -0500
Cc: "yates@HIDDEN" <yates@HIDDEN>, Nick Roberts <nickrob@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


this bug is for the gdb package, when debugging remotely. an extraneous
space is appended to the <path-to-exe> given in a "set remote exec-file
<path-to-exe>" command. this is causing the subsequent debug commands
(start, run, etc.) to fail.

presumably this is a bug in the interpreter adding an extraneous space.
note that the same commands issued to a command-line gdb instance work
fine.

Step-by-step
------------

1. configure remote system by running "gdbserver --multi localhost:<port>"

2. on host system, run emacs, then "M-x gdb <ret> -i=3Dmi"

3. at the gdb prompt:

  file <path-to-exe>
  target extended-remote <remote-host-ip-addr>:<port>
  set remote exec-file <path-to-exe>
  start

4.on the remote side, note the message:

  "Cannot exec <path-to-exe> : No such file or directory."

specifically, note the space between "<path-to-exe>" and ":", which
should not be there. this is the extraneous space.



In GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.9)
 of 2016-10-13 built on buildvm-05.phx2.fedoraproject.org
Windowing system distributor 'Fedora Project', version 11.0.11804000
Configured using:
 'configure --build=3Dx86_64-redhat-linux-gnu
 --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D
 --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr
 --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc
 --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64
 --libexecdir=3D/usr/libexec --localstatedir=3D/var
 --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man
 --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
 --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3
 --with-gpm=3Dno --with-xwidgets build_alias=3Dx86_64-redhat-linux-gnu
 host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2
 -fexceptions -fstack-protector-strong --param=3Dssp-buffer-size=3D4
 -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m64 -mtune=3Dgeneric' LDFLAGS=3D-Wl,-z,relro
 PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: rcirc

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  use-hard-newlines: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
nnimap read 17k from localhost
nnimap read 25k from localhost
nnimap read 34k from localhost
Mark set
Quit [2 times]
Making completion list...
Quit [2 times]
Making completion list...
Quit [2 times]
Mark set
Quit

Load-path shadows:
/usr/share/emacs/25.1/lisp/progmodes/cpp hides ./cpp

Features:
(shadow emacsbug dictionary link connection eieio-opt speedbar sb-image
ezimage dframe find-func rcirc gdb-mi bindat json map gud search-utils
sd-src-utils tramp-sh browse-url filecache cus-edit jka-compr info
tabify imenu man dired-aux vc-bzr vc-src vc-sccs flow-fill tramp-cache
tramp tramp-compat tramp-loaddefs trampver ucs-normalize advice
conf-mode vc-git diff-mode whitespace pulse make-mode pcmpl-unix qp
mm-archive rect thingatpt ggtags etags xref project ewoc edmacro kmacro
cscope c-comment-edit cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs log-edit easy-mmode
pcvs-util add-log vc-cvs vc-rcs pp misearch multi-isearch vc-svn
tex-mode compile shell pcomplete comint ring latexenc server mailalias
nnir sort ansi-color gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml
disp-table nndraft nnmh utf-7 nnfolder network-stream nsm starttls
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache
gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int
gnus-range message idna dired format-spec rfc822 mml mml-sec epg
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader gnus-win gnus gnus-ems nnheader wid-edit paren time delsel
cus-start cus-load vc vc-dispatcher derived my-keys mailrc invoices
my-easl-utils my-slime my-color-theme my-tags my-programming-utils
my-packages my-grep-find-file my-dictionary my-compile my-project
my-ggtags my-git ido smtpmail sendmail rfc2047 rfc2045 ietf-drums
mail-utils url-util url-parse auth-source cl-seq eieio eieio-core
cl-macs gnus-util mm-util help-fns mail-prsvr password-cache url-vars
my-utils my-gnus email-html cl finder-inf package epg-config seq
byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv
cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
dbusbind inotify dynamic-setting system-font-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 1085807 195400)
 (symbols 48 164211 94)
 (miscs 40 8539 3854)
 (strings 32 222707 17481)
 (string-bytes 1 6015145)
 (vectors 16 62826)
 (vector-slots 8 1069367 52625)
 (floats 8 613 2889)
 (intervals 56 97658 1231)
 (buffers 976 273)
 (heap 1024 269956 169705))=




Acknowledgement sent to Randy Yates <randyy@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#25488; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 20 Jan 2017 19:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.