unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs Crashes When Commenting C Code
@ 2006-05-23  8:43 Herbert Euler
  2006-05-23 16:05 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Herbert Euler @ 2006-05-23  8:43 UTC (permalink / raw)


Hello,

Emacs crashes when I comment out a line in a C
source code.  I'm ready to post results to help
finding this bug, but I don't know what to post.
Here are some output from gdb:

1. If I start emacs with "r -q", Emacs won't crash.

2. If I start emacs with "r", Emacs crashes when
   I comment the line.  Typing "bt" in gdb shows:

(gdb) r
Starting program: /usr/local/bin/emacs
[Thread debugging using libthread_db enabled]
[New Thread -1218865472 (LWP 14217)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218865472 (LWP 14217)]
0x080cee6f in x_draw_glyph_string_foreground ()
(gdb) bt
#0  0x080cee6f in x_draw_glyph_string_foreground ()
#1  0x080d06f3 in x_draw_glyph_string ()
#2  0x080842cb in draw_glyphs ()
#3  0x0808653a in draw_phys_cursor_glyph ()
#4  0x080d43c6 in x_draw_window_cursor ()
#5  0x08086b5b in display_and_set_cursor ()
#6  0x080ce375 in x_update_window_end ()
#7  0x0805700a in update_window ()
#8  0x080584ff in update_window_tree ()
#9  0x08059928 in update_frame ()
#10 0x0807db32 in redisplay_internal ()
#11 0x0810bbec in read_char ()
#12 0x0810dff1 in read_key_sequence ()
#13 0x0810fbb1 in command_loop_1 ()
#14 0x08167f02 in internal_condition_case ()
#15 0x0810223e in command_loop_2 ()
#16 0x08167bdc in internal_catch ()
#17 0x0810201e in command_loop ()
#18 0x081020c4 in recursive_edit_1 ()
#19 0x081021d0 in Frecursive_edit ()
#20 0x08101123 in main ()
(gdb)

Could somebody tell me how to locate the bug?
Thanks.

Regards,
Guanpeng Xu

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs Crashes When Commenting C Code
  2006-05-23  8:43 Emacs Crashes When Commenting C Code Herbert Euler
@ 2006-05-23 16:05 ` Chong Yidong
  2006-05-24  6:05   ` Herbert Euler
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2006-05-23 16:05 UTC (permalink / raw)
  Cc: emacs-devel

> Emacs crashes when I comment out a line in a C
> source code.  I'm ready to post results to help
> finding this bug, but I don't know what to post.

I cannot reproduce this.  Can you give a recipe for producing this
crash, starting from emacs -q?  For example, I do:

1. emacs -q
2. C-x C-f foo.c RET
3. int main () {}
4. C-SPC M-<
4. M-x comment-region RET
5. No crash.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs Crashes When Commenting C Code
  2006-05-23 16:05 ` Chong Yidong
@ 2006-05-24  6:05   ` Herbert Euler
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert Euler @ 2006-05-24  6:05 UTC (permalink / raw)
  Cc: emacs-devel

>From: Chong Yidong <cyd@stupidchicken.com>
>To: "Herbert Euler" <herberteuler@hotmail.com>
>CC: emacs-devel@gnu.org
>Subject: Re: Emacs Crashes When Commenting C Code
>Date: Tue, 23 May 2006 12:05:29 -0400
>
> > Emacs crashes when I comment out a line in a C
> > source code.  I'm ready to post results to help
> > finding this bug, but I don't know what to post.
>
>I cannot reproduce this.  Can you give a recipe for producing this
>crash, starting from emacs -q?  For example, I do:
>
>1. emacs -q
>2. C-x C-f foo.c RET
>3. int main () {}
>4. C-SPC M-<
>4. M-x comment-region RET
>5. No crash.

I'm so sorry but I can't reproduce the same problem
after rebooting system today.  Perhaps when Emacs
crashed my system was in a nonconsistent state.

Regards,
Guanpeng Xu

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-24  6:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-23  8:43 Emacs Crashes When Commenting C Code Herbert Euler
2006-05-23 16:05 ` Chong Yidong
2006-05-24  6:05   ` Herbert Euler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).