[MacRuby] #1076: Abort occurs when raise a SecurityError within Thread.
MacRuby
ruby-noreply at macosforge.org
Thu Dec 23 06:19:32 PST 2010
#1076: Abort occurs when raise a SecurityError within Thread.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
a = [1, 2]
Thread.start {
$SAFE = 4
a.shift
}.join
}}}
Result:
{{{
$ macruby tt.rb
2010-12-23 23:14:21.398 macruby[28993:1707] *** Terminating app due to
uncaught exception 'SecurityError', reason: 'Insecure: can't modify array
(SecurityError)
'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff83de87b4
__exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff8000d0f3
objc_exception_throw + 45
2 libmacruby.dylib 0x0000000100160205
rb_vm_raise + 437
3 libmacruby.dylib 0x00000001000409c9
rb_exc_raise + 9
4 libmacruby.dylib 0x000000010003e7b4
rb_raise + 308
5 libmacruby.dylib 0x0000000100014ec6
rb_mem_clear + 358
6 libmacruby.dylib 0x0000000100017aff
rary_reserve + 9407
7 libmacruby.dylib 0x0000000100017cf9
rary_reserve + 9913
8 libmacruby.dylib 0x00000001000ee281
rb_thread_remove_from_group + 81
9 libmacruby.dylib 0x0000000100161a64
rb_vm_thread_run + 212
10 libSystem.B.dylib 0x00007fff883fc536
_pthread_start + 331
11 libSystem.B.dylib 0x00007fff883fc3e9
thread_start + 13
)
terminate called after throwing an instance of 'NSException'
zsh: abort macruby tt.rb
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1076>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list