From: WATANABE Tetsuya Date: 2001-12-13T16:13:05+09:00 Subject: [ruby-dev:15430] [BUG] Segmentation fault/ruby 1.7.2 (2001-12-10) 渡辺哲也です。 今朝 12/13 (9 時くらい)の 1.7.2 の CVS で core する ようです。 再現スクリプト書けなくて、コードを中途半端なまま引用 します。すいません。 c2html.rb:240: [BUG] Segmentation fault ------------------------------ class CMAIL < DelegateClass(Array) def initialize(file) @succ = nil file = File.expand_path(file) f = File.open(file) foo = NKF.nkf('-eZm', f.read) f.close @cmail_body = foo.split("\C-_\C-l") # ^_^L @cmail_head = @cmail_body.shift.split("\n") @cmail_body.pop # -- ここが 240 @cmail_body.collect! do |mail| $dir = mail.to_time.strftime('%Y/%m/%d/%H%M%S') # //// 'Size: ' + sprintf("%d\n", mail.size) + mail.mail2str.join("\n") end super(@cmail_body) end end ------------------------------ バックトレースです。 ------------------------------ #0 0x2ab33f91 in __kill () from /lib/libc.so.6 #1 0x2ab33c79 in raise (sig=6) at ../sysdeps/posix/raise.c:27 #2 0x2ab353e1 in abort () at ../sysdeps/generic/abort.c:88 #3 0x80b8136 in rb_bug () at error.c:178 #4 0x809ef91 in sigsegv () at signal.c:393 #5 #6 chunk_realloc (ar_ptr=0x2abf5e20, oldp=0x150, oldsize=717743056, nb=336) at malloc.c:3423 #7 0x2ab66fd3 in __libc_realloc (oldmem=0x8132384, bytes=328) at malloc.c:3254 #8 0x806743f in ruby_xrealloc (ptr=0x8132384, size=328) at gc.c:142 #9 0x80ae1bd in rb_ary_pop (ary=717743128) at array.c:341 #10 0x8059743 in call_cfunc (func=0x80ae170 , recv=717743128, len=0, argc=0, argv=0x0) at eval.c:4292 #11 0x8059c1e in rb_call0 (klass=717418256, recv=717743128, id=6273, argc=0, argv=0x0, body=0x2ac2ead8, nosuper=1) at eval.c:4426 #12 0x805a38f in rb_call (klass=717418256, recv=717743128, mid=6273, argc=0, argv=0x0, scope=0) at eval.c:4648 #13 0x8055a3c in rb_eval (self=717743344, n=0x2ac1cf28) at eval.c:2650 #14 0x8054207 in rb_eval (self=717743344, n=0x2ac1d3f0) at eval.c:2119 #15 0x8059ff8 in rb_call0 (klass=717886840, recv=717743344, id=2889, argc=0, argv=0x7fffe894, body=0x2ac1d3f0, nosuper=0) at eval.c:4554 #16 0x805a38f in rb_call (klass=717886840, recv=717743344, mid=2889, argc=1, argv=0x7fffe890, scope=1) at eval.c:4648 #17 0x805a609 in rb_funcall2 (recv=717743344, mid=2889, argc=1, argv=0x7fffe890) at eval.c:4732 #18 0x805cb73 in rb_obj_call_init (obj=717743344, argc=1, argv=0x7fffe890) at eval.c:5761 #19 0x8079494 in rb_class_new_instance (argc=1, argv=0x7fffe890, klass=717886840) at object.c:670 #20 0x8059735 in call_cfunc (func=0x8079458 , recv=717886840, len=-1, argc=1, argv=0x7fffe890) at eval.c:4289 #21 0x8059c1e in rb_call0 (klass=717453608, recv=717886840, id=3249, argc=1, argv=0x7fffe890, body=0x2ac364d0, nosuper=1) at eval.c:4426 #22 0x805a38f in rb_call (klass=717453608, recv=717886840, mid=3249, argc=1, argv=0x7fffe890, scope=0) at eval.c:4648 #23 0x8055a3c in rb_eval (self=717448112, n=0x2ac18620) at eval.c:2650 #24 0x8056304 in rb_eval (self=717448112, n=0x2ac18608) at eval.c:2797 #25 0x8054207 in rb_eval (self=717448112, n=0x2ac1d690) at eval.c:2119 #26 0x805201f in eval_node (self=717448112, node=0x2ac1d690) at eval.c:1083 #27 0x80523a3 in ruby_run () at eval.c:1215 #28 0x8050d64 in main (argc=3, argv=0x7ffff834, envp=0x7ffff844) at main.c:50 #29 0x2ab2da1e in __libc_start_main (main=0x8050d48
, argc=3, argv=0x7ffff834, init=0x80502f4 <_init>, fini=0x80b991c <_fini>, rtld_fini=0x2aab5cf0 <_dl_fini>, stack_end=0x7ffff82c) at ../sysdeps/generic/libc-start.c:92 ------------------------------ すでに解決済でしたらすいませんです。 # 再現コード書けなくて...