GNU bug report logs - #16665
Hitting C-c C-c in *shell* causes segmentation fault

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 6 Feb 2014 06:03:01 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16665 in the body.
You can then email your comments to 16665 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Thu, 06 Feb 2014 06:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 06 Feb 2014 06:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Hitting C-c C-c in *shell* causes segmentation fault
Date: Thu, 06 Feb 2014 10:57:02 +0800
Hitting C-c C-c in *shell* causes segmentation fault.
Reproducible every time.
The message always starts with
  sh: syntax error near unexpected token `1'
and ends with
  Process shell segmentation fault
# grep nobody /etc/passwd
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
# su - nobody
No directory, logging in with HOME=/
$ emacs -nw -f shell
sh-4.3$   C-c C-c

sh-4.3$ sh: syntax error near unexpected token `1'
sh-4.3$ sh: $'\b\210D\020\b\035\v\b\340\313': command not found
sh-4.3$ sh: $'\b\300\347': command not found ...
sh-4.3$ sh: syntax error near unexpected token `('
sh-4.3$ >
Process shell segmentation fault


# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Mar  5  2012 /bin/sh -> bash
$ bash --version
GNU bash, version 4.3.0(1)-rc1 (i486-pc-linux-gnu)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Thu, 06 Feb 2014 17:08:01 GMT) Full text and rfc822 format available.

Message #8 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Dan Jacobson <jidanni <at> jidanni.org>
Cc: 16665 <at> debbugs.gnu.org
Subject: Re: bug#16665: Hitting C-c C-c in *shell* causes segmentation fault
Date: Thu, 06 Feb 2014 12:07:31 -0500
The shell is segfaulting, therefore seems like a shell bug.




Added tag(s) notabug and wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 06 Feb 2014 17:08:02 GMT) Full text and rfc822 format available.

Added tag(s) unreproducible and moreinfo; removed tag(s) notabug and wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 06 Feb 2014 17:16:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Thu, 06 Feb 2014 23:12:02 GMT) Full text and rfc822 format available.

Message #15 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: bug-bash <at> gnu.org, rgm <at> gnu.org
Cc: 16665 <at> debbugs.gnu.org
Subject: Hitting C-c C-c in Emacs' *shell* causes segmentation fault
Date: Fri, 07 Feb 2014 07:11:12 +0800
Dear Bug-Bash gentlemen,
http://debbugs.gnu.org/16665 says it seems like a bash bug.
Please have a look if you are also an emacs person.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Fri, 07 Feb 2014 03:18:02 GMT) Full text and rfc822 format available.

Message #18 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Chet Ramey <chet.ramey <at> case.edu>
To: Dan Jacobson <jidanni <at> jidanni.org>, bug-bash <at> gnu.org, rgm <at> gnu.org
Cc: 16665 <at> debbugs.gnu.org, chet.ramey <at> case.edu
Subject: Re: Hitting C-c C-c in Emacs' *shell* causes segmentation fault
Date: Thu, 06 Feb 2014 22:16:56 -0500
On 2/6/14, 6:11 PM, Dan Jacobson wrote:
> Dear Bug-Bash gentlemen,
> http://debbugs.gnu.org/16665 says it seems like a bash bug.
> Please have a look if you are also an emacs person.

OK, I'll bite.  What is C-c C-c supposed to do?  It looks like it just
spews a bunch of garbage to your screen.  Is that the intent?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet <at> case.edu    http://cnswww.cns.cwru.edu/~chet/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Fri, 07 Feb 2014 03:26:02 GMT) Full text and rfc822 format available.

Message #21 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: chet.ramey <at> case.edu
Cc: rgm <at> gnu.org, bug-bash <at> gnu.org, 16665 <at> debbugs.gnu.org
Subject: Re: Hitting C-c C-c in Emacs' *shell* causes segmentation fault
Date: Fri, 07 Feb 2014 11:25:42 +0800
>>>>> "CR" == Chet Ramey <chet.ramey <at> case.edu> writes:

CR> OK, I'll bite.  What is C-c C-c supposed to do?  It looks like it just
CR> spews a bunch of garbage to your screen.  Is that the intent?

C-c C-c runs the command comint-interrupt-subjob, which is an
interactive compiled Lisp function in `comint.el'.

(comint-interrupt-subjob)

Interrupt the current subjob.
This command also kills the pending input
between the process mark and point.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Fri, 07 Feb 2014 03:29:02 GMT) Full text and rfc822 format available.

Message #24 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Chris Down <chris <at> chrisdown.name>
To: Chet Ramey <chet.ramey <at> case.edu>
Cc: rgm <at> gnu.org, 16665 <at> debbugs.gnu.org, bug-bash <at> gnu.org,
 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: Hitting C-c C-c in Emacs' *shell* causes segmentation fault
Date: Fri, 7 Feb 2014 11:27:54 +0800
[Message part 1 (text/plain, inline)]
On 2014-02-06 22:16:56 -0500, Chet Ramey wrote:
> OK, I'll bite.  What is C-c C-c supposed to do?  It looks like it just
> spews a bunch of garbage to your screen.  Is that the intent?

According to the Emacs manual[0]:

> Interrupt the shell or its current subjob if any
> (comint-interrupt-subjob). This command also kills any shell input
> pending in the shell buffer and not yet sent.

I should disclaim that I'm not an Emacs user, so it's quite possible
that I am looking at the wrong part of the manual.

[0]: http://www.gnu.org/software/emacs/manual/html_node/emacs/Shell-Mode.html
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Fri, 07 Feb 2014 03:33:02 GMT) Full text and rfc822 format available.

Message #27 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: chet.ramey <at> case.edu
Cc: bug-bash <at> gnu.org, 16665 <at> debbugs.gnu.org
Subject: Re: Hitting C-c C-c in Emacs' *shell* causes segmentation fault
Date: Thu, 06 Feb 2014 22:32:48 -0500
Chet Ramey wrote:

> What is C-c C-c supposed to do?

It pretty much just sends SIGINT.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16665; Package emacs. (Fri, 07 Feb 2014 14:14:01 GMT) Full text and rfc822 format available.

Message #30 received at 16665 <at> debbugs.gnu.org (full text, mbox):

From: Chet Ramey <chet.ramey <at> case.edu>
To: Dan Jacobson <jidanni <at> jidanni.org>
Cc: rgm <at> gnu.org, 16665 <at> debbugs.gnu.org, bug-bash <at> gnu.org, chet.ramey <at> case.edu
Subject: Re: Hitting C-c C-c in Emacs' *shell* causes segmentation fault
Date: Fri, 07 Feb 2014 09:13:23 -0500
On 2/6/14 10:25 PM, Dan Jacobson wrote:
>>>>>> "CR" == Chet Ramey <chet.ramey <at> case.edu> writes:
> 
> CR> OK, I'll bite.  What is C-c C-c supposed to do?  It looks like it just
> CR> spews a bunch of garbage to your screen.  Is that the intent?
> 
> C-c C-c runs the command comint-interrupt-subjob, which is an
> interactive compiled Lisp function in `comint.el'.

Thanks, that was what I needed.  I fixed this for bash-4.3 release.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet <at> case.edu    http://cnswww.cns.cwru.edu/~chet/




Removed tag(s) unreproducible and moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 07 Feb 2014 16:58:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 16665 <at> debbugs.gnu.org and Dan Jacobson <jidanni <at> jidanni.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 07 Feb 2014 16:58:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Mar 2014 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.