From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 17 11:21:23 2015 Received: (at submit) by debbugs.gnu.org; 17 Nov 2015 16:21:23 +0000 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 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 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 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]: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 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 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 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 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 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 From: =?utf-8?Q?G=C3=B6ran_Uddeborg?= To: bug-gnu-emacs@gnu.org Subject: 24.5; GDB interface gets confused by non-ASCII Date: Tue, 17 Nov 2015 16:28:32 +0100 Message-ID: <84lh9wmyqn.fsf@mimmi.uddeborg> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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)) From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 17 11:47:31 2015 Received: (at 21940) by debbugs.gnu.org; 17 Nov 2015 16:47:31 +0000 Received: from localhost ([127.0.0.1]:41937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyjPm-0003pm-C3 for submit@debbugs.gnu.org; Tue, 17 Nov 2015 11:47:30 -0500 Received: from mtaout25.012.net.il ([80.179.55.181]:55421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZyjPR-0003p1-Va for 21940@debbugs.gnu.org; Tue, 17 Nov 2015 11:47:29 -0500 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NXY00100WYLEA00@mtaout25.012.net.il> for 21940@debbugs.gnu.org; Tue, 17 Nov 2015 18:44:36 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXY0021QX6B5V00@mtaout25.012.net.il>; Tue, 17 Nov 2015 18:44:36 +0200 (IST) Date: Tue, 17 Nov 2015 18:47:07 +0200 From: Eli Zaretskii Subject: Re: bug#21940: 24.5; GDB interface gets confused by non-ASCII In-reply-to: <84lh9wmyqn.fsf@mimmi.uddeborg> X-012-Sender: halo1@inter.net.il To: =?utf-8?Q?G=C3=B6ran?= Uddeborg Message-id: <837flgbmk4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <84lh9wmyqn.fsf@mimmi.uddeborg> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21940 Cc: 21940@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Göran Uddeborg > Date: Tue, 17 Nov 2015 16:28:32 +0100 > > > 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öran > 3. cd göran > 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öran/"/tmp/g\303\266ran/c.c" is read-only on disk. Make buffer read-only, too? (y or n) > > Note that "/tmp/göran" is repeated here, quoted with octal codes once. > The quotation signs also look strangely placed. > > If I replace the "ö" in the name of the directory created in step 2, the > 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. Thanks for reporting this. This is bug #21572 (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21572), which is already fixed in the development sources. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 17 21:01:21 2015 Received: (at control) by debbugs.gnu.org; 18 Nov 2015 02:01:21 +0000 Received: from localhost ([127.0.0.1]:42192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zys3l-0000Br-7k for submit@debbugs.gnu.org; Tue, 17 Nov 2015 21:01:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38225) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zys3j-0000Bk-Tv for control@debbugs.gnu.org; Tue, 17 Nov 2015 21:01:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zys3j-0006b8-7F for control@debbugs.gnu.org; Tue, 17 Nov 2015 21:01:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 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]:46679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zys3j-0006b4-4l for control@debbugs.gnu.org; Tue, 17 Nov 2015 21:01:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1Zys3i-0004z0-S3 for control@debbugs.gnu.org; Tue, 17 Nov 2015 21:01:18 -0500 Subject: control message for bug 21940 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 17 Nov 2015 21:01:18 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) unarchive 21572 fixed 21940 25.1 forcemerge 21572 21940 From unknown Sun Jun 22 00:24:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Dec 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator