Ticket #722 (closed defect: fixed)
Multiple Threads are causing Segmentation Faults
| Reported by: | jankassens@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.7 |
| Component: | MacRuby | Keywords: | |
| Cc: | jankassens@…, caius@… |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

