[MacRuby] #404: Segfault with ObjectSpace#each_object
#404: Segfault with ObjectSpace#each_object ---------------------------------------+------------------------------------ Reporter: keith.gautreaux@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: objectspace segfault ---------------------------------------+------------------------------------ The following code causes a segfault on my machine (MacBookPro3,1): {{{ #!/usr/local/bin/macruby ObjectSpace.each_object { |o| puts o } }}} Unfortunately, I am running the nightly build of MacRuby from http://macruby.icoretech.org and it doesn't seem to allow backtrace generation with gdb when compiled with: {{{ macrubyc -o macruby_test -a x86_64 macruby_test.rb }}} I also get a segfault when the code is run under macirb. If someone who can generate backtraces could try that method and reproduce the segfault that would be great. If no one becomes available I can try compiling macruby from source and running a backtrace. -- Ticket URL: <http://www.macruby.org/trac/ticket/404> MacRuby <http://macruby.org/>
#404: Segfault with ObjectSpace#each_object ---------------------------------------+------------------------------------ Reporter: keith.gautreaux@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: objectspace segfault ---------------------------------------+------------------------------------ Comment(by keith.gautreaux@…): This still occurs with the nightly build of MacRuby from 11/2/09, both compiled and interpreted. -- Ticket URL: <http://www.macruby.org/trac/ticket/404#comment:1> MacRuby <http://macruby.org/>
#404: Segfault with ObjectSpace#each_object ---------------------------------------+------------------------------------ Reporter: keith.gautreaux@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: objectspace segfault ---------------------------------------+------------------------------------ Comment(by lsansonetti@…): The problem is in #inspect actually, ObjectSpace exposes *all* objects even obscure Cocoa internal objects as well as not-inspectable CF subclasses. The following should work for instance. {{{ $ macruby -e "ObjectSpace.each_object { |o| p o.class }" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/404#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby