Projects

Ticket #306 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

NSPredicate.predicateWithFormat crashes with Segmentation fault

Reported by: dev@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby 0.5
Component: MacRuby Keywords: NSPredicate
Cc:

Description

macruby -e "framework 'Cocoa'; p NSPredicate.predicateWithFormat(%q/a == 'b'/)"

causes (in most of the cases) the following result:

unknown: [BUG] Segmentation fault
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin9.0, x86_64]

Abort trap

In some rare cases it works:

#<NSComparisonPredicate:0x80030c440>

Change History

Changed 3 years ago by lsansonetti@…

Most likely a bug with variadic methods, since NSLog seems to suffer from the same problem.

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Should be fixed in r2694.

Note: See TracTickets for help on using tickets.