[#36069] 日本語に混じった URL を抜き出したい — keiichi matsunaga <ma2@...>

 松永です。

26 messages 2002/10/02
[#36072] Re: 日本語に混じった URL を抜き出したい — keiichi matsunaga <ma2@...> 2002/10/02

 松永です。

[#36073] Re: 日本語に混じった URL を抜き出したい — SAITO Shukaku <shukaku@...> 2002/10/02

At Wed, 2 Oct 2002 13:51:42 +0900,

[ruby-list:36163] Re: gc_sweepでアボート

From: 原田 潤 <j-harada@...4u.or.jp>
Date: 2002-10-17 08:25:23 UTC
List: ruby-list #36163
原田です。

返信ありがとうございます。

matz@ruby-lang.org (Yukihiro Matsumoto) wrote:
> gdbの中で実行した上でアボートした時点でwhereコマンドを実行し
> て、スタックトレースを取っていただけると原因が分かることがあ
> ります。

早速採ってみました。
すみません、私には中身を見ても分かりませんでした。

ちなみに、アボートする場所は前のメールと今回のメールも私の書いた
スクリプトの中ですが、たまに使っている「timeout.rb」の中で発生す
ることもあります。

---
原田 潤
j-harada@hh.iij4u.or.jp

Attachments (1)

rubystack.txt (9.54 KB, text/plain)
./PopMsg.rb:81: [BUG] gc_sweep(): unknown data type 52
ruby 1.6.8 (2002-10-10) [i686-linux]

Program received signal SIGABRT, Aborted.
0x42028cc1 in kill () from /lib/i686/libc.so.6
(gdb) where
#0  0x42028cc1 in kill () from /lib/i686/libc.so.6
#1  0x42028ac8 in raise () from /lib/i686/libc.so.6
#2  0x4202a019 in abort () from /lib/i686/libc.so.6
#3  0x4003b8fd in rb_bug () at error.c:178
#4  0x40055ffb in obj_free (obj=1074864380) at gc.c:947
#5  0x40055c91 in gc_sweep () at gc.c:765
#6  0x40056280 in rb_gc () at gc.c:1074
#7  0x40054ce5 in ruby_xmalloc (size=2) at gc.c:92
#8  0x4008b4c5 in rb_str_new (ptr=0x84a3fb8 "2 998\r\n", len=1) at string.c:45
#9  0x4007891e in rb_reg_nth_match (nth=1108517584, match=1075354660)
    at re.c:681
#10 0x4004297d in rb_eval (self=1075357000, n=0x0) at eval.c:2821
#11 0x40041f3f in rb_eval (self=1075357000, n=0x0) at eval.c:2542
#12 0x400419bf in rb_eval (self=1075357000, n=0x0) at eval.c:2716
#13 0x40041060 in rb_eval (self=1075357000, n=0x0) at eval.c:2259
#14 0x400406c0 in rb_eval (self=1075357000, n=0x0) at eval.c:2045
#15 0x40046caa in rb_call0 (klass=1075444280, recv=1075357000, id=6081,
    argc=0, argv=0xbfff3018, body=0x401a3cf0, nosuper=0) at eval.c:4544
#16 0x4004719c in rb_call (klass=1075444280, recv=1075357000, mid=6081,
    argc=2, argv=0xbfff3010, scope=0) at eval.c:4637
#17 0x40042076 in rb_eval (self=1075388200, n=0x0) at eval.c:2548
#18 0x4004214f in rb_eval (self=1075388200, n=0x0) at ruby.h:579
#19 0x40044d51 in rb_yield_0 (val=6, self=1075388200, klass=0, acheck=2)
    at eval.c:3641
#20 0x4004fa97 in rb_thread_yield (arg=1075357760, th=0x84f84a0) at eval.c:8587
#21 0x4004f975 in rb_thread_start_0 (fn=0x4004fa60 <rb_thread_yield>,
    arg=0x4018a840, th_arg=0x0) at eval.c:8520
#22 0x4004fb44 in rb_thread_initialize (thread=1075392220, args=1075357760)
    at eval.c:8616
#23 0x400465eb in call_cfunc (func=0x4004fb0c <rb_thread_initialize>,
    recv=1075392220, len=1075357760, argc=0, argv=0x6) at eval.c:4273
#24 0x40046985 in rb_call0 (klass=1075043136, recv=1075392220, id=2857,
    argc=0, argv=0x0, body=0x4013daf0, nosuper=1) at eval.c:4413
#25 0x4004719c in rb_call (klass=1075043136, recv=1075392220, mid=2857,
    argc=0, argv=0x0, scope=1) at eval.c:4637
#26 0x400474ed in rb_funcall2 (recv=1108517584, mid=2857, argc=0, argv=0x0)
    at ruby.h:574
#27 0x40049861 in rb_obj_call_init (obj=1075392220, argc=0, argv=0x0)
    at eval.c:5719
#28 0x4004fad0 in rb_thread_s_new (argc=0, argv=0x0, klass=1075043136)
    at eval.c:8600
#29 0x400465eb in call_cfunc (func=0x4004fa9c <rb_thread_s_new>,
    recv=1075043136, len=-1073790856, argc=0, argv=0x6) at eval.c:4273
#30 0x40046985 in rb_call0 (klass=1075043116, recv=1075043136, id=3169,
    argc=0, argv=0x0, body=0x4013db18, nosuper=1) at eval.c:4413
#31 0x4004719c in rb_call (klass=1075043116, recv=1075043136, mid=3169,
    argc=0, argv=0x0, scope=0) at eval.c:4637
#32 0x40042076 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2548
#33 0x40041431 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2296
#34 0x4004214f in rb_eval (self=1075388200, n=0xbfff4078) at ruby.h:579
#35 0x40044d51 in rb_yield_0 (val=17, self=1075388200, klass=0, acheck=0)
    at eval.c:3641
#36 0x40045088 in rb_yield (val=17) at eval.c:3729
#37 0x4007709a in range_each (range=1075419760) at range.c:185
#38 0x400465eb in call_cfunc (func=0x40076e3c <range_each>, recv=1075419760,
    len=-1073790856, argc=0, argv=0x6) at eval.c:4273
#39 0x40046985 in rb_call0 (klass=1075027956, recv=1075419760, id=3569,
    argc=0, argv=0x0, body=0x40139ef0, nosuper=1) at eval.c:4413
#40 0x4004719c in rb_call (klass=1075027956, recv=1075419760, mid=3569,
    argc=0, argv=0x0, scope=0) at eval.c:4637
#41 0x40042076 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2548
#42 0x40041431 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2296
#43 0x40046caa in rb_call0 (klass=1075463760, recv=1075388200, id=9097,
    argc=0, argv=0xbfff63a4, body=0x40119c04, nosuper=0) at eval.c:4544
#44 0x4004719c in rb_call (klass=1075463760, recv=1075388200, mid=9097,
    argc=1, argv=0xbfff63a0, scope=1) at eval.c:4637
#45 0x40042076 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2548
#46 0x400406c0 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2045
#47 0x40040f4b in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2229
#48 0x400406c0 in rb_eval (self=1075388200, n=0xbfff4078) at eval.c:2045
#49 0x40046caa in rb_call0 (klass=1075463760, recv=1075388200, id=9113,
    argc=0, argv=0xbfff7b64, body=0x40119934, nosuper=0) at eval.c:4544
#50 0x4004719c in rb_call (klass=1075463760, recv=1075388200, mid=9113,
    argc=1, argv=0xbfff7b60, scope=0) at eval.c:4637
#51 0x40042076 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2548
#52 0x40044d51 in rb_yield_0 (val=4, self=1075441740, klass=0, acheck=0)
    at eval.c:3641
#53 0x40042877 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2378
#54 0x40041819 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2388
#55 0x400406c0 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2045
#56 0x40046caa in rb_call0 (klass=1074936256, recv=1075441740, id=9089,
    argc=1, argv=0xbfff9480, body=0x40126698, nosuper=0) at eval.c:4544
#57 0x4004719c in rb_call (klass=1074936256, recv=1075441740, mid=9089,
    argc=1, argv=0xbfff9480, scope=1) at eval.c:4637
#58 0x40042076 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2548
#59 0x40041431 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2296
#60 0x40046caa in rb_call0 (klass=1074903796, recv=1075441740, id=9105,
    argc=0, argv=0xbfffa384, body=0x40134284, nosuper=0) at eval.c:4544
#61 0x4004719c in rb_call (klass=1074903796, recv=1075441740, mid=9105,
    argc=0, argv=0xbfffa384, scope=1) at eval.c:4637
#62 0x40047379 in rb_f_send (argc=0, argv=0xbfffa384, recv=1075441740)
    at ruby.h:574
#63 0x400465eb in call_cfunc (func=0x400472f0 <rb_f_send>, recv=1075441740,
    len=-1073790856, argc=1, argv=0x6) at eval.c:4273
#64 0x40046985 in rb_call0 (klass=1075063956, recv=1075441740, id=3777,
    argc=1, argv=0xbfffa380, body=0x401411a0, nosuper=1) at eval.c:4413
#65 0x4004719c in rb_call (klass=1075063956, recv=1075441740, mid=3777,
    argc=1, argv=0xbfffa380, scope=1) at eval.c:4637
#66 0x40042076 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2548
#67 0x40041917 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2428
#68 0x40046caa in rb_call0 (klass=1074936536, recv=1075441740, id=9313,
    argc=0, argv=0x0, body=0x40131b74, nosuper=0) at eval.c:4544
#69 0x4004719c in rb_call (klass=1074936536, recv=1075441740, mid=9313,
    argc=0, argv=0x0, scope=2) at eval.c:4637
#70 0x40042076 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2548
#71 0x40041819 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2388
#72 0x400406c0 in rb_eval (self=1075441740, n=0xbfff4078) at eval.c:2045
#73 0x40046caa in rb_call0 (klass=1074936536, recv=1075441740, id=5721,
    argc=0, argv=0xbfffc254, body=0x40131d90, nosuper=0) at eval.c:4544
#74 0x4004719c in rb_call (klass=1074936536, recv=1075441740, mid=5721,
    argc=1, argv=0xbfffc250, scope=0) at eval.c:4637
#75 0x40042076 in rb_eval (self=1075443680, n=0xbfff4078) at eval.c:2548
#76 0x40044d51 in rb_yield_0 (val=1075441740, self=1075443680, klass=0,
    acheck=0) at eval.c:3641
#77 0x40045088 in rb_yield (val=1075441740) at eval.c:3729
#78 0x40031a7f in rb_ary_each (ary=1075443680) at array.c:630
#79 0x400465eb in call_cfunc (func=0x40031a44 <rb_ary_each>, recv=1075443680,
    len=-1073790856, argc=0, argv=0x6) at eval.c:4273
#80 0x40046985 in rb_call0 (klass=1075035856, recv=1075443680, id=3569,
    argc=0, argv=0x0, body=0x4013bafc, nosuper=1) at eval.c:4413
#81 0x4004719c in rb_call (klass=1075035856, recv=1075443680, mid=3569,
    argc=0, argv=0x0, scope=1) at eval.c:4637
#82 0x40042076 in rb_eval (self=1075443680, n=0xbfff4078) at eval.c:2548
#83 0x40041431 in rb_eval (self=1075443680, n=0xbfff4078) at eval.c:2296
#84 0x40046caa in rb_call0 (klass=1074981196, recv=1075443680, id=5721,
    argc=0, argv=0xbfffd844, body=0x4012f220, nosuper=0) at eval.c:4544
#85 0x4004719c in rb_call (klass=1074981196, recv=1075443680, mid=5721,
    argc=1, argv=0xbfffd840, scope=0) at eval.c:4637
#86 0x40042076 in rb_eval (self=1075443660, n=0xbfff4078) at eval.c:2548
#87 0x400406c0 in rb_eval (self=1075443660, n=0xbfff4078) at eval.c:2045
#88 0x40046caa in rb_call0 (klass=1074904796, recv=1075443660, id=5721,
    argc=0, argv=0xbfffe514, body=0x40122c64, nosuper=0) at eval.c:4544
#89 0x4004719c in rb_call (klass=1074904796, recv=1075443660, mid=5721,
    argc=1, argv=0xbfffe510, scope=0) at eval.c:4637
#90 0x40042076 in rb_eval (self=1074904796, n=0xbfff4078) at eval.c:2548
#91 0x40046caa in rb_call0 (klass=1074904776, recv=1074904796, id=5721,
    argc=0, argv=0xbfffec74, body=0x40122e44, nosuper=0) at eval.c:4544
#92 0x4004719c in rb_call (klass=1074904776, recv=1074904796, mid=5721,
    argc=1, argv=0xbfffec70, scope=0) at eval.c:4637
#93 0x40042076 in rb_eval (self=1075059936, n=0xbfff4078) at eval.c:2548
#94 0x40044d51 in rb_yield_0 (val=6, self=1075059936, klass=0, acheck=2)
    at eval.c:3641
#95 0x4004b2a1 in proc_call (proc=1074905576, args=6) at eval.c:6440
#96 0x40049cce in call_end_proc (data=1074905576) at eval.c:5899
#97 0x40045e29 in rb_protect (proc=0x40049c34 <call_end_proc>,
    data=1074905576, state=0xbffff678) at eval.c:4036
#98 0x40049dfe in rb_exec_end_proc () at eval.c:5932
#99 0x4003e742 in ruby_finalize () at eval.c:1176
#100 0x4003e82c in ruby_stop (ex=0) at eval.c:1203
#101 0x4003e942 in ruby_run () at eval.c:1228
#102 0x080485b4 in main (argc=2, argv=0xbffff9d4, envp=0xbffff9e0) at main.c:50
#103 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

In This Thread