#722: Multiple Threads are causing Segmentation Faults ----------------------------------+----------------------------------------- Reporter: jankass...@… | Owner: lsansone...@… 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/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel