From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Len Weisberg Newsgroups: gmane.emacs.bugs Subject: bug#14588: 24.1; perldb broken Date: Mon, 10 Jun 2013 15:45:43 -0700 Message-ID: <51B65717.5090100@Weisberg.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370905382 9830 80.91.229.3 (10 Jun 2013 23:03:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2013 23:03:02 +0000 (UTC) To: 14588@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 01:03:00 2013 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 1UmB76-0004a1-01 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 01:03:00 +0200 Original-Received: from localhost ([::1]:50313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmB75-0003fW-LS for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Jun 2013 19:02:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmB70-0003fF-Jd for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 19:02:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmB6x-0006ER-Qu for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 19:02:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmB6x-0006EB-Ny for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 19:02:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UmB78-00023D-Q9 for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 19:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Len Weisberg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jun 2013 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14588 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.13709053737866 (code B ref -1); Mon, 10 Jun 2013 23:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jun 2013 23:02:53 +0000 Original-Received: from localhost ([127.0.0.1]:55551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UmB6z-00022l-7n for submit@debbugs.gnu.org; Mon, 10 Jun 2013 19:02:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39700) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UmAqv-0001Is-HP for submit@debbugs.gnu.org; Mon, 10 Jun 2013 18:46:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmAqa-0001HS-Th for submit@debbugs.gnu.org; Mon, 10 Jun 2013 18:46:00 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAqa-0001HO-Qc for submit@debbugs.gnu.org; Mon, 10 Jun 2013 18:45:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAqU-00085O-RA for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 18:45:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmAqP-0001F2-LE for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 18:45:50 -0400 Original-Received: from smtprelay0236.hostedemail.com ([216.40.44.236]:48099 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmAqP-0001Es-F3 for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2013 18:45:45 -0400 Original-Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 469D890FF0; Mon, 10 Jun 2013 22:45:44 +0000 (UTC) X-Session-Marker: 6C656E4077656973626572672E636F6D X-Panda: scanned! X-HE-Tag: geese40_31fd9fcbe2e12 X-Filterd-Recvd-Size: 5037 Original-Received: from [192.168.1.10] (c-50-148-128-134.hsd1.ca.comcast.net [50.148.128.134]) (Authenticated sender: len@weisberg.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Mon, 10 Jun 2013 22:45:43 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 10 Jun 2013 19:02:51 -0400 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 2.6.x X-Received-From: 140.186.70.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:74962 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': -------------------------------------------------------------- Here's the bug recipe: Generate a file in /tmp/args.pl containing: #! /usr/bin/perl $x = 3 ; print "here are the args: ", join (' ', @ARGV), "\n" ; then run: (perldb "/tmp/args.pl a b c") the result is: Current directory is /tmp/ here are the args: a -emacs b c Debugger finished -------------- Two serious problems: - inserts second arg '-emacs' - doesn't debug - just runs! (ie should stop at line 2, the first exectable line) --------------------- Second test (simpler, but even worse result:) (perldb "/tmp/args.pl") This gets: *gud* output: Current directory is ~/ and *Backtrace*: Debugger entered--Lisp error: (error "Can't use stdin as the script to debug") signal(error ("Can't use stdin as the script to debug")) error("Can't use stdin as the script to debug") gud-perldb-massage-args(nil nil) gud-common-init("/tmp/args.pl" gud-perldb-massage-args gud-perldb-marker-filter) perldb("/tmp/args.pl") eval((perldb "/tmp/args.pl") nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) --------------------- Also, a minor problem in that the perldb command does not initialize with the currently edited filename - it just uses previously used perldb command line. -------------------------------------------------------------- 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'. For information about debugging Emacs, please read the file /usr/share/emacs/24.1/etc/DEBUG. In GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12) of 2012-09-22 on batsu, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11300000 Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-y C-e C-x C-e C-b C-b C-y C-b C-b C-e C-x C-e C-c C-c ESC x r e p o r t - TAB Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set nil Mark set Entering debugger... Load-path shadows: