GNU bug report logs - #3082
Crash in ns_draw_glyph_string

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Wed, 22 Apr 2009 17:30:02 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.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 3082 in the body.
You can then email your comments to 3082 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-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3082; Package emacs. (Wed, 22 Apr 2009 17:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 22 Apr 2009 17:30:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: Crash in ns_draw_glyph_string
Date: Wed, 22 Apr 2009 13:22:31 -0400
Emacs -Q
M-x list-faces-display
C-x o
C-x 1
M-: (setq scroll-step 1 scroll-conservatively 1)
(enlarge frame a bit)

Now scroll down (with Down/Home) repeatedly.  In two out of three  
trials this produced the crash below for me.





Process:         Emacs [27021]
Path:            /Users/dr/sv.aquamacs-emacs.git/nextstep/Emacs.app/ 
Contents/MacOS/Emacs
Identifier:      org.gnu.Emacs
Version:         Version 23.0.92 (9.0)
Code Type:       X86 (Native)
Parent Process:  bash [27007]

Date/Time:       2009-04-22 13:15:56.129 -0400
OS Version:      Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c0000003
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             	0x94f84e42 __kill + 10
1   org.gnu.Emacs                 	0x000b582a fatal_error_signal + 314
2   libSystem.B.dylib             	0x94f832bb _sigtramp + 43
3   ???                           	0xffffffff 0 + 4294967295
4   libSystem.B.dylib             	0x94ff723a raise + 26
5   libSystem.B.dylib             	0x95003679 abort + 73
6   org.gnu.Emacs                 	0x001a7d65 ns_term_shutdown + 117
7   org.gnu.Emacs                 	0x000b587f fatal_error_signal + 399
8   libSystem.B.dylib             	0x94f832bb _sigtramp + 43
9   ???                           	0xffffffff 0 + 4294967295
10  org.gnu.Emacs                 	0x001b4383 ns_draw_glyph_string +  
2387
11  org.gnu.Emacs                 	0x0004f415 draw_glyphs + 293
12  org.gnu.Emacs                 	0x00054ee9 show_mouse_face + 409
13  org.gnu.Emacs                 	0x00056dda note_mouse_highlight +  
6698
14  org.gnu.Emacs                 	0x001a5d11 ns_frame_up_to_date + 129
15  org.gnu.Emacs                 	0x00047417 redisplay_internal + 2087
16  org.gnu.Emacs                 	0x000c68b5 read_char + 4101
17  org.gnu.Emacs                 	0x000c9103 read_key_sequence + 3107
18  org.gnu.Emacs                 	0x000cb480 command_loop_1 + 656
19  org.gnu.Emacs                 	0x0013baed internal_condition_case  
+ 253
20  org.gnu.Emacs                 	0x000b7798 command_loop_2 + 72
21  org.gnu.Emacs                 	0x0013b9cc internal_catch + 172
22  org.gnu.Emacs                 	0x000be27b recursive_edit_1 + 363
23  org.gnu.Emacs                 	0x000be434 Frecursive_edit + 324
24  org.gnu.Emacs                 	0x000b68fb main + 4059
25  org.gnu.Emacs                 	0x00002b46 start + 54

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x000b56fe  ecx: 0xbfffd27c  edx: 0x94f84e42
  edi: 0x00000006  esi: 0x00000006  ebp: 0xbfffd298  esp: 0xbfffd27c
   ss: 0x0000001f  efl: 0x00000282  eip: 0x94f84e42   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0xc0000003


Process:         Emacs [27037]
Path:            /Users/dr/sv.aquamacs-emacs.git/nextstep/Emacs.app/ 
Contents/MacOS/Emacs
Identifier:      org.gnu.Emacs
Version:         Version 23.0.92 (9.0)
Code Type:       X86 (Native)
Parent Process:  bash [27007]

Date/Time:       2009-04-22 13:18:17.570 -0400
OS Version:      Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c0000003
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             	0x94f84e42 __kill + 10
1   org.gnu.Emacs                 	0x000b582a fatal_error_signal + 314
2   libSystem.B.dylib             	0x94f832bb _sigtramp + 43
3   ???                           	0xffffffff 0 + 4294967295
4   libSystem.B.dylib             	0x94ff723a raise + 26
5   libSystem.B.dylib             	0x95003679 abort + 73
6   org.gnu.Emacs                 	0x001a7d65 ns_term_shutdown + 117
7   org.gnu.Emacs                 	0x000b587f fatal_error_signal + 399
8   libSystem.B.dylib             	0x94f832bb _sigtramp + 43
9   ???                           	0xffffffff 0 + 4294967295
10  org.gnu.Emacs                 	0x001b4383 ns_draw_glyph_string +  
2387
11  org.gnu.Emacs                 	0x0004f415 draw_glyphs + 293
12  org.gnu.Emacs                 	0x00054ee9 show_mouse_face + 409
13  org.gnu.Emacs                 	0x00056dda note_mouse_highlight +  
6698
14  org.gnu.Emacs                 	0x001aa692 -[EmacsView mouseMoved:]  
+ 338
15  com.apple.AppKit              	0x90246ddd -[NSWindow sendEvent:] +  
8511
16  com.apple.AppKit              	0x90213435 -[NSApplication  
sendEvent:] + 4713
17  org.gnu.Emacs                 	0x001a7ed5 -[EmacsApp sendEvent:] +  
165
18  com.apple.AppKit              	0x9017069f -[NSApplication run] + 847
19  org.gnu.Emacs                 	0x001a62c3 ns_read_socket + 307
20  org.gnu.Emacs                 	0x000c0a21 read_avail_input + 305
21  org.gnu.Emacs                 	0x000c0b95 gobble_input + 69
22  org.gnu.Emacs                 	0x001a6694 ns_select + 484
23  org.gnu.Emacs                 	0x00185c92  
wait_reading_process_output + 1090
24  org.gnu.Emacs                 	0x000047f6 sit_for + 214
25  org.gnu.Emacs                 	0x000c75ed read_char + 7485
26  org.gnu.Emacs                 	0x000c9103 read_key_sequence + 3107
27  org.gnu.Emacs                 	0x000cb480 command_loop_1 + 656







Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3082; Package emacs. (Thu, 23 Apr 2009 01:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 23 Apr 2009 01:45:02 GMT) Full text and rfc822 format available.

Message #10 received at 3082 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Adrian Robert <Adrian.B.Robert <at> gmail.com>
Cc: 3082 <at> debbugs.gnu.org
Subject: Re: Crash in ns_draw_glyph_string
Date: Wed, 22 Apr 2009 21:40:14 -0400
Hi Adrian,

Could you take a look at bug#3082?  Thanks.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3082


David Reitter <david.reitter <at> gmail.com> wrote:

> Emacs -Q
> M-x list-faces-display
> C-x o
> C-x 1
> M-: (setq scroll-step 1 scroll-conservatively 1)
> (enlarge frame a bit)
>
> Now scroll down (with Down/Home) repeatedly.  In two out of three
> trials this produced the crash below for me.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3082; Package emacs. (Fri, 24 Apr 2009 03:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adrian Robert <adrian.b.robert <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 24 Apr 2009 03:30:04 GMT) Full text and rfc822 format available.

Message #15 received at 3082 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Adrian Robert <adrian.b.robert <at> gmail.com>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 3082 <at> debbugs.gnu.org, David Reitter <david.reitter <at> gmail.com>
Subject: Re: Crash in ns_draw_glyph_string
Date: Fri, 24 Apr 2009 09:11:08 +0545
On Apr 23, 2009, at 7:25 AM, Chong Yidong wrote:

> Hi Adrian,
>
> Could you take a look at bug#3082?  Thanks.
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3082
>
>
> David Reitter <david.reitter <at> gmail.com> wrote:
>
>> Emacs -Q
>> M-x list-faces-display
>> C-x o
>> C-x 1
>> M-: (setq scroll-step 1 scroll-conservatively 1)
>> (enlarge frame a bit)
>>
>> Now scroll down (with Down/Home) repeatedly.  In two out of three
>> trials this produced the crash below for me.


I can't get this to reproduce when -O2 not given, but the stack trace  
is incomplete when it is.  David, is this crash frequently occurring  
in other contexts, or only through the specific recipe you give?





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3082; Package emacs. (Fri, 24 Apr 2009 05:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 24 Apr 2009 05:10:04 GMT) Full text and rfc822 format available.

Message #20 received at 3082 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Adrian Robert <adrian.b.robert <at> gmail.com>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 3082 <at> debbugs.gnu.org
Subject: Re: Crash in ns_draw_glyph_string
Date: Fri, 24 Apr 2009 01:02:42 -0400
[Message part 1 (text/plain, inline)]
On Apr 23, 2009, at 11:26 PM, Adrian Robert wrote:
>> David Reitter <david.reitter <at> gmail.com> wrote:
>>
>>> Emacs -Q
>>> M-x list-faces-display
>>> C-x o
>>> C-x 1
>>> M-: (setq scroll-step 1 scroll-conservatively 1)
>>> (enlarge frame a bit)
>>>
>>> Now scroll down (with Down/Home) repeatedly.  In two out of three
>>> trials this produced the crash below for me.
>
>
> I can't get this to reproduce when -O2 not given, but the stack  
> trace is incomplete when it is.  David, is this crash frequently  
> occurring in other contexts, or only through the specific recipe you  
> give?

I've had these crashes a lot when experimenting with many faces being  
displayed - but only then; not really (or rarely) during normal use.   
I've been using -O3.

Unfortunately I couldn't reproduce under gdb the other day.
[smime.p7s (application/pkcs7-signature, attachment)]

bug reassigned from package `emacs' to `emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sun, 03 May 2009 00:00:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3082; Package emacs,ns. (Mon, 03 Feb 2014 00:13:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: Chong Yidong <cyd <at> stupidchicken.com>,
 Adrian Robert <adrian.b.robert <at> gmail.com>, 3082 <at> debbugs.gnu.org
Subject: Re: bug#3082: Crash in ns_draw_glyph_string
Date: Sun, 02 Feb 2014 16:11:05 -0800
David Reitter <david.reitter <at> gmail.com> writes:

> On Apr 23, 2009, at 11:26 PM, Adrian Robert wrote:
>>> David Reitter <david.reitter <at> gmail.com> wrote:
>>>
>>>> Emacs -Q
>>>> M-x list-faces-display
>>>> C-x o
>>>> C-x 1
>>>> M-: (setq scroll-step 1 scroll-conservatively 1)
>>>> (enlarge frame a bit)
>>>>
>>>> Now scroll down (with Down/Home) repeatedly.  In two out of three
>>>> trials this produced the crash below for me.
>>
>>
>> I can't get this to reproduce when -O2 not given, but the stack
>> trace is incomplete when it is.  David, is this crash frequently
>> occurring in other contexts, or only through the specific recipe you
>> give?
>
> I've had these crashes a lot when experimenting with many faces being
> displayed - but only then; not really (or rarely) during normal use.
> I've been using -O3.
>
> Unfortunately I couldn't reproduce under gdb the other day.

Is this problem still present in Emacs 24?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3082; Package emacs,ns. (Mon, 03 Feb 2014 07:22:01 GMT) Full text and rfc822 format available.

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

From: Adrian Robert <adrian.b.robert <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: David Reitter <david.reitter <at> gmail.com>,
 Chong Yidong <cyd <at> stupidchicken.com>, 3082 <at> debbugs.gnu.org
Subject: Re: bug#3082: Crash in ns_draw_glyph_string
Date: Mon, 3 Feb 2014 09:21:45 +0200
I cannot reproduce it with -Os or -O2 or -O3.  I am not sure if the scrolling is working correctly (there are jumps when there don’t need to be) but that would be a different bug report.


On 2014.2.3, at 02:11, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:

> David Reitter <david.reitter <at> gmail.com> writes:
> 
>> On Apr 23, 2009, at 11:26 PM, Adrian Robert wrote:
>>>> David Reitter <david.reitter <at> gmail.com> wrote:
>>>> 
>>>>> Emacs -Q
>>>>> M-x list-faces-display
>>>>> C-x o
>>>>> C-x 1
>>>>> M-: (setq scroll-step 1 scroll-conservatively 1)
>>>>> (enlarge frame a bit)
>>>>> 
>>>>> Now scroll down (with Down/Home) repeatedly.  In two out of three
>>>>> trials this produced the crash below for me.
>>> 
>>> 
>>> I can't get this to reproduce when -O2 not given, but the stack
>>> trace is incomplete when it is.  David, is this crash frequently
>>> occurring in other contexts, or only through the specific recipe you
>>> give?
>> 
>> I've had these crashes a lot when experimenting with many faces being
>> displayed - but only then; not really (or rarely) during normal use.
>> I've been using -O3.
>> 
>> Unfortunately I couldn't reproduce under gdb the other day.
> 
> Is this problem still present in Emacs 24?
> 
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>  bloggy blog http://lars.ingebrigtsen.no/





bug closed, send any further explanations to 3082 <at> debbugs.gnu.org and David Reitter <david.reitter <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 25 Dec 2015 23:02: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, 23 Jan 2016 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 150 days ago.

Previous Next


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