Subject: Re: bug#12969: 24.3.50; NS Crash when running applescript

From: Jan Djärv <[email-masked]>
Date: Sun, 2 Dec 2012 13:49:38 +0100

Hello.

27 nov 2012 kl. 20:24 skrev Ivan Andrus <[email-masked]>:

> Sorry, somehow I missed that you had replied.  Here are the results:
> 
> (gdb) fr 2
> #2  0x00000001001912eb in ns_do_applescript [inlined] () at /Users/gvol/vcs=
> /emacs/local/src/nsfns.m:2059
> 2059				     [NSString stringWithUTF8String: SSDATA (script)]];
> Current language:  auto; currently objective-c
> (gdb) p script
> $1 =3D 4320145466
> (gdb) xtype
> Lisp_Symbol
> (gdb) pp script
> nil

You say Emacs where idle when this happened, do you have some applescript running on a timer or something?  The event for applescript must come from somewhere.  Not ignoring the fact that Emacs may interpret events wrong.

However, we can guard against nil for the script argument, it should not happen.

	Jan D.