Projects

Ticket #722 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

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

Changed 21 months ago by jankassens@…

caius posted a crash report:  https://gist.github.com/7f75c2aa6bd1544befab

Changed 21 months ago by jankassens@…

  • cc jankassens@… added

Cc Me!

Changed 21 months ago by caius@…

  • cc caius@… added

Cc Me!

Changed 21 months ago by watson1978@…

This problem did not recur since r4181. Please check this problem.

Changed 21 months ago by martinlagardette@…

r4181 seems to fix it for me too :-). We'll just wait for input from the originator :-)

Changed 21 months ago by jankassens@…

Yep, I can't reproduce the bug with the current trunk.

Changed 21 months ago by martinlagardette@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.7

Perfect! Closing :-)

Note: See TracTickets for help on using tickets.