[MacRuby-devel] [MacRuby] #722: Multiple Threads are causing Segmentation Faults
MacRuby
ruby-noreply at macosforge.org
Tue May 18 17:12:03 PDT 2010
#722: Multiple Threads are causing Segmentation Faults
----------------------------------+-----------------------------------------
Reporter: jankassens@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
This little script causes segmentation faults on my machine (unibody
MacBook with Core 2 Duo)
(using the 0.6 release version)
{{{
#!/usr/bin/env macruby
framework 'calendarstore'
50.times do
Thread.new do
loop do
pred = CalCalendarStore.eventPredicateWithStartDate(NSDate.date,
endDate:NSDate.date,
calendars:CalCalendarStore.defaultCalendarStore.calendars)
CalCalendarStore.defaultCalendarStore.eventsWithPredicate(pred)
sleep 1
end
end
end
sleep 1
}}}
Most common is this error:
{{{
$ ./test.rb
unknown: [BUG] Segmentation fault
MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]
Abort trap
}}}
but I get this as well:
{{{
$ ./test.rb
SEGV recieved in SEGV handler
unknown: SEGV recieved in SEGV handler
}}}
Since the programm exits on the seg fault, I didn't manage to get a
backtrace with macrubyd.
--
Ticket URL: <http://www.macruby.org/trac/ticket/722>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list