Reproduced it here with the same sort of backtraces. Here's the beginning of a couple of crash reports.

dan

Process:         Quartz Composer [5176]
Path: /Developer/Applications/Quartz Composer.app/Contents/ MacOS/Quartz Composer
Identifier:      com.apple.QuartzComposer.editor
Version:         3.1 (63.2)
Build Info:      QuartzComposerEditor-630200~2
Code Type:       X86 (Native)
Parent Process:  launchd [230]

Interval Since Last Report:          301802 sec
Crashes Since Last Report:           4
Per-App Interval Since Last Report:  24950 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2009-05-28 16:04:51.665 -0400
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  29545AC5-AE33-48B6-81D2-E487CAC3FAFA

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

Thread 0 Crashed:
0   ???                                 0000000000 0 + 0
1   ???                                 0x010bb625 0 + 17544741

****and****

Process:         Quartz Composer [5207]
Path: /Developer/Applications/Quartz Composer.app/Contents/ MacOS/Quartz Composer
Identifier:      com.apple.QuartzComposer.editor
Version:         3.1 (63.2)
Build Info:      QuartzComposerEditor-630200~2
Code Type:       X86 (Native)
Parent Process:  launchd [230]

Interval Since Last Report:          59 sec
Crashes Since Last Report:           1
Per-App Interval Since Last Report:  32 sec
Per-App Crashes Since Last Report:   1

Date/Time:       2009-05-28 16:07:27.073 -0400
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  29545AC5-AE33-48B6-81D2-E487CAC3FAFA

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

Thread 0 Crashed:
0 com.apple.JavaScriptCore 0x9288e764 JSObjectCallAsFunction + 260
1   libobjc.A.dylib                     0x965e7800 0x965a6000 + 268288





On May 28, 2009, at 3:29 PM, Christopher Wright wrote:

Granted, this is an unspeakably bad thing to do in javascript, but starting/stopping this composition multiple times will cause QC to crash.

<badJS.qtz>


Steps:
  * load the composition
  * open the viewer
* cmd-., cmd-r repeatedly (sometimes it only takes a couple cycles, sometimes more than a dozen).

The pertinent script is:

var rand = Math.random();
Log("rand:"+rand);
if(rand > 0.5)
{
        eval("\
        function doStuff(){return 42;}\
        function (__number outputNumber) main (__number inputNumber[2])\
        {\
                var result = new Object();\
                result.outputNumber = doStuff();\
                return result;\
        }");
}
else
{
        eval("function (__number cool) main (__number what)\
        {\
                var result = new Object();\
                result.outputNumber = 24;\
                return result;\
        }");
}

(Yes, you'd never have a reason ever to do anything like this in real life that I can think of, but crashing might be a problem)

backtrace varies, either calling a null function (top address is 0x00000000), or sometimes JSObjectCallAsFunction, as in:
Thread 0 Crashed:
0 com.apple.JavaScriptCore 0x95bfd764 JSObjectCallAsFunction + 260
1   libobjc.A.dylib                     0x9247d800 0x9243c000 + 268288

Can anyone else reproduce this?

--
[ christopher wright ]
[email protected]
http://kineme.net/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/dan%40danwinckler.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to