From unknown Sun Aug 17 22:01:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4714 <4714@debbugs.gnu.org> To: bug#4714 <4714@debbugs.gnu.org> Subject: Status: 23.1.50; wrong-type-argument stringp nil in gdb Reply-To: bug#4714 <4714@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:01:26 +0000 retitle 4714 23.1.50; wrong-type-argument stringp nil in gdb reassign 4714 emacs submitter 4714 Robert Marshall severity 4714 normal thanks From robert.marshall@tnei.co.uk Tue Oct 13 05:49:53 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Oct 2009 12:49:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.3 required=4.0 tests=AWL,FOURLA,URIBL_CNKR autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9DCnpx2021263 for ; Tue, 13 Oct 2009 05:49:53 -0700 Received: from mail.gnu.org ([199.232.76.166]:53203 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Mxgp5-0003DV-AR for emacs-pretest-bug@gnu.org; Tue, 13 Oct 2009 08:49:51 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Mxgp0-0002KK-6s for emacs-pretest-bug@gnu.org; Tue, 13 Oct 2009 08:49:51 -0400 Received: from tnei.co.uk ([83.170.102.119]:53049 helo=mail.tnei-mail.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mxgoz-0002JR-KE for emacs-pretest-bug@gnu.org; Tue, 13 Oct 2009 08:49:46 -0400 Received: from mangw.ipsa-power.com ([83.138.33.114] helo=robert-laptop.tnei.co.uk) by mail.tnei-mail.com with esmtp (Exim 4.63) (envelope-from ) id 1MxgjB-0007zq-6e for emacs-pretest-bug@gnu.org; Tue, 13 Oct 2009 13:43:46 +0100 From: Robert Marshall To: emacs-pretest-bug@gnu.org Date: Tue, 13 Oct 2009 13:49:37 +0100 Message-ID: <87fx9nzcf2.fsf@tnei.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SA-Exim-Connect-IP: 83.138.33.114 X-SA-Exim-Mail-From: robert.marshall@tnei.co.uk Subject: 23.1.50; wrong-type-argument stringp nil in gdb X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.tnei-mail.com) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: If you download the program http://clivecooper.co.uk/tutorial/changetime.tar.gz from http://clivecooper.co.uk/tutorial/index.html (this was just used to get a small enough program which replicated the bug - I'm guessing there may be a issue with qt moc'ed file here) the tar file includes a compiled version of the program - but you should probably build it yourself though you'll need a qt dev environment. Run the program under gdb and when the program window appears interrupt it in gdb and once interrupted move one level up the call stack. You then get a wrong-type-argument stringp nil error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("//+" nil) gud-find-file(nil) gud-display-line(nil 83) gud-display-frame() gdb-frame-handler() If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/robert/emacs/etc/DEBUG for instructions. In GNU Emacs 23.1.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1) of 2009-10-13 on robert-laptop Windowing system distributor `The X.Org Foundation', version 11.0.10600000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: This version of GDB doesn't support non-stop mode. Turning it off. Command: up 1 error in process filter: gud-find-file: Wrong type argument: stringp, nil error in process filter: Wrong type argument: stringp, nil Mark set Load-path shadows: None found. Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug sendmail help-mode view debug gdb-mi bindat json gud easy-mmode comint ring multi-isearch parse-time vc-cvs cc-mode cc-fonts easymenu cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process gtk x-toolkit x multi-tty emacs) -- Robert A J Marshall, TNEI Services Ltd, 86-90 London Road, Manchester, M1 2PW web: http://IPSA-Power.com From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 26 03:20:09 2011 Received: (at 4714) by debbugs.gnu.org; 26 Dec 2011 08:20:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5my-0003rB-BM for submit@debbugs.gnu.org; Mon, 26 Dec 2011 03:20:08 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5mv-0003r2-2W for 4714@debbugs.gnu.org; Mon, 26 Dec 2011 03:20:06 -0500 Received: from [155.69.16.4] (port=38694 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rf5kS-0007IQ-0G; Mon, 26 Dec 2011 03:17:32 -0500 From: Chong Yidong To: Robert Marshall Subject: Re: 23.1.50; wrong-type-argument stringp nil in gdb Date: Mon, 26 Dec 2011 16:17:20 +0800 Message-ID: <87hb0nn3vz.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 4714 Cc: 4714@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("//+" nil) > gud-find-file(nil) > gud-display-line(nil 83) > gud-display-frame() > gdb-frame-handler() Sorry for the long delay in replying. I think this was a bug in the `gdb-source' function of gdb-ui.el, which should be fixed with the following patch. But gdb-ui.el has since been replaced with a different implementation, gdb-mi.el, in the trunk, which does not have this problem. *** lisp/progmodes/gdb-ui.el 2011-01-02 23:50:46 +0000 --- lisp/progmodes/gdb-ui.el 2011-12-26 08:15:50 +0000 *************** *** 1427,1442 **** ;; Do not use this except as an annotation handler. (defun gdb-source (args) ! (string-match gdb-source-spec-regexp args) ! ;; Extract the frame position from the marker. ! (setq gud-last-frame ! (cons ! (match-string 1 args) ! (string-to-number (match-string 2 args)))) ! (setq gdb-pc-address (match-string 3 args)) ! ;; cover for auto-display output which comes *before* ! ;; stopped annotation ! (if (eq gdb-output-sink 'inferior) (setq gdb-output-sink 'user))) (defun gdb-pre-prompt (ignored) "An annotation handler for `pre-prompt'. --- 1427,1442 ---- ;; Do not use this except as an annotation handler. (defun gdb-source (args) ! (when (string-match gdb-source-spec-regexp args) ! ;; Extract the frame position from the marker. ! (setq gud-last-frame ! (cons ! (match-string 1 args) ! (string-to-number (match-string 2 args)))) ! (setq gdb-pc-address (match-string 3 args)) ! ;; cover for auto-display output which comes *before* ! ;; stopped annotation ! (if (eq gdb-output-sink 'inferior) (setq gdb-output-sink 'user)))) (defun gdb-pre-prompt (ignored) "An annotation handler for `pre-prompt'. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 26 03:20:23 2011 Received: (at control) by debbugs.gnu.org; 26 Dec 2011 08:20:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5nD-0003rc-7w for submit@debbugs.gnu.org; Mon, 26 Dec 2011 03:20:23 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5nB-0003rV-0c for control@debbugs.gnu.org; Mon, 26 Dec 2011 03:20:21 -0500 Received: from [155.69.16.4] (port=38695 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rf5ki-0007In-OL for control@debbugs.gnu.org; Mon, 26 Dec 2011 03:17:49 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 4714 Date: Mon, 26 Dec 2011 16:17:43 +0800 Message-ID: <87y5tzlpaw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) close 4714 24.1 thanks From unknown Sun Aug 17 22:01:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 23 Jan 2012 12:24:02 +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