From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Newsgroups: gmane.emacs.bugs Subject: bug#21940: 24.5; GDB interface gets confused by non-ASCII Date: Tue, 17 Nov 2015 16:28:32 +0100 Message-ID: <84lh9wmyqn.fsf@mimmi.uddeborg> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447777347 5104 80.91.229.3 (17 Nov 2015 16:22:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 16:22:27 +0000 (UTC) To: 21940@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 17:22:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zyj1G-0006ip-V4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 17:22:11 +0100 Original-Received: from localhost ([::1]:59331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyj1G-0006RT-AR for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2015 11:22:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyj1C-0006RN-CV for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:22:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zyj18-0000DK-7f for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:22:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyj18-0000DF-3k for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zyj17-00032Z-Ql for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Nov 2015 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21940 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144777728311629 (code B ref -1); Tue, 17 Nov 2015 16:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2015 16:21:23 +0000 Original-Received: from localhost ([127.0.0.1]:41923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zyj0U-00031U-Oj for submit@debbugs.gnu.org; Tue, 17 Nov 2015 11:21:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43002) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zyj0B-00030Z-3f for submit@debbugs.gnu.org; Tue, 17 Nov 2015 11:21:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zyj06-0008VK-M3 for submit@debbugs.gnu.org; Tue, 17 Nov 2015 11:21:02 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyj06-0008VG-I9 for submit@debbugs.gnu.org; Tue, 17 Nov 2015 11:20:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyj02-0006Il-1Y for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:20:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zyizx-0008UG-Ti for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:20:54 -0500 Original-Received: from host.62.65.125.225.bitcom.se ([62.65.125.225]:60114 helo=mimmi.uddeborg.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zyizx-0008Ty-J7 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2015 11:20:49 -0500 Original-Received: from mimmi.uddeborg (localhost [127.0.0.1]) by mimmi.uddeborg.se (8.14.8/8.14.8) with ESMTP id tAHFSXXc019526 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 17 Nov 2015 16:28:33 +0100 Original-Received: (from goeran@localhost) by mimmi.uddeborg (8.14.8/8.14.7/Submit) id tAHFSWFD019525; Tue, 17 Nov 2015 16:28:32 +0100 X-Authentication-Warning: mimmi.uddeborg: goeran set sender to goeran@uddeborg.se using -f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108826 Archived-At: It seems something has broken in the interface between Gdb and Emacs. I'm not sure which side is to blame, but I'll start with a report here. Let me know if I should report to gdb instead. With the most recent versions of Emacs and Gdb on Fedora, the debugging mode gets confused if the path to the program being debugged contains a non-ASCII letter. To reproduce it do like this: 1. cd /tmp 2. mkdir g=C3=B6ran 3. cd g=C3=B6ran 4. cat > c.c << EOF int main() { return 0; } EOF 5. cc -g c.c -o c 6. emacs -Q 7. M-x gdb 8. (in *gud-c* buffer) b main 9. r The first strange thing happens at step 8. After having printed the message "Breakpoint 1 at 0x4004fa: file c.c, line 3" and a "(gdb)" prompt, there is also a listing of the c.c file inserted in the "*gud-c*" buffer. After running the program in step 9, the line where the program stops is listed in the "*gud-c*" buffer, and then the file c.c is listed AGAIN. I also get a question in the minibuffer: File /tmp/g=C3=B6ran/"/tmp/g\303\2= 66ran/c.c" is read-only on disk. Make buffer read-only, too? (y or n) Note that "/tmp/g=C3=B6ran" is repeated here, quoted with octal codes once. The quotation signs also look strangely placed. If I replace the "=C3=B6" in the name of the directory created in step 2, t= he debugger behaves as I'm used to. When it reaches the breakpoint in step 9, the file c.c is popped up in a separate window, with a little marker at line 3 where the process has stopped. This is on Fedora 23: emacs-24.5-6.fc23.x86_64 gdb-7.10-29.fc23.x86_64 LANG=3Dsv_SE.utf8 In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.17.8) of 2015-09-11 on buildvm-21.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11799902 System Description: Fedora release 14 (Laughlin) 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 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' Important settings: value of $LANG: sv_SE.utf8 locale-coding-system: utf-8-unix Major mode: Info Minor modes in effect: which-function-mode: t global-auto-complete-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Wrote /home/g=C3=B6ran/H=C3=A4mtat/todo/mimmi/23=CE=B2 Saving file /home/g=C3=B6ran/H=C3=A4mtat/todo/freddi/23=C2=A0... Wrote /home/g=C3=B6ran/H=C3=A4mtat/todo/freddi/23=C2=A0 Saving file /home/g=C3=B6ran/H=C3=A4mtat/todo/freddi/23=CE=B2... Wrote /home/g=C3=B6ran/H=C3=A4mtat/todo/freddi/23=CE=B2 (No files need saving) Compilation finished Removed 6 items. Auto-saving... Making completion list... Load-path shadows: /usr/share/emacs/site-lisp/goodies/htmlize hides /usr/share/emacs/site-lisp= /htmlize/htmlize /usr/share/emacs/site-lisp/goodies/emacs-goodies-loaddefs hides /usr/share/= emacs/site-lisp/site-start.d/emacs-goodies-loaddefs /usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/emacs= /site-lisp/maxima/site_start.d/maxima-modes /usr/share/emacs/site-lisp/gnus-bonus/nnir hides /usr/share/emacs/24.5/lisp= /gnus/nnir /usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides /usr/share/emacs/24.5= /lisp/gnus/spam-stat /usr/share/emacs/site-lisp/gnus-bonus/nnnil hides /usr/share/emacs/24.5/lis= p/gnus/nnnil Features: (shadow sort gnus-util mail-extr warnings emacsbug jka-compr misearch multi-isearch po-mode po message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader flyspell ispell mailabbrev mailalias vm-save tapestry qp vm-pgg vm-reply pgg pgg-parse pgg-def vm-rfaddons sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vm-menu vm-window vm-toolbar vm-folder vm-mime vm-undo vm-summary vm-mouse vm-page vm-motion vm-minibuf vm-message vm-misc vm-macro vm add-log compile comint ansi-color ring help-mode cmake-mode thingatpt server which-func imenu flow-ctrl advice help-fns u-vm-color vm-autoloads vm-vars vm-version preview-latex muse-journal muse-book muse-wiki muse-docbook muse-texinfo texnfo-upd texinfo muse-latex muse-html muse-xml-common cus-edit cus-start cus-load muse-publish muse-project muse-protocols info easymenu muse-regexps wid-edit derived muse muse-nested-tags muse-mode emacs-goodies-loaddefs easy-mmode bbdb-autoloads auto-complete-config auto-complete edmacro kmacro cl-loaddefs cl-lib popup tex-site auto-loads time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 337622 37316) (symbols 48 36266 0) (miscs 40 26286 853) (strings 32 101296 15109) (string-bytes 1 2222681) (vectors 16 42480) (vector-slots 8 1574704 14223) (floats 8 138 247) (intervals 56 29670 33) (buffers 960 76) (heap 1024 70864 2417))