Project

General

Profile

Actions

Bug #2743

closed

incorrect checksum for freed object

Added by sakuro (Sakuro OZAWA) about 14 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2010-02-13 trunk 26659) [x86_64-darwin10.2.0]
Backport:

Description

=begin
Executing following comamnd dumps core in r26632 and later.

r26630
$ ./ruby -I. -I./lib -I./.ext/x86_64-darwin10.2.0 ./bin/gem install --verbose rails3b
GET 302 Found: http://gemcutter.org/latest_specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/latest_specs.4.8.gz
GET 200 OK: http://gems.github.com/latest_specs.4.8.gz
GET 302 Found: http://gems.rubyforge.org/latest_specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/latest_specs.4.8.gz
connection reset after 2 requests, retrying
GET 302 Found: http://gemcutter.org/specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/specs.4.8.gz
GET 200 OK: http://gems.github.com/specs.4.8.gz
connection reset after 2 requests, retrying
GET 302 Found: http://gems.rubyforge.org/specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/specs.4.8.gz
Installing gem activesupport-2.3.5

18 gems installed

r26631 has no change in /trunk.

r26632
$ ./ruby -I. -I./lib -I./.ext/x86_64-darwin10.2.0 ./bin/gem install --verbose rails3b
GET 302 Found: http://gemcutter.org/latest_specs.4.8.gz
GET 200 OK: http://production.s3.rubygems.org/latest_specs.4.8.gz
GET 200 OK: http://gems.github.com/latest_specs.4.8.gz
GET 302 Found: http://gems.rubyforge.org/latest_specs.4.8.gz
GET 200 OK: http://production.s3.rubygems.org/latest_specs.4.8.gz
connection reset after 2 requests, retrying
GET 302 Found: http://gemcutter.org/specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/specs.4.8.gz
GET 200 OK: http://gems.github.com/specs.4.8.gz
connection reset after 2 requests, retrying
GET 302 Found: http://gems.rubyforge.org/specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/specs.4.8.gz
ruby(78377,0x7fff708d1be0) malloc: *** error for object 0x10447c5a0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
zsh: abort (core dumped) ./ruby -I. -I./lib -I./.ext/x86_64-darwin10.2.0 ./bin/gem install --verbose
$ gdb ./ruby /cores/core.78377
GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done

Reading symbols for shared libraries . done
Reading symbols for shared libraries .................. done
#0 0x00007fff85912fe6 in kill ()
(gdb) bt
#0 0x00007fff85912fe6 in kill ()
#1 0x00007fff859a2ae5 in malloc_jumpstart ()
#2 0x00007fff858ce6e3 in memmove ()
#3 0x00007fff8592e7a0 in clock_get_time ()
#4 0x00007fff858c8c60 in malloc_zone_malloc ()
#5 0x00007fff858c8a4a in malloc_zone_malloc ()
#6 0x00007fff858c6d48 in malloc ()
#7 0x00000001000d1ccc in onig_alloc_init ()
#8 0x00000001000d1e42 in onig_new ()
#9 0x00000001000c00c3 in rb_reg_prepare_re ()
#10 0x00000001000c04a8 in rb_reg_search ()
#11 0x00000001000c40e5 in reg_match_pos ()
#12 0x00000001000c4111 in rb_reg_match ()
#13 0x0000000100166203 in call_cfunc ()
#14 0x0000000100166033 in vm_call_cfunc ()
#15 0x0000000100165204 in vm_call_method ()
#16 0x000000010015fe52 in vm_exec_core ()
#17 0x000000010016f709 in vm_exec ()
#18 0x000000010016e1e5 in invoke_block_from_c ()
#19 0x000000010016e26c in vm_yield ()
#20 0x000000010016ad2f in rb_yield_0 ()
#21 0x000000010016ad00 in rb_yield ()
#22 0x000000010000d865 in rb_ary_select ()
#23 0x00000001001661e4 in call_cfunc ()
#24 0x0000000100166033 in vm_call_cfunc ()
#25 0x0000000100165204 in vm_call_method ()
#26 0x000000010015fe52 in vm_exec_core ()
#27 0x000000010016f709 in vm_exec ()
#28 0x000000010016e1e5 in invoke_block_from_c ()
#29 0x000000010016e26c in vm_yield ()
#30 0x000000010016ad2f in rb_yield_0 ()
#31 0x000000010016ad00 in rb_yield ()
#32 0x0000000100051efd in each_pair_i ()
#33 0x0000000100050528 in hash_foreach_iter ()
#34 0x00000001000fcc05 in st_foreach ()
#35 0x00000001000506c0 in hash_foreach_call ()
#36 0x000000010003a288 in rb_ensure ()
#37 0x0000000100050749 in rb_hash_foreach ()
#38 0x0000000100051f5c in rb_hash_each_pair ()
#39 0x00000001001661e4 in call_cfunc ()
#40 0x0000000100166033 in vm_call_cfunc ()
#41 0x0000000100165204 in vm_call_method ()
#42 0x000000010015fe52 in vm_exec_core ()
#43 0x000000010016f709 in vm_exec ()
#44 0x000000010016e1e5 in invoke_block_from_c ()
#45 0x000000010016e26c in vm_yield ()
#46 0x000000010016ad2f in rb_yield_0 ()
#47 0x000000010016ad00 in rb_yield ()
#48 0x000000010000a983 in rb_ary_each ()
#49 0x00000001001661e4 in call_cfunc ()
#50 0x0000000100166033 in vm_call_cfunc ()
#51 0x0000000100165204 in vm_call_method ()
#52 0x000000010015fe52 in vm_exec_core ()
#53 0x000000010016f709 in vm_exec ()
#54 0x000000010016e1e5 in invoke_block_from_c ()
#55 0x000000010016e26c in vm_yield ()
#56 0x000000010016ad2f in rb_yield_0 ()
#57 0x000000010016ad00 in rb_yield ()
#58 0x000000010000a983 in rb_ary_each ()
#59 0x00000001001661e4 in call_cfunc ()
#60 0x0000000100166033 in vm_call_cfunc ()
#61 0x0000000100165204 in vm_call_method ()
#62 0x000000010015fe52 in vm_exec_core ()
#63 0x000000010016f709 in vm_exec ()
#64 0x000000010017008d in rb_iseq_eval_main ()
#65 0x0000000100038f9c in ruby_exec_internal ()
#66 0x00000001000390c0 in ruby_exec_node ()
#67 0x0000000100039093 in ruby_run_node ()
#68 0x0000000100000e5b in main ()

r26659(HEAD)
./ruby -I. -I./lib -I./.ext/x86_64-darwin10.2.0 ./bin/gem install --verbose rails3b
GET 302 Found: http://gemcutter.org/latest_specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/latest_specs.4.8.gz
GET 200 OK: http://gems.github.com/latest_specs.4.8.gz
GET 302 Found: http://gems.rubyforge.org/latest_specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/latest_specs.4.8.gz
connection reset after 2 requests, retrying
GET 302 Found: http://gemcutter.org/specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/specs.4.8.gz
GET 200 OK: http://gems.github.com/specs.4.8.gz
connection reset after 2 requests, retrying
GET 302 Found: http://gems.rubyforge.org/specs.4.8.gz
GET 304 Not Modified: http://production.s3.rubygems.org/specs.4.8.gz
ruby(6296,0x7fff708d1be0) malloc: *** error for object 0x104374680: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
zsh: abort (core dumped) ./ruby -I. -I./lib -I./.ext/x86_64-darwin10.2.0 ./bin/gem install --verbose
$ gdb ./ruby /cores/core.6296
GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done

Reading symbols for shared libraries . done
Reading symbols for shared libraries .................. done
#0 0x00007fff85912fe6 in kill ()
(gdb) bt
#0 0x00007fff85912fe6 in kill ()
#1 0x00007fff859a2ae5 in malloc_jumpstart ()
#2 0x00007fff858ce6e3 in memmove ()
#3 0x00007fff8592e7a0 in clock_get_time ()
#4 0x00007fff858c8c60 in malloc_zone_malloc ()
#5 0x00007fff858c8a4a in malloc_zone_malloc ()
#6 0x00007fff858c6d48 in malloc ()
#7 0x00000001000d1cf0 in onig_alloc_init ()
#8 0x00000001000d1e66 in onig_new ()
#9 0x00000001000c00e7 in rb_reg_prepare_re ()
#10 0x00000001000c04cc in rb_reg_search ()
#11 0x00000001000c4109 in reg_match_pos ()
#12 0x00000001000c4135 in rb_reg_match ()
#13 0x0000000100166227 in call_cfunc ()
#14 0x0000000100166057 in vm_call_cfunc ()
#15 0x0000000100165228 in vm_call_method ()
#16 0x000000010015fe76 in vm_exec_core ()
#17 0x000000010016f70d in vm_exec ()
#18 0x000000010016e209 in invoke_block_from_c ()
#19 0x000000010016e290 in vm_yield ()
#20 0x000000010016ad53 in rb_yield_0 ()
#21 0x000000010016ad24 in rb_yield ()
#22 0x000000010000d819 in rb_ary_select ()
#23 0x0000000100166208 in call_cfunc ()
#24 0x0000000100166057 in vm_call_cfunc ()
#25 0x0000000100165228 in vm_call_method ()
#26 0x000000010015fe76 in vm_exec_core ()
#27 0x000000010016f70d in vm_exec ()
#28 0x000000010016e209 in invoke_block_from_c ()
#29 0x000000010016e290 in vm_yield ()
#30 0x000000010016ad53 in rb_yield_0 ()
#31 0x000000010016ad24 in rb_yield ()
#32 0x0000000100051eb1 in each_pair_i ()
#33 0x00000001000504dc in hash_foreach_iter ()
#34 0x00000001000fcc29 in st_foreach ()
#35 0x0000000100050674 in hash_foreach_call ()
#36 0x000000010003a23c in rb_ensure ()
#37 0x00000001000506fd in rb_hash_foreach ()
#38 0x0000000100051f10 in rb_hash_each_pair ()
#39 0x0000000100166208 in call_cfunc ()
#40 0x0000000100166057 in vm_call_cfunc ()
#41 0x0000000100165228 in vm_call_method ()
#42 0x000000010015fe76 in vm_exec_core ()
#43 0x000000010016f70d in vm_exec ()
#44 0x000000010016e209 in invoke_block_from_c ()
#45 0x000000010016e290 in vm_yield ()
#46 0x000000010016ad53 in rb_yield_0 ()
#47 0x000000010016ad24 in rb_yield ()
#48 0x000000010000a937 in rb_ary_each ()
#49 0x0000000100166208 in call_cfunc ()
#50 0x0000000100166057 in vm_call_cfunc ()
#51 0x0000000100165228 in vm_call_method ()
#52 0x000000010015fe76 in vm_exec_core ()
#53 0x000000010016f70d in vm_exec ()
#54 0x000000010016e209 in invoke_block_from_c ()
#55 0x000000010016e290 in vm_yield ()
#56 0x000000010016ad53 in rb_yield_0 ()
#57 0x000000010016ad24 in rb_yield ()
#58 0x000000010000a937 in rb_ary_each ()
#59 0x0000000100166208 in call_cfunc ()
#60 0x0000000100166057 in vm_call_cfunc ()
#61 0x0000000100165228 in vm_call_method ()
#62 0x000000010015fe76 in vm_exec_core ()
#63 0x000000010016f70d in vm_exec ()
#64 0x00000001001700ee in rb_iseq_eval_main ()
#65 0x0000000100038f50 in ruby_exec_internal ()
#66 0x0000000100039074 in ruby_exec_node ()
#67 0x0000000100039047 in ruby_run_node ()
#68 0x0000000100000e0f in main ()
=end

Actions #1

Updated by sakuro (Sakuro OZAWA) about 14 years ago

=begin
Appears to be fixed in r26665. Please close this issue.

=end

Actions #2

Updated by wanabe (_ wanabe) about 14 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0