osacompile crashes

Originator:boredzo
Number:rdar://6798194 Date Originated:2009-04-16T09:32-0700
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 3.1.1
Classification:Crash Reproducible:Sometimes
 
Summary:
osacompile crashes instead of generating a compiled script, failing my build.

Steps to Reproduce:
1. ~/growl-stable/Extras/GrowlAction% osacompile main.applescript

Expected Results:
main.scpt

Actual Results:
Bus error.

Regression:
It worked before I removed a function that we weren't using and AppleScript doesn't require: http://growl.info/hg/growl-development/rev/54eff2ab48e0

Notes:
The specific script is here: http://growl.info/hg/growl/raw-file/54eff2ab48e0/Extras/GrowlAction/main.applescript

-- The crash log, minus the “Binary Images” section, follows --

Process:         osacompile [22317]
Path:            /usr/bin/osacompile
Identifier:      osacompile
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  zsh [19611]

Date/Time:       2009-04-16 09:23:09.032 -0700
OS Version:      Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000005
Crashed Thread:  0

Thread 0 Crashed:
0   com.apple.CoreFoundation      	0x9204c2b4 CFRetain + 36
1   com.apple.CoreFoundation      	0x9201b874 CFDictionarySetValue + 1012
2   com.apple.applescript         	0x0033383a CFURLCreateFromApplicationNameAndContainer(__CFString const*, TUASValue*, unsigned long) + 2238
3   com.apple.applescript         	0x00333ad5 CFURLCreateFromApplicationNameAndContainer(TUASUnicodeText*, TUASValue*, unsigned long) + 67
4   com.apple.applescript         	0x00360614 FasDumpApplication(TFasDumpTable*, short, TUASClassIndex) + 104
5   com.apple.applescript         	0x00362397 TInferiorDumpList::DoDump() + 105
6   com.apple.applescript         	0x00362456 FasDumpUntypedPointerBlock(TFasDumpTable*, short) + 170
7   com.apple.applescript         	0x00362cbc FasDumpProcedure(TFasDumpTable*, short, TUASClassIndex) + 796
8   com.apple.applescript         	0x00362397 TInferiorDumpList::DoDump() + 105
9   com.apple.applescript         	0x00361a65 FasDumpEnvironment(TFasDumpTable*, short) + 491
10  com.apple.applescript         	0x00361db0 FasDumpActor(TFasDumpTable*, short, TUASClassIndex) + 776
11  com.apple.applescript         	0x00362763 FasDump(TBinaryOutputStream*) + 137
12  com.apple.applescript         	0x00365484 UASDump() + 26
13  com.apple.applescript         	0x0030d4b4 ASStore(unsigned long, unsigned long, long, AEDesc*) + 204
14  ...ple.CoreServices.CarbonCore	0x922ecd3d CallComponentFunctionCommon + 537
15  ...ple.CoreServices.CarbonCore	0x923322b4 CallComponentFunction + 122
16  com.apple.applescript         	0x00307a9a AppleScriptComponent + 1744
17  ...ple.CoreServices.CarbonCore	0x922eca05 CallComponentDispatch + 29
18  com.apple.openscripting       	0x92615001 OSAStore + 61
19  osacompile                    	0x000036fd 0x1000 + 9981
20  osacompile                    	0x000025a6 0x1000 + 5542

Thread 1:
0   libSystem.B.dylib             	0x9028c1c6 mach_msg_trap + 10
1   libSystem.B.dylib             	0x902939bc mach_msg + 72
2   com.unsanity.ape              	0x000cac39 __ape_agent + 316
3   libSystem.B.dylib             	0x902bd095 _pthread_start + 321
4   libSystem.B.dylib             	0x902bcf52 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x9204c29a  ecx: 0x00000015  edx: 0xa02d61a0
  edi: 0x001d5e30  esi: 0x00000000  ebp: 0xbfffe798  esp: 0xbfffe780
   ss: 0x0000001f  efl: 0x00010246  eip: 0x9204c2b4   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00000005

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!