[MacRuby] #501: Marshalling Time fails with a segfault.
#501: Marshalling Time fails with a segfault. ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Executing something like `macruby -e 'Time.now._dump'` (On the git version of macruby) crashes. Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00007fff832bbc10 in CFStringPad () In time.c -> time_mdump. -- Ticket URL: <http://www.macruby.org/trac/ticket/501> MacRuby <http://macruby.org/>
#501: Marshalling Time fails with a segfault. ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by jens.nockert@…): I think the attached patch fixes the problem, it works fine in the simple `macruby -e "p Marshal.load(Marshal.dump(Time.now))"` case at least. -- Ticket URL: <http://www.macruby.org/trac/ticket/501#comment:1> MacRuby <http://macruby.org/>
#501: Marshalling Time fails with a segfault. ------------------------------------+--------------------------------------- Reporter: jens.nockert@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: Thanks a lot for the patch, using a bytestring here is definitely the way to go. I merged it as r3119. -- Ticket URL: <http://www.macruby.org/trac/ticket/501#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby