[MacRuby] #358: NSNotificationQueue Dealloc Crash in Simple Project
#358: NSNotificationQueue Dealloc Crash in Simple Project ---------------------------------+------------------------------------------ Reporter: dylan@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ I am following the PeepCode MacRuby 035 screencast and ran into a crash early on in development. I've attached the project that I was using. The crash is intermittent but pretty frequent (over 50% of the launches). I've seen several different stack traces thrown at the same time, so it's a bit random. To reproduce: 1.) Open the attached project 2.) Build and go 3.) click on the Xcode window and then back on the application window Step #3 isn't always required. I am using Mac OS X 10.6.1 with the new Xcode 3.2 and the iPhone SDK installed. I am on an Intel Core 2 Duo laptop. I am using the nightly build: macruby_nightly-2009-09-29-1155 Changing the NSLog statement to puts seems to fix the problem. Lots of noise in the console output: run [Switching to process 1764] Running… Program received signal: “EXC_BAD_INSTRUCTION”. sharedlibrary apply-load-rules all warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/array.o" - no debug information available for "array.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/bignum.o" - no debug information available for "bignum.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/class.o" - no debug information available for "class.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/compar.o" - no debug information available for "compar.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/complex.o" - no debug information available for "complex.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/enum.o" - no debug information available for "enum.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/enumerator.o" - no debug information available for "enumerator.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/error.o" - no debug information available for "error.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/eval.o" - no debug information available for "eval.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/file.o" - no debug information available for "file.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/load.o" - no debug information available for "load.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/proc.o" - no debug information available for "proc.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/gc.o" - no debug information available for "gc.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/hash.o" - no debug information available for "hash.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/inits.o" - no debug information available for "inits.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/io.o" - no debug information available for "io.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/math.o" - no debug information available for "math.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/numeric.o" - no debug information available for "numeric.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/object.o" - no debug information available for "object.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/pack.o" - no debug information available for "pack.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/parse.o" - no debug information available for "parse.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/prec.o" - no debug information available for "prec.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/dir.o" - no debug information available for "dir.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/process.o" - no debug information available for "process.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/random.o" - no debug information available for "random.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/range.o" - no debug information available for "range.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/rational.o" - no debug information available for "rational.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/re.o" - no debug information available for "re.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regcomp.o" - no debug information available for "onig/regcomp.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regext.o" - no debug information available for "onig/regext.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regposix.o" - no debug information available for "onig/regposix.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regenc.o" - no debug information available for "onig/regenc.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/reggnu.o" - no debug information available for "onig/reggnu.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regsyntax.o" - no debug information available for "onig/regsyntax.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regerror.o" - no debug information available for "onig/regerror.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regparse.o" - no debug information available for "onig/regparse.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regtrav.o" - no debug information available for "onig/regtrav.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regexec.o" - no debug information available for "onig/regexec.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regposerr.o" - no debug information available for "onig/regposerr.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/regversion.o" - no debug information available for "onig/regversion.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/ascii.o" - no debug information available for "onig/enc/ascii.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/unicode.o" - no debug information available for "onig/enc/unicode.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/utf8.o" - no debug information available for "onig/enc/utf8.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/euc_jp.o" - no debug information available for "onig/enc/euc_jp.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/sjis.o" - no debug information available for "onig/enc/sjis.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/iso8859_1.o" - no debug information available for "onig/enc/iso8859_1.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/utf16_be.o" - no debug information available for "onig/enc/utf16_be.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/utf16_le.o" - no debug information available for "onig/enc/utf16_le.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/utf32_be.o" - no debug information available for "onig/enc/utf32_be.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/onig/enc/utf32_le.o" - no debug information available for "onig/enc/utf32_le.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/ruby.o" - no debug information available for "ruby.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/set.o" - no debug information available for "set.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/signal.o" - no debug information available for "signal.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/sprintf.o" - no debug information available for "sprintf.cpp". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/st.o" - no debug information available for "st.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/string.o" - no debug information available for "string.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/struct.o" - no debug information available for "struct.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/time.o" - no debug information available for "time.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/transcode.o" - no debug information available for "transcode.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/util.o" - no debug information available for "util.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/variable.o" - no debug information available for "variable.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/version.o" - no debug information available for "version.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/thread.o" - no debug information available for "thread.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/id.o" - no debug information available for "id.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/objc.o" - no debug information available for "objc.m". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/bs.o" - no debug information available for "bs.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/encoding.o" - no debug information available for "encoding.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/dln.o" - no debug information available for "dln.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/dmyext.o" - no debug information available for "dmyext.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/marshal.o" - no debug information available for "marshal.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/gcd.o" - no debug information available for "gcd.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/vm_eval.o" - no debug information available for "vm_eval.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/prelude.o" - no debug information available for "prelude.c". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/bridgesupport.o" - no debug information available for "bridgesupport.cpp". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/compiler.o" - no debug information available for "compiler.cpp". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/vm.o" - no debug information available for "vm.cpp". warning: Could not find object file "/Sites/kain/icoretech.org/macruby/repo/MacRuby.o" - no debug information available for "MacRuby.m". kill quit The Debugger has exited with status 0.(gdb) -- Ticket URL: <http://www.macruby.org/trac/ticket/358> MacRuby <http://macruby.org/>
#358: NSNotificationQueue Dealloc Crash in Simple Project ---------------------------------+------------------------------------------ Reporter: dylan@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Comment(by dylan@…): It seems the attachment is too large to upload here. You can grab it from drop.io: http://drop.io/Ticket358 -- Ticket URL: <http://www.macruby.org/trac/ticket/358#comment:1> MacRuby <http://macruby.org/>
#358: NSNotificationQueue Dealloc Crash in Simple Project ---------------------------------+------------------------------------------ Reporter: dylan@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: duplicate Keywords: | ---------------------------------+------------------------------------------ Changes (by mattaimonetti@…): * status: new => closed * resolution: => duplicate Comment: Thanks for the report, this is a known bug with NSlog and it was already reported, therefore I'm going to close your ticket. Track http://www.macruby.org/trac/ticket/357 if you want to get updated when the problem gets fixed. -- Ticket URL: <http://www.macruby.org/trac/ticket/358#comment:2> MacRuby <http://macruby.org/>
#358: NSNotificationQueue Dealloc Crash in Simple Project ---------------------------------+------------------------------------------ Reporter: dylan@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: duplicate Keywords: | ---------------------------------+------------------------------------------ Comment(by dylan@…): Will do, sorry for the duplicate. I tried a few searches, but NSLog is the obvious one ;) -- Ticket URL: <http://www.macruby.org/trac/ticket/358#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby