Projects

Ticket #222 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Memory allocation problem

Reported by: dave.baldwin@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

macirb

str = [10].pack('N').unpack('g')[0].to_s

macruby(29176,0x7fff70513720) malloc: *** free() called with 0x8004a5c60 with refcount 0

macruby(29176,0x7fff70513720) malloc: reference count underflow for 0x8004a5c60, break on auto_refcount_underflow_error to debug.

macruby(29176,0x7fff70513720) malloc: *** free() called with 0x8004a5c40 with refcount 0

macruby(29176,0x7fff70513720) malloc: reference count underflow for 0x8004a5c40, break on auto_refcount_underflow_error to debug. => "1.40129846432482e-44"

macruby -v MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0, x86_64]

Taken from trunk on 30 Jan 09.

Change History

Changed 3 years ago by lsansonetti@…

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

Fixed in r825.

$ ./miniruby -ve "p [10].pack('N').unpack('g')[0].to_s"
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.5, x86_64]
"1.40129846432482e-44"
Note: See TracTickets for help on using tickets.