From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sebastian--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#52196: 28.0.60; gdb-mi error message: "wrong type argument: stringp" Date: Tue, 30 Nov 2021 10:08:00 +0000 Message-ID: <75032129e9f7498593fe1b2a93617831@bsnrg.net> Reply-To: sebastian@bsnrg.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--=_RainLoop_347_410913233.1638266880" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23932"; mail-complaints-to="usenet@ciao.gmane.io" To: 52196@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 30 11:09:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ms04e-00062r-Sc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 11:09:21 +0100 Original-Received: from localhost ([::1]:39318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms04d-00070R-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 05:09:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms04Q-00070A-7E for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 05:09:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms04M-0005Jn-Tf for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 05:09:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ms04M-0006PE-JQ for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 05:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: sebastian@bsnrg.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2021 10:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52196 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163826689624555 (code B ref -1); Tue, 30 Nov 2021 10:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Nov 2021 10:08:16 +0000 Original-Received: from localhost ([127.0.0.1]:40226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms03b-0006Ny-Qo for submit@debbugs.gnu.org; Tue, 30 Nov 2021 05:08:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms03a-0006Nr-AN for submit@debbugs.gnu.org; Tue, 30 Nov 2021 05:08:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms03a-0006xS-6g for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 05:08:14 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:32170) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms03W-0005Fj-7u for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 05:08:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsnrg.net; s=key1; t=1638266881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=5a0q2zBkB1Mr7Q3bVPUrBbN5VKTjafK38L/32CJn2oQ=; b=otPm2LelbtPqhEyFX7g8ncBgkToIcxuuUCpevW16i4m9dxlRqWIdc7DP/Uh+z53aqHmLIj 1Lv8+YOc/imQQXe/U5sXWAwtm7exNAiF3c/rLE1TKVfqEYzBnXrDLxL/8Jk/lc76pbRH9P Map0wCZJeGDgNiJBwgplghVpFIyTEZI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: sebastian@bsnrg.net Received-SPF: pass client-ip=188.165.223.204; envelope-from=sebastian@bsnrg.net; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221106 Archived-At: ----=_RainLoop_347_410913233.1638266880 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I've attached a small C++ program that can be used to reproduce the issue= . I compiled it like so=0A=0Ag++ -g3 main.cc -o test-program=0A=0ASteps t= o reproduce:=0A- emacs -Q=0A- evaluate the forms:=0A(require 'gdb-mi)=0A(= setq gdb-many-windows t)=0A=0A- M-x gdb with argument "gdb -i=3Dmi /path/= to/test-program"=0A- Do "run" in the gdb command prompt=0A- M-x gdb-io-in= terrupt=0A=0AResult: error message in minibuffer "Wrong type argument: st= ringp, nil" (although the command executes normally).=0A=0AFurthermore, i= n this state any of the following will also cause the same message to fla= sh:=0A- doing M-x gud-break in the source buffer=0A- toggling a breakpoin= t in the breakpoint buffer=0A- probably others=0A=0AAlthough again none o= f the commands fail to execute properly.=0A=0ARoot cause:=0A=0AIn the fun= ction gdb-frame-handler the form:=0A=0A(setq gdb-selected-file (file-loca= l-name (gdb-mi--field frame 'fullname)))=0A=0Acauses the error message if= gdb-mi--field returns nil. I don't know if this is an expected return va= lue for that function or not. In any case, file-local-name signals the er= ror in case of nil input. The file-local-name wrapping was introduced sem= i-recently with commit 019c70e731d0243ad3ea2d4ebb02dd4a343e868f.=0A=0ATha= nks.=0A=0A----------------------------------------=0A=0AIn GNU Emacs 28.0= .60 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.= 15.12)=0A of 2021-11-30 built on san=0ARepository revision: 30553d889d733= 613e8e5fd22358980baa7ee148e=0ARepository branch: emacs-28=0AWindowing sys= tem distributor 'The X.Org Foundation', version 11.0.12011000=0ASystem De= scription: CentOS Linux 8=0A=0AConfigured using:=0A 'configure --prefix= =3D/home/snorgaard/emacs-master --with-cairo=0A --with-dumping=3Dpdumper = --with-mailutils --with-json --with-x=0A --with-xwidgets --with-native-co= mpilation=0A --enable-link-time-optimization 'CFLAGS=3D-g3 -O3 -mtune=3Dn= ative=0A -march=3Dnative -fomit-frame-pointer''=0A=0AConfigured features:= =0ACAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON= =0ALCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PN= G=0ARSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM= =0AXWIDGETS GTK3 ZLIB=0A=0AImportant settings:=0A value of $LANG: en_DK.= UTF-8=0A value of $XMODIFIERS: @im=3Dibus=0A locale-coding-system: utf-= 8-unix=0A=0AMajor mode: C++//l=0A=0AMinor modes in effect:=0A gdb-many-w= indows: 1=0A tooltip-mode: t=0A global-eldoc-mode: t=0A show-paren-mod= e: t=0A electric-indent-mode: t=0A mouse-wheel-mode: t=0A tool-bar-mod= e: t=0A menu-bar-mode: t=0A file-name-shadow-mode: t=0A global-font-lo= ck-mode: t=0A font-lock-mode: t=0A blink-cursor-mode: t=0A auto-compos= ition-mode: t=0A auto-encryption-mode: t=0A auto-compression-mode: t=0A= line-number-mode: t=0A indent-tabs-mode: t=0A transient-mark-mode: t= =0A abbrev-mode: t=0A=0ALoad-path shadows:=0ANone found.=0A=0AFeatures:= =0A(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs= =0Arfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail= =0Armail-loaddefs auth-source eieio eieio-core eieio-loaddefs=0Apassword-= cache json map text-property-search mm-decode mm-bodies=0Amm-encode mail-= parse rfc2231 mailabbrev gmm-utils mailheader sendmail=0Arfc2047 rfc2045 = ietf-drums mm-util mail-prsvr mail-utils time-date=0Acc-mode cc-fonts cc-= guess cc-menus cc-cmds cc-styles cc-align cc-engine=0Acc-vars cc-defs com= p comp-cstr warnings subr-x rx cl-macs cl-extra=0Ahelp-mode seq byte-opt = gv bytecomp byte-compile cconv gdb-mi cl-seq=0Acl-loaddefs cl-lib gud eas= y-mmode comint ansi-color ring iso-transl=0Atooltip eldoc paren electric = uniquify ediff-hook vc-hooks=0Alisp-float-type elisp-mode mwheel term/x-w= in x-win term/common-win x-dnd=0Atool-bar dnd fontset image regexp-opt fr= inge tabulated-list replace=0Anewcomment text-mode lisp-mode prog-mode re= gister page tab-bar menu-bar=0Arfn-eshadow isearch easymenu timer select = scroll-bar mouse jit-lock=0Afont-lock syntax font-core term/tty-colors fr= ame minibuffer cl-generic=0Acham georgian utf-8-lang misc-lang vietnamese= tibetan thai tai-viet lao=0Akorean japanese eucjp-ms cp51932 hebrew gree= k romanian slovak czech=0Aeuropean ethiopic indian cyrillic chinese compo= site emoji-zwj charscript=0Acharprop case-table epa-hook jka-cmpr-hook he= lp simple abbrev obarray=0Acl-preloaded nadvice button loaddefs faces cus= -face macroexp files=0Awindow text-properties overlay sha1 md5 base64 for= mat env code-pages=0Amule custom widget hashtable-print-readable backquot= e threads=0Axwidget-internal dbusbind inotify lcms2 dynamic-setting=0Asys= tem-font-setting font-render-setting cairo move-toolbar gtk x-toolkit=0Ax= multi-tty make-network-process native-compile emacs)=0A=0AMemory informa= tion:=0A((conses 16 134661 11459)=0A (symbols 48 10813 0)=0A (strings 32 = 31925 1896)=0A (string-bytes 1 1182054)=0A (vectors 16 20650)=0A (vector-= slots 8 362625 14622)=0A (floats 8 46 30)=0A (intervals 56 365 3)=0A (buf= fers 992 19)) ----=_RainLoop_347_410913233.1638266880 Content-Type: application/octet-stream; name="main.cc" Content-Disposition: attachment; filename="main.cc" Content-Transfer-Encoding: base64 I2luY2x1ZGUgPGNocm9ubz4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dGhyZWFk PgoKaW50IG1haW4gKCkKewogIHVzaW5nIG5hbWVzcGFjZSBzdGQ6OmNocm9ub19saXRlcmFs czsKCiAgYXV0byBjb3VudCA9IDA7CiAgZm9yICg7OykgewogICAgKytjb3VudDsKICAgIHN0 ZDo6Y291dCA8PCAiVGhpcyBpcyBtZXNzYWdlOiAiIDw8IGNvdW50IDw8IHN0ZDo6ZW5kbDsK ICAgIHN0ZDo6dGhpc190aHJlYWQ6OnNsZWVwX2ZvcigxMDAwbXMpOwogIH0KfQo= ----=_RainLoop_347_410913233.1638266880--