GNU bug report logs - #3620
Color-theme related crash in Emacs 23 fixed in Aquamacs

Previous Next

Packages: emacs, ns;

Reported by: Väinö Järvelä <v <at> pp.inet.fi>

Date: Fri, 19 Jun 2009 14:55:05 UTC

Severity: normal

Merged with 2377

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

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 3620 in the body.
You can then email your comments to 3620 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#3620; Package emacs. (Fri, 19 Jun 2009 14:55:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Väinö Järvelä <v <at> pp.inet.fi>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 19 Jun 2009 14:55:06 GMT) Full text and rfc822 format available.

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

From: Väinö Järvelä <v <at> pp.inet.fi>
To: bug-gnu-emacs <at> gnu.org
Subject: Color-theme related crash in Emacs 23 fixed in Aquamacs
Date: Fri, 19 Jun 2009 17:51:04 +0300
Hi,

I have pinpointed a crash in the newest Emacs from version control
(git 6baef44). This crash has been reproduced on two of my computers.
It was random previously, but now that I rewrote my Emacs environment
and updated some packages it always crashes.

To reproduce the crash, compile Emacs from the commit above
(--with-ns), and get the following packages:

color-theme
    http://mirrors.zerg.biz/nongnu/color-theme/color-theme-6.6.0.tar.gz
zenburn
    http://www.brockman.se/software/zenburn/zenburn.el (MD5
cebc7d27f3ff6415260c49bf3655f332)

Then load the color-theme library and eval the following lines:
    (require 'color-theme)
    (color-theme-initialize)
    (load-library "zenburn")
    (zenburn)

This will result in an immediate crash with the following traceback
(sorry about not having a proper coredump):

Process:         Emacs [75779]
Path:
/Users/Kaali/Devel/Projects/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs
Identifier:      org.gnu.Emacs
Version:         Version 23.0.94 (9.0)
Code Type:       X86 (Native)
Parent Process:  bash [5017]

Date/Time:       2009-06-19 17:30:59.663 +0300
OS Version:      Mac OS X 10.5.7 (9J61)

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

Thread 0 Crashed:
0   libSystem.B.dylib             	0x96c3be42 __kill + 10
1   org.gnu.Emacs                 	0x000c3a25 fatal_error_signal + 446
(emacs.c:404)
2   libSystem.B.dylib             	0x96c3a2bb _sigtramp + 43
3   ???                           	0xffffffff 0 + 4294967295
4   libSystem.B.dylib             	0x96cae23a raise + 26
5   libSystem.B.dylib             	0x96cba679 abort + 73
6   org.gnu.Emacs                 	0x001f45ed ns_term_shutdown + 118
(nsterm.m:4015)
7   org.gnu.Emacs                 	0x000c625c shut_down_emacs + 282
(emacs.c:2259)
8   org.gnu.Emacs                 	0x000c39c2 fatal_error_signal + 347
(emacs.c:397)
9   libSystem.B.dylib             	0x96c3a2bb _sigtramp + 43
10  ???                           	0xffffffff 0 + 4294967295
11  org.gnu.Emacs                 	0x001f160e ns_draw_glyph_string +
800 (nsterm.m:3058)
12  org.gnu.Emacs                 	0x0004e180 draw_glyphs + 11031
(xdisp.c:20545)
13  org.gnu.Emacs                 	0x00054399 draw_phys_cursor_glyph +
133 (xdisp.c:22495)
14  org.gnu.Emacs                 	0x00054a12 erase_phys_cursor + 1310
(xdisp.c:22631)
15  org.gnu.Emacs                 	0x00054bab display_and_set_cursor +
376 (xdisp.c:22704)
16  org.gnu.Emacs                 	0x00054cc8 update_window_cursor +
124 (xdisp.c:22741)
17  org.gnu.Emacs                 	0x00054db3
update_cursor_in_window_tree + 132 (xdisp.c:22763)
18  org.gnu.Emacs                 	0x00054e12 x_update_cursor + 32
(xdisp.c:22778)
19  org.gnu.Emacs                 	0x001fe1c3 x_set_cursor_color + 188
(nsfns.m:417)
20  org.gnu.Emacs                 	0x00016dc2 x_set_frame_parameters +
1516 (frame.c:3023)
21  org.gnu.Emacs                 	0x00015cc5 Fmodify_frame_parameters
+ 155 (frame.c:2544)
22  org.gnu.Emacs                 	0x000bc495
Finternal_set_lisp_face_attribute + 5259 (xfaces.c:3482)
23  org.gnu.Emacs                 	0x00169903 Ffuncall + 1295 (eval.c:3055)
24  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
25  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
26  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
27  org.gnu.Emacs                 	0x00168e80 Fapply + 705 (eval.c:2533)
28  org.gnu.Emacs                 	0x00169715 Ffuncall + 801 (eval.c:3026)
29  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
30  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
31  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
32  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
33  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
34  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
35  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
36  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
37  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
38  org.gnu.Emacs                 	0x00169324 call1 + 32 (eval.c:2830)
39  org.gnu.Emacs                 	0x000bc68d
update_face_from_frame_parameter + 226 (xfaces.c:3552)
40  org.gnu.Emacs                 	0x001fe0e6 x_set_background_color +
609 (nsfns.m:394)
41  org.gnu.Emacs                 	0x00016b96 x_set_frame_parameters +
960 (frame.c:2980)
42  org.gnu.Emacs                 	0x00015cc5 Fmodify_frame_parameters
+ 155 (frame.c:2544)
43  org.gnu.Emacs                 	0x000bc495
Finternal_set_lisp_face_attribute + 5259 (xfaces.c:3482)
44  org.gnu.Emacs                 	0x00169903 Ffuncall + 1295 (eval.c:3055)
45  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
46  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
47  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
48  org.gnu.Emacs                 	0x00168e80 Fapply + 705 (eval.c:2533)
49  org.gnu.Emacs                 	0x00169715 Ffuncall + 801 (eval.c:3026)
50  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
51  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
52  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
53  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
54  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
55  org.gnu.Emacs                 	0x00169b25 Ffuncall + 1841 (eval.c:3091)
56  org.gnu.Emacs                 	0x001b9df9 Fbyte_code + 3136 (bytecode.c:678)
57  org.gnu.Emacs                 	0x0016a144 funcall_lambda + 873 (eval.c:3232)
58  org.gnu.Emacs                 	0x00169d74 apply_lambda + 262 (eval.c:3156)
59  org.gnu.Emacs                 	0x00168a33 Feval + 2073 (eval.c:2418)
60  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
61  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
62  org.gnu.Emacs                 	0x00166b38
internal_lisp_condition_case + 555 (eval.c:1457)
63  org.gnu.Emacs                 	0x00166907 Fcondition_case + 80 (eval.c:1399)
64  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
65  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
66  org.gnu.Emacs                 	0x00164bbf Fif + 107 (eval.c:399)
67  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
68  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
69  org.gnu.Emacs                 	0x00166188 Flet + 662 (eval.c:1090)
70  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
71  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
72  org.gnu.Emacs                 	0x00166294 Fwhile + 242 (eval.c:1109)
73  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
74  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
75  org.gnu.Emacs                 	0x00166188 Flet + 662 (eval.c:1090)
76  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
77  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
78  org.gnu.Emacs                 	0x00166631 internal_catch + 215 (eval.c:1248)
79  org.gnu.Emacs                 	0x00166553 Fcatch + 68 (eval.c:1217)
80  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
81  org.gnu.Emacs                 	0x001686dc Feval + 1218 (eval.c:2361)
82  org.gnu.Emacs                 	0x00168b0d Feval + 2291 (eval.c:2434)
83  org.gnu.Emacs                 	0x00168b0d Feval + 2291 (eval.c:2434)
84  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
85  org.gnu.Emacs                 	0x00166188 Flet + 662 (eval.c:1090)
86  org.gnu.Emacs                 	0x0016857c Feval + 866 (eval.c:2323)
87  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
88  org.gnu.Emacs                 	0x0016a0f8 funcall_lambda + 797 (eval.c:3225)
89  org.gnu.Emacs                 	0x00169d74 apply_lambda + 262 (eval.c:3156)
90  org.gnu.Emacs                 	0x00168b3e Feval + 2340 (eval.c:2436)
91  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
92  org.gnu.Emacs                 	0x0016a0f8 funcall_lambda + 797 (eval.c:3225)
93  org.gnu.Emacs                 	0x00169d74 apply_lambda + 262 (eval.c:3156)
94  org.gnu.Emacs                 	0x00168b3e Feval + 2340 (eval.c:2436)
95  org.gnu.Emacs                 	0x00164c97 Fprogn + 44 (eval.c:450)
96  org.gnu.Emacs                 	0x0016a0f8 funcall_lambda + 797 (eval.c:3225)
97  org.gnu.Emacs                 	0x00169d74 apply_lambda + 262 (eval.c:3156)
98  org.gnu.Emacs                 	0x00168b3e Feval + 2340 (eval.c:2436)
99  org.gnu.Emacs                 	0x00194f4c readevalloop + 1459 (lread.c:1785)
100 org.gnu.Emacs                 	0x00195313 Feval_region + 271 (lread.c:1885)
101 org.gnu.Emacs                 	0x00169903 Ffuncall + 1295 (eval.c:3055)
102 org.gnu.Emacs                 	0x001641a2 Fcall_interactively +
8801 (callint.c:868)
103 org.gnu.Emacs                 	0x001698b8 Ffuncall + 1220 (eval.c:3051)
104 org.gnu.Emacs                 	0x00169374 call3 + 32 (eval.c:2875)
105 org.gnu.Emacs                 	0x000dadfc Fcommand_execute + 792
(keyboard.c:10449)
106 org.gnu.Emacs                 	0x000db21d
Fexecute_extended_command + 1029 (keyboard.c:10562)
107 org.gnu.Emacs                 	0x0016985e Ffuncall + 1130 (eval.c:3045)
108 org.gnu.Emacs                 	0x001641a2 Fcall_interactively +
8801 (callint.c:868)
109 org.gnu.Emacs                 	0x001698b8 Ffuncall + 1220 (eval.c:3051)
110 org.gnu.Emacs                 	0x00169374 call3 + 32 (eval.c:2875)
111 org.gnu.Emacs                 	0x000dadfc Fcommand_execute + 792
(keyboard.c:10449)
112 org.gnu.Emacs                 	0x000ca205 command_loop_1 + 7615
(keyboard.c:1909)
113 org.gnu.Emacs                 	0x00166ca0 internal_condition_case
+ 304 (eval.c:1512)
114 org.gnu.Emacs                 	0x000c8076 command_loop_2 + 53
(keyboard.c:1359)
115 org.gnu.Emacs                 	0x00166631 internal_catch + 215 (eval.c:1248)
116 org.gnu.Emacs                 	0x000c7fff command_loop + 207
(keyboard.c:1339)
117 org.gnu.Emacs                 	0x000c75d3 recursive_edit_1 + 181
(keyboard.c:953)
118 org.gnu.Emacs                 	0x000c77dc Frecursive_edit + 323
(keyboard.c:1016)
119 org.gnu.Emacs                 	0x000c5ae4 main + 6412 (emacs.c:1854)
120 org.gnu.Emacs                 	0x00002faa start + 54

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x000c3874  ecx: 0xbfff9b1c  edx: 0x96c3be42
  edi: 0x000bb00a  esi: 0x00000006  ebp: 0xbfff9b38  esp: 0xbfff9b1c
   ss: 0x0000001f  efl: 0x00000282  eip: 0x96c3be42   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x003ea040


The same bug is fixed in Aquamacs, as applying a commit from there
removes the crash. The commit is 82f7177 in
git://github.com/davidswelt/aquamacs-emacs.git

It applies cleanly to the emacs commit listed above.


Regards,
-- 
Väinö Järvelä




bug reassigned from package `emacs' to `emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 19 Jun 2009 18:50:07 GMT) Full text and rfc822 format available.

Merged 2377 3620. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 19 Jun 2009 18:50:07 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#3620; Package emacs,ns. (Sat, 09 Jan 2010 19:03:01 GMT) Full text and rfc822 format available.

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

From: David Reitter <david.reitter <at> gmail.com>
To: v <at> pp.inet.fi
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 3620 <at> debbugs.gnu.org
Subject: Re: Color-theme related crash in Emacs 23 fixed in Aquamacs 
Date: Sat, 9 Jan 2010 14:01:59 -0500
[Message part 1 (text/plain, inline)]
Hi  Väinö,

> I have pinpointed a crash in the newest Emacs from version control
> (git 6baef44). This crash has been reproduced on two of my computers.
> It was random previously, but now that I rewrote my Emacs environment
> and updated some packages it always crashes.

Could you please verify whether this bug has been fixed in the latest Emacs revisions?

I believe that, in the mean-time, Emacs saw a different commit (I think Adrian did this in response to the underlying color bug or a comment from me) that was supposed to address this.

Thanks
- David



Begin forwarded message:

> From: Chong Yidong <cyd <at> stupidchicken.com>
> Date: January 6, 2010 11:58:36 AM EST
> To: David Reitter <david.reitter <at> gmail.com>
> Subject: Re: Color-theme related crash in Emacs 23 fixed in Aquamacs
> 
> Hi David,
> 
> 
>  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3620
> 
> Could you check if this patch has been applied to Emacs yet?  If no,
> please do so.

[PGP.sig (application/pgp-signature, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#3620; Package emacs,ns. (Sun, 14 Feb 2010 07:19:01 GMT) Full text and rfc822 format available.

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

From: Väinö Järvelä <v <at> pp.inet.fi>
To: David Reitter <david.reitter <at> gmail.com>
Cc: Chong Yidong <cyd <at> stupidchicken.com>, 3620 <at> debbugs.gnu.org
Subject: Re: Color-theme related crash in Emacs 23 fixed in Aquamacs
Date: Sun, 14 Feb 2010 09:05:28 +0200
Hi David,

Sorry that this took so long. I compiled commit 9a339f5 and it works
fine. By reverting d926ad3, it crashes again, so yeah, Adrian fixed
it.

-- 
Väinö



On Sat, Jan 9, 2010 at 21:01, David Reitter <david.reitter <at> gmail.com> wrote:
> Hi  Väinö,
>
>> I have pinpointed a crash in the newest Emacs from version control
>> (git 6baef44). This crash has been reproduced on two of my computers.
>> It was random previously, but now that I rewrote my Emacs environment
>> and updated some packages it always crashes.
>
> Could you please verify whether this bug has been fixed in the latest Emacs revisions?
>
> I believe that, in the mean-time, Emacs saw a different commit (I think Adrian did this in response to the underlying color bug or a comment from me) that was supposed to address this.
>
> Thanks
> - David
>
>
>
> Begin forwarded message:
>
>> From: Chong Yidong <cyd <at> stupidchicken.com>
>> Date: January 6, 2010 11:58:36 AM EST
>> To: David Reitter <david.reitter <at> gmail.com>
>> Subject: Re: Color-theme related crash in Emacs 23 fixed in Aquamacs
>>
>> Hi David,
>>
>>
>>  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3620
>>
>> Could you check if this patch has been applied to Emacs yet?  If no,
>> please do so.
>
>




Reply sent to David Reitter <david.reitter <at> gmail.com>:
You have taken responsibility. (Sun, 14 Feb 2010 14:05:03 GMT) Full text and rfc822 format available.

Notification sent to Väinö Järvelä <v <at> pp.inet.fi>:
bug acknowledged by developer. (Sun, 14 Feb 2010 14:05:03 GMT) Full text and rfc822 format available.

Message #20 received at 3620-done <at> debbugs.gnu.org (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: 3620-done <at> debbugs.gnu.org
Subject: Re: Color-theme related crash in Emacs 23 fixed in Aquamacs
Date: Sun, 14 Feb 2010 09:04:36 -0500
[Message part 1 (text/plain, inline)]
On Feb 14, 2010, at 2:05 AM, Väinö Järvelä wrote:

> Hi David,
> 
> Sorry that this took so long. I compiled commit 9a339f5 and it works
> fine. By reverting d926ad3, it crashes again, so yeah, Adrian fixed
> it.
> 
> -- 
> Väinö
> 
> 
> 
> On Sat, Jan 9, 2010 at 21:01, David Reitter <david.reitter <at> gmail.com> wrote:
>> Hi  Väinö,
>> 
>>> I have pinpointed a crash in the newest Emacs from version control
>>> (git 6baef44). This crash has been reproduced on two of my computers.
>>> It was random previously, but now that I rewrote my Emacs environment
>>> and updated some packages it always crashes.
>> 
>> Could you please verify whether this bug has been fixed in the latest Emacs revisions?
>> 
>> I believe that, in the mean-time, Emacs saw a different commit (I think Adrian did this in response to the underlying color bug or a comment from me) that was supposed to address this.
>> 
>> Thanks
>> - David
>> 
>> 
>> 
>> Begin forwarded message:
>> 
>>> From: Chong Yidong <cyd <at> stupidchicken.com>
>>> Date: January 6, 2010 11:58:36 AM EST
>>> To: David Reitter <david.reitter <at> gmail.com>
>>> Subject: Re: Color-theme related crash in Emacs 23 fixed in Aquamacs
>>> 
>>> Hi David,
>>> 
>>> 
>>>  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3620
>>> 
>>> Could you check if this patch has been applied to Emacs yet?  If no,
>>> please do so.
>> 
>> 

[PGP.sig (application/pgp-signature, inline)]

Reply sent to David Reitter <david.reitter <at> gmail.com>:
You have taken responsibility. (Sun, 14 Feb 2010 14:05:03 GMT) Full text and rfc822 format available.

Notification sent to Matt Moriarity <matt.moriarity <at> gmail.com>:
bug acknowledged by developer. (Sun, 14 Feb 2010 14:05:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 15 Mar 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 96 days ago.

Previous Next


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