[#23332] to_str再考 — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

15 messages 2004/04/05

[#23380] [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

17 messages 2004/04/15
[#23400] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。落ちる場所がわかりました。

[#23402] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[#23403] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — nobu.nakada@... 2004/04/16

なかだです。

[#23405] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[#23407] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[ruby-dev:23380] [SEGV] make test-all (bccwin32 ruby1.9.0)

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2004-04-15 04:01:10 UTC
List: ruby-dev #23380
山本です。

make test-all が Segmantation fault しました。環境は bcc5.5.1 Win2000SP4 です。

E:\ruby-cvs\ruby>make test-all
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
        .\ruby.exe "./runruby.rb" --extout=".ext" -- -C ".//test" runner.rb --ru
nner=console
Loaded suite .
Started
...............................F................................................
................................................................................
............................E:/ruby-cvs/ruby/.ext/i386-bccwin32/socket.so: [BUG]
 Segmentation fault
ruby 1.9.0 (2004-04-14) [i386-bccwin32]


Abnormal program termination

** error -1073741819 ** deleting test-all


「アプリケーションエラー」エラーが発生したため、ruby.exe を終了します。プログラムを
もう一度開始する必要があります。エラーログを作成しています。

というダイアログが出ます。下のが、そのエラーログです。


アプリケーション例外が発生しました:
        アプリケーション:  (pid=608)
        発生時間:  2004/04/15 @ 12:53:25.862
        例外番号:  c0000005 (アクセス違反)

*----> タスク リスト <----*
   0 Idle.exe
   8 System.exe
 140 smss.exe
 164 csrss.exe
 184 winlogon.exe
 212 services.exe
 224 lsass.exe
 404 svchost.exe
 428 spoolsv.exe
 460 svchost.exe
 512 WinMgmt.exe
 652 Explorer.exe
 732 imejpmgr.exe
 764 vsc32cnf.exe
 772 vscvol.exe
 780 Internat.exe
 800 conime.exe
 636 schedule.exe
 640 nPOP.exe
1020 firefox.exe
 988 cmd.exe
1052 make.exe
 828 ruby.exe
 608 ruby.exe
 380 miniruby.exe
1068 drwtsn32.exe
   0 _Total.exe

(00400000 - 00412000) 
(77F80000 - 77FFD000) 
(02520000 - 025EA000) 
(79480000 - 794E2000) 
(77E50000 - 77F37000) 
(78780000 - 787F1000) 
(74FB0000 - 74FBA000) 
(74F90000 - 74FA4000) 
(78000000 - 78045000) 
(74F80000 - 74F88000) 
(77DE0000 - 77E45000) 
(77F40000 - 77F7E000) 
(75DF0000 - 75E0A000) 
(74F30000 - 74F4E000) 
(66940000 - 66956000) 
(67050000 - 67059000) 
(03390000 - 033A1000) 
(037B0000 - 037C3000) 
(03BD0000 - 03BE1000) 
(03FF0000 - 04004000) 
(04410000 - 04423000) 
(04830000 - 04844000) 
(04C50000 - 04C6A000) 
(05070000 - 05081000) 
(74F70000 - 74F77000) 
(777F0000 - 777FC000) 
(77950000 - 77974000) 
(772F0000 - 77303000) 
(774D0000 - 774D5000) 
(772D0000 - 772E7000) 
(750C0000 - 750CF000) 
(750E0000 - 7512F000) 
(79560000 - 7956F000) 
(75130000 - 75136000) 
(77920000 - 7794A000) 
(77A20000 - 77B0F000) 
(77980000 - 77A1B000) 
(77360000 - 7738F000) 
(77330000 - 77353000) 
(777E0000 - 777EE000) 
(78310000 - 783BE000) 
(79280000 - 792E1000) 
(77490000 - 774C3000) 
(77470000 - 77481000) 
(774E0000 - 77502000) 
(71710000 - 71794000) 
(70A70000 - 70AD5000) 
(77310000 - 77329000) 
(77790000 - 77798000) 
(07C90000 - 07CA4000) 
(080B0000 - 080C1000) 
(777A0000 - 777A5000) 
(084D0000 - 084E3000) 
(088F0000 - 08902000) 
(09570000 - 0958F000) 

スレッド ID 0x408 のステート ダンプ

eax=000002f9 ebx=02d10944 ecx=02416d20 edx=00000000 esi=00000000 edi=08e9046c
eip=02531b25 esp=02416d20 ebp=02417120 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00010202


ファンクション: rb_alias
        02531aff 8bc7             mov     eax,edi
        02531b01 c1e002           shl     eax,0x2
        02531b04 50               push    eax
        02531b05 e8d8b80500       call    Init_ext+0xa6 (0258d3e2)
        02531b0a 59               pop     ecx
        02531b0b 898574ffffff     mov     [ebp+0xffffff74],eax   ss:02417094=02416d20
        02531b11 33d2             xor     edx,edx
        02531b13 899560ffffff     mov     [ebp+0xffffff60],edx   ss:02417080=00000001
        02531b19 3bbd60ffffff     cmp     edi,[ebp+0xffffff60]   ss:02417080=00000001
        02531b1f 0f8ea7000000     jle     rb_alias+0x24f9 (02531bcc)
フォールト ->02531b25 ff7608           push    dword ptr [esi+0x8]    ds:00c59ee6=????????
        02531b28 53               push    ebx
        02531b29 e8e4e8ffff       call    rb_alias+0xd3f (02530412)
        02531b2e 83c408           add     esp,0x8
        02531b31 8b8d74ffffff     mov     ecx,[ebp+0xffffff74]   ss:02417094=02416d20
        02531b37 8b9560ffffff     mov     edx,[ebp+0xffffff60]   ss:02417080=00000001
        02531b3d 890491           mov     [ecx+edx*4],eax        ds:00000000=????????
        02531b40 8b7610           mov     esi,[esi+0x10]         ds:00c59ee6=????????
        02531b43 ff8560ffffff     inc dword ptr [ebp+0xffffff60] ss:02417080=00000001
        02531b49 3bbd60ffffff     cmp     edi,[ebp+0xffffff60]   ss:02417080=00000001
        02531b4f 7fd4             jg      rb_file_s_expand_path+0x1ea (02540725)
        02531b51 eb79             jmp     rb_iterate+0x8e (02534ecc)

*----> スタック バック トレース <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4 ファンクション名
02417120 02535E38 02D10944 02CFD834 02D110AC 00000004 !rb_alias 
02417248 025361C6 02D29A84 02D10944 00004CB1 00004CB1 !rb_with_disable_interrupt 
02417288 02531DC0 02D29A84 02D10944 00004CB1 00000002 !rb_with_disable_interrupt 
024176AC 02530BF7 02D10944 02CFEE3C 00000000 02CFEC14 !rb_alias 
02417AB8 025346F3 02D10944 02CFEC14 00000000 02D641A8 !rb_alias 
02417BB4 0253D65B 02D1065C 02D10944 00000000 00000002 !rb_iterator_p 
02417BDC 0253D426 02D1065C 02D641A8 00000000 FFFFFFFE !rb_thread_create 
02417CDC 0253D6E9 0253D5D1 02D1065C 02D641A8 02417D0C !rb_thread_group 
02417CF0 0253EAFE 02D1068C 02D1065C 02D1068C 00000000 !rb_thread_create 
02417D0C 02535A99 0253D6B3 02D1068C FFFFFFFE 00000000 !rb_throw 
02417E2C 025361C6 02BA899C 02D1068C 00000B91 00000B91 !rb_with_disable_interrupt 
02417E6C 0253632F 02BA899C 02D1068C 00000B91 00000000 !rb_with_disable_interrupt 
02417E90 0253802A 02D1068C 00000B91 00000000 00000000 !rb_funcall2 
02417EB0 0253D685 02D1068C 00000000 00000000 FFFFFFFF !rb_obj_call_init 
02417ECC 0253EB0E 00000000 00000000 02BA899C 02BA899C !rb_thread_create 
02417EEC 02535A99 0253D663 02BA899C FFFFFFFF 00000000 !rb_throw 
0241800C 025361C6 02BA8984 02BA899C 00000D29 00000D29 !rb_with_disable_interrupt 
0241804C 02531C13 02BA8984 02BA899C 00000D29 00000000 !rb_with_disable_interrupt 
02418468 02530F6F 02D10944 02CFF43C 02D10944 00000000 !rb_alias 
02418874 02535E38 02D10944 02CFEA7C 02D1650C 02D10944 !rb_alias 
02418988 025361C6 02D29A84 02D10944 00004C91 00004C91 !rb_with_disable_interrupt 
024189C8 02531DE5 02D29A84 02D10944 00004C91 00000000 !rb_with_disable_interrupt 
02418DE4 0253277F 02D10944 02D0135C 02D10944 00000000 !rb_alias 
024191F0 02535E38 02D10944 02D0162C 02D28A64 02D10944 !rb_alias 
02419304 025361C6 02D29A84 02D10944 00000B91 00000B91 !rb_with_disable_interrupt 
02419344 0253632F 02D29A84 02D10944 00000B91 00000000 !rb_with_disable_interrupt 
02419368 0253802A 02D10944 00000B91 00000000 00000000 !rb_funcall2 
02419388 02553070 02D10944 00000000 00000000 00000000 !rb_obj_call_init 
024193A0 0253EB0E 00000000 00000000 02D29A84 02D29A84 !rb_class_new_instance 
024193C0 02535A99 02553055 02D29A84 FFFFFFFF 00000000 !rb_throw 
024194E0 025361C6 02BAD2BC 02D29A84 00000D29 00000D29 !rb_with_disable_interrupt 
02419520 02531C13 02BAD2BC 02D29A84 00000D29 00000000 !rb_with_disable_interrupt 
0241993C 02532848 02D0F69C 02D43674 02BAD2EC 00000000 !rb_alias 
02419D48 025338B7 02D0F69C 02D430EC 00000001 00000000 !rb_alias 
02419DE8 025333F3 02D0F69C 02D2D864 02D0315C 02D44D54 !rb_alias 
0241A204 0252E533 02BABBDC 02D4E63C 00000000 02D4E63C !rb_alias 
0241A21C 0253739C 02BABBDC 02D4E63C 00000000 02D5C8BC !ruby_init 
0241A2DC 02537B64 02D51234 00000000 00000001 00000001 !rb_load 
0241A35C 025377BD 02D5C8BC 00000000 0241A388 0253EB2A !rb_require_safe 
0241A36C 0253EB2A 02BABBDC 02D5C8BC 02BABBDC 00000001 !rb_f_require 
0241A388 02535A99 025377AC 02BABBDC 00000001 00000001 !rb_throw 
0241A4A8 025361C6 02BAD25C 02BABBDC 00002381 00002381 !rb_with_disable_interrupt 
0241A4E8 02531DC0 02BAD25C 02BABBDC 00002381 00000001 !rb_with_disable_interrupt 
0241A908 0252E533 02BABBDC 02D1B54C 00000000 02D1B54C !rb_alias 
0241A920 0253739C 02BABBDC 02D1B54C 00000000 02D1E024 !ruby_init 
0241A9E0 02537B64 02D1B7D4 00000000 00000001 00000001 !rb_load 
0241AA60 025377BD 02D1E024 00000000 0241AA8C 0253EB2A !rb_require_safe 
0241AA70 0253EB2A 02C386CC 02D1E024 02C386CC 00000001 !rb_f_require 
0241AA8C 02535A99 025377AC 02C386CC 00000001 00000001 !rb_throw 
0241ABAC 025361C6 02BAD25C 02C386CC 00002381 00002381 !rb_with_disable_interrupt 
0241ABEC 02531DC0 02BAD25C 02C386CC 00002381 00000001 !rb_with_disable_interrupt 
0241B010 02531517 02C386CC 02C319C4 02C386CC 00000000 !rb_alias 
0241B41C 02535E38 02C386CC 02C314B4 02C4E77C 00000004 !rb_alias 
0241B550 025361C6 02C53E94 02C386CC 00003271 00003271 !rb_with_disable_interrupt 
0241B590 02531DC0 02C53E94 02C386CC 00003271 00000003 !rb_with_disable_interrupt 
0241B9B8 025346F3 02C386CC 02C32C3C 00000000 02D479C4 !rb_alias 
0241BAB4 02534990 02D476DC 02C386CC 00000000 00000000 !rb_iterator_p 
0241BAD0 02522413 02D476DC 00000000 00000000 0241BAFC !rb_yield 
0241BAE4 0253EB1C 02D479C4 02D479C4 00000000 02BA4C64 !rb_ary_each 
0241BAFC 02535A99 025223FC 02D479C4 00000000 00000000 !rb_throw 
0241BC1C 025361C6 02BA515C 02D479C4 00000F09 00000F09 !rb_with_disable_interrupt 
0241BC5C 02531C13 02BA515C 02D479C4 00000F09 00000000 !rb_with_disable_interrupt 
0241C078 02530F6F 02C386CC 02C33A94 02C386CC 00000000 !rb_alias 
0241C484 02535E38 02C386CC 02C327D4 02C4EA94 00000004 !rb_alias 
0241C5B4 025361C6 02C53E94 02C386CC 00003221 00003221 !rb_with_disable_interrupt 
0241C5F4 02531DC0 02C53E94 02C386CC 00003221 00000002 !rb_with_disable_interrupt 
0241CA18 02532715 02C386CC 02C333BC 00000000 02C32C3C !rb_alias 
0241CE24 025346F3 02C386CC 02C32C3C 00000000 02C4DE7C !rb_alias 
0241CF20 02534990 02C4DAEC 02C386CC 00000000 00000000 !rb_iterator_p 
0241CF3C 02522413 02C4DAEC 00000000 00000000 0241CF68 !rb_yield 
0241CF50 0253EB1C 02C4DE7C 02C4DE7C 00000000 02BA4C64 !rb_ary_each 
0241CF68 02535A99 025223FC 02C4DE7C 00000000 00000000 !rb_throw 
0241D088 025361C6 02BA515C 02C4DE7C 00000F09 00000F09 !rb_with_disable_interrupt 
0241D0C8 02531C13 02BA515C 02C4DE7C 00000F09 00000000 !rb_with_disable_interrupt 
0241D4E4 02530F6F 02C386CC 02C33A94 02C386CC 00000000 !rb_alias 
0241D8F0 02535E38 02C386CC 02C327D4 02C4EA94 00000004 !rb_alias 
0241DA20 025361C6 02C53E94 02C386CC 00003221 00003221 !rb_with_disable_interrupt 
0241DA60 02531DC0 02C53E94 02C386CC 00003221 00000002 !rb_with_disable_interrupt 
0241DE84 02535E38 02C386CC 02C34C4C 02C5168C 00000004 !rb_alias 
0241DFB0 025361C6 02C53E94 02C386CC 00000EB1 00000EB1 !rb_with_disable_interrupt 
0241DFF0 02531C13 02C53E94 02C386CC 00000EB1 00000001 !rb_with_disable_interrupt 
0241E418 025346F3 02C5159C 02B881AC 0241E5EC 00000006 !rb_alias 
0241E514 025396AF 02C38A5C 02C5159C 00000000 00000001 !rb_iterator_p 
0241E614 025397CF 02C512CC 02C38A5C 00000006 00000000 !rb_f_lambda 
0241E62C 0253EAFE 02C512CC 02C38A5C 02C512CC 00000001 !rb_f_lambda 
0241E648 02535A99 025397BD 02C512CC FFFFFFFE 00000001 !rb_throw 
0241E768 025361C6 02B9B61C 02C512CC 0000014C 0000014C !rb_with_disable_interrupt 
0241E7A8 02531C13 02B9B61C 02C512CC 0000014C 00000001 !rb_with_disable_interrupt 
0241EBC8 0253277F 02C4F244 02B83D84 02C4F244 00000000 !rb_alias 
0241EFD4 02535E38 02C4F244 02B83C7C 02C4FBD4 00000004 !rb_alias 
0241F0F8 025361C6 02C5159C 02C4F244 00001401 00001401 !rb_with_disable_interrupt 
0241F138 02531C13 02C5159C 02C4F244 00001401 00000000 !rb_with_disable_interrupt 
0241F558 02535E38 02C5159C 02B8B614 02C51434 00000004 !rb_alias 
0241F68C 025361C6 02C5156C 02C5159C 00001401 00001401 !rb_with_disable_interrupt 
0241F6CC 02531C13 02C5156C 02C5159C 00001401 00000002 !rb_with_disable_interrupt 
0241FAF0 02531CE5 02BABBDC 02B995AC 02531CC1 02B9C90C !rb_alias 
0241FF04 0252E533 02BABBDC 02B99BC4 004090B8 00000000 !rb_alias 
0241FF1C 0252E9C1 02BABBDC 02B99BC4 7FFDF000 0241FF7C !ruby_init 
0241FF7C 0252EA0B 0241FF8C 0040117B 0241FFB8 00406912 !ruby_exec 
0241FF84 0040117B 0241FFB8 00406912 00000005 02B728F8 !ruby_run 

*----> ロウ スタック ダンプ <----*
02416d20  f9 02 00 00 44 09 d1 02 - 00 00 00 00 34 d8 cf 02  ....D.......4...
02416d30  98 6e 41 02 dc 40 ba 02 - e4 94 d2 02 4c 01 00 00  .nA..@......L...
02416d40  04 6c d2 02 64 07 d1 02 - 39 18 00 00 44 6e 41 02  .l..d...9...DnA.
02416d50  74 ac d0 02 64 07 d1 02 - 00 00 00 00 30 6d 41 02  t...d.......0mA.
02416d60  74 5c 53 02 b0 ff 41 02 - ff ff ff ff cc 6d 41 02  t\S...A......mA.
02416d70  30 6e 41 02 01 00 00 00 - 04 00 00 00 c4 04 d1 02  0nA.............
02416d80  00 00 00 00 bc 78 41 02 - 00 00 00 00 24 8a b9 02  .....xA.....$...
02416d90  00 00 00 00 00 00 00 00 - 38 1f 00 00 7f 0f 00 00  ........8.......
02416da0  44 d2 ba 02 7f 0f 00 00 - cc 6d 41 02 40 d7 52 02  D........mA.@.R.
02416db0  dc e2 ba 02 7f 0f 00 00 - c8 6d 41 02 28 6e 41 02  .........mA.(nA.
02416dc0  e4 94 d2 02 01 00 00 00 - 98 6e 41 02 4c 01 00 00  .........nA.L...
02416dd0  4c 01 00 00 04 43 ba 02 - 54 7b 41 02 00 00 00 00  L....C..T{A.....
02416de0  04 f0 cf 02 00 00 00 00 - 00 00 00 00 71 d0 0f 00  ............q...
02416df0  00 00 00 00 00 00 00 00 - 9e 20 00 00 7c b3 d0 02  ......... ..|...
02416e00  01 00 00 00 00 00 00 00 - 64 b3 d0 02 9c 05 d1 02  ........d.......
02416e10  84 9a d2 02 4c 07 d1 02 - 00 00 00 00 4c 96 d2 02  ....L.......L...
02416e20  01 00 00 00 00 00 00 00 - f4 75 41 02 00 00 00 00  .........uA.....
02416e30  24 39 d0 02 00 00 00 00 - 84 d9 cf 02 44 09 d1 02  $9..........D...
02416e40  44 09 d1 02 02 00 00 00 - 3c 71 41 02 b1 4c 00 00  D.......<qA..L..
02416e50  b1 4c 00 00 84 9a d2 02 - 54 7b 41 02 00 00 00 00  .L......T{A.....

スレッド ID 0x238 のステート ダンプ

eax=02447000 ebx=00000004 ecx=078af9cc edx=00000000 esi=77f82873 edi=00000004
eip=77f8287e esp=078afd24 ebp=078afd70 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000246


ファンクション: NtWaitForMultipleObjects
        77f82873 b8e9000000       mov     eax,0xe9
        77f82878 8d542404         lea     edx,[esp+0x4]          ss:08509c0b=????????
        77f8287c cd2e             int     2e
        77f8287e c21400           ret     0x14

*----> スタック バック トレース <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4 ファンクション名
078AFD70 77E58F0D 078AFD48 00000001 00000000 00000000 ntdll!NtWaitForMultipleObjects 
078AFFB4 77E5438B 00000005 000B000A 794D5107 02422BF0 kernel32!WaitForMultipleObjects 
078AFFEC 00000000 777E21FE 02422BF0 00000000 000000C8 kernel32!TlsSetValue 

*----> ロウ スタック ダンプ <----*
078afd24  23 3c e5 77 04 00 00 00 - 48 fd 8a 07 01 00 00 00  #<.w....H.......
078afd34  00 00 00 00 00 00 00 00 - 01 00 00 00 f0 2b 42 02  .............+B.
078afd44  01 00 00 00 50 03 00 00 - 4c 03 00 00 3c 03 00 00  ....P...L...<...
078afd54  d0 02 00 00 84 10 46 80 - 00 29 40 80 ff ff ff ff  ......F..)@.....
078afd64  d0 4a 97 bd 5e 1a 45 80 - 90 44 af 81 b4 ff 8a 07  .J..^.E..D......
078afd74  0d 8f e5 77 48 fd 8a 07 - 01 00 00 00 00 00 00 00  ...wH...........
078afd84  00 00 00 00 00 00 00 00 - b2 22 7e 77 04 00 00 00  ........."~w....
078afd94  b0 fe 8a 07 00 00 00 00 - ff ff ff ff f0 2b 42 02  .............+B.
078afda4  07 51 4d 79 0a 00 0b 00 - 14 cf 70 81 10 4b 97 bd  .QMy......p..K..
078afdb4  78 44 af 81 00 00 00 00 - 01 00 00 00 38 00 00 00  xD..........8...
078afdc4  23 00 00 00 23 00 00 00 - 0a 00 0b 00 07 51 4d 79  #...#........QMy
078afdd4  f0 2b 42 02 ff ff ff ff - 14 4c 41 02 fe 21 7e 77  .+B......LA..!~w
078afde4  f8 eb fd 7f 33 43 e5 77 - 1b 00 00 00 00 02 00 00  ....3C.w........
078afdf4  fc ff 8a 07 23 00 00 00 - 0c 4b 97 bd 05 00 00 00  ....#....K......
078afe04  51 f5 40 80 98 00 00 00 - f8 00 00 00 98 00 00 00  Q.@.............
078afe14  00 4b 97 bd 05 00 00 00 - 24 f0 00 e1 05 00 00 00  .K......$.......
078afe24  fe ff f8 00 98 cf 70 81 - 34 00 00 c0 e8 8c 35 e2  ......p.4.....5.
078afe34  02 00 00 00 49 03 00 00 - e8 8c 35 e2 5c 4b 97 bd  ....I.....5.\K..
078afe44  50 07 b3 81 b4 4b 97 bd - 5e 1a 45 80 28 71 00 e1  P....K..^.E.(q..
078afe54  c0 c7 b2 81 a0 db 46 80 - e8 06 b3 81 b0 4c 97 bd  ......F......L..



In This Thread

Prev Next