[ruby-dev:8067] Marshal#load segmentation fault
From:
a-shigi@... (A.Shigihara)
Date:
1999-10-20 05:41:08 UTC
List:
ruby-dev #8067
ども鴫原です。
SGmailでMarshal#loadがsegmantation faultで落ちたときのgdbのbacktraceです。
(gdb) backtrace
#0 st_lookup (table=0x0, key=0xb31 <Address 0xb31 out of bounds>,
value=0xbfff6ec8) at st.c:216
#1 0x804fb8e in search_method (klass=1075133280, id=2865, origin=0xbfff6ef0)
at eval.c:150
#2 0x804fbd6 in rb_get_method_body (klassp=0xbfff6f28, idp=0xbfff6f1c,
noexp=0xbfff6f18) at eval.c:171
#3 0x8057949 in rb_call (klass=1075133280, recv=1075157600, mid=2865, argc=0,
argv=0x0, scope=1) at eval.c:4025
#4 0x8057bf1 in rb_funcall (recv=1075157600, mid=2865, n=0) at eval.c:4122
#5 0x8061724 in rb_any_hash (a=1075157600) at hash.c:114
#6 0x808e5ca in st_insert (table=0x833b240, key=0x40159a60 "",
value=0x404beb90 "\a\002") at st.c:254
#7 0x8062006 in rb_hash_aset (hash=1074905548, key=1075157600, val=1078717328)
at hash.c:528
#8 0x8069cc4 in r_object (arg=0xbfff7154) at marshal.c:714
#9 0x8069c64 in r_object (arg=0xbfff7154) at marshal.c:700
#10 0x8069cba in r_object (arg=0xbfff7154) at marshal.c:713
#11 0x8069c64 in r_object (arg=0xbfff7154) at marshal.c:700
#12 0x8069f23 in load (arg=0xbfff7154) at marshal.c:806
#13 0x8056a42 in rb_ensure (b_proc=0x8069f18 <load>, data1=3221188948,
e_proc=0x8069f28 <load_ensure>, data2=3221188948) at eval.c:3545
#15 0x8056ef9 in call_cfunc (func=0x8069f48 <marshal_load>, recv=1075133000,
len=-1, argc=1, argv=0xbfff7314) at eval.c:3713
#16 0x805738e in rb_call0 (klass=1075225640, recv=1075133000, id=8129, argc=1,
argv=0xbfff7314, body=0x4012914c, nosuper=1) at eval.c:3852
#17 0x8057a2c in rb_call (klass=1075225640, recv=1075133000, mid=8129, argc=1,
argv=0xbfff7314, scope=1) at eval.c:4048
#18 0x805392c in rb_eval (self=1075133000, node=0x40175f30) at eval.c:2222
#19 0x80541f6 in rb_eval (self=1075133000, node=0x40175f6c) at eval.c:2361
#20 0x8052432 in rb_eval (self=1075133000, node=0x40175c10) at eval.c:1756
#21 0x8052432 in rb_eval (self=1075133000, node=0x401726b4) at eval.c:1756
#22 0x80576d5 in rb_call0 (klass=1075225960, recv=1075133000, id=11105,
argc=0, argv=0x0, body=0x40176200, nosuper=0) at eval.c:3956
#23 0x8057a2c in rb_call (klass=1075225960, recv=1075133000, mid=11105,
argc=0, argv=0x0, scope=0) at eval.c:4048
#24 0x805392c in rb_eval (self=1075133160, node=0x4016304c) at eval.c:2222
#25 0x80576d5 in rb_call0 (klass=1075189340, recv=1075133160, id=11105,
argc=0, argv=0xbfff8d64, body=0x40163024, nosuper=0) at eval.c:3956
#26 0x8057a2c in rb_call (klass=1075189340, recv=1075133160, mid=11105,
argc=1, argv=0xbfff8d60, scope=0) at eval.c:4048
#27 0x805392c in rb_eval (self=1078587268, node=0x4047db28) at eval.c:2222
#28 0x805424e in rb_eval (self=1078587268, node=0x4047db78) at eval.c:2371
#29 0x8055f0a in rb_yield_0 (val=1078117980, self=1078587268, klass=0,
acheck=0) at eval.c:3226
#30 0x8052ea6 in rb_eval (self=1078583008, node=0x404527f8) at eval.c:2047
#31 0x8054226 in rb_eval (self=1078583008, node=0x404528ac) at eval.c:2366
#32 0x8052432 in rb_eval (self=1078583008, node=0x40452550) at eval.c:1756
#33 0x8052432 in rb_eval (self=1078583008, node=0x4045235c) at eval.c:1756
#34 0x8052432 in rb_eval (self=1078583008, node=0x40451f10) at eval.c:1756
#35 0x8055f0a in rb_yield_0 (val=1078146220, self=1078583008, klass=0,
acheck=2) at eval.c:3226
#36 0x805a7ae in proc_call (proc=1078580428, args=1078146220) at eval.c:5625
#37 0x8056f0d in call_cfunc (func=0x805a634 <proc_call>, recv=1078580428,
len=-2, argc=1, argv=0x8339d00) at eval.c:3719
#38 0x805738e in rb_call0 (klass=1074961368, recv=1078580428, id=5609, argc=1,
argv=0x8339d00, body=0x40129b88, nosuper=1) at eval.c:3852
#39 0x8057a2c in rb_call (klass=1074961368, recv=1078580428, mid=5609, argc=1,
argv=0x8339d00, scope=1) at eval.c:4048
#40 0x8057c49 in rb_funcall2 (recv=1078580428, mid=5609, argc=1,
argv=0x8339d00) at eval.c:4132
#41 0x80511c1 in rb_eval_cmd (cmd=1078580428, arg=1078136660) at eval.c:1201
#42 0x400105c0 in tk_eval_cmd (argc=2, argv=0xbfffb570) at tkutil.c:21
#43 0x8056ef9 in call_cfunc (func=0x40010588 <tk_eval_cmd>, recv=1075407004,
len=-1, argc=2, argv=0xbfffb570) at eval.c:3713
#44 0x805738e in rb_call0 (klass=1075406664, recv=1075407004, id=12737,
argc=2, argv=0xbfffb570, body=0x401966e4, nosuper=1) at eval.c:3852
#45 0x8057a2c in rb_call (klass=1075406664, recv=1075407004, mid=12737,
argc=2, argv=0xbfffb570, scope=0) at eval.c:4048
#46 0x805392c in rb_eval (self=1078583008, node=0x40160478) at eval.c:2222
#47 0x8055f0a in rb_yield_0 (val=1078158840, self=1078583008, klass=0,
acheck=2) at eval.c:3226
#48 0x805a7ae in proc_call (proc=1078579948, args=1078158840) at eval.c:5625
#49 0x8056f0d in call_cfunc (func=0x805a634 <proc_call>, recv=1078579948,
len=-2, argc=18, argv=0x8339a68) at eval.c:3719
#50 0x805738e in rb_call0 (klass=1074961368, recv=1078579948, id=5609,
argc=18, argv=0x8339a68, body=0x40129b88, nosuper=1) at eval.c:3852
#51 0x8057a2c in rb_call (klass=1074961368, recv=1078579948, mid=5609,
argc=18, argv=0x8339a68, scope=1) at eval.c:4048
#52 0x8057c49 in rb_funcall2 (recv=1078579948, mid=5609, argc=18,
argv=0x8339a68) at eval.c:4132
#53 0x80511c1 in rb_eval_cmd (cmd=1078579948, arg=1078287560) at eval.c:1201
#54 0x400105c0 in tk_eval_cmd (argc=19, argv=0xbfffc084) at tkutil.c:21
#55 0x8056ef9 in call_cfunc (func=0x40010588 <tk_eval_cmd>, recv=1075407004,
len=-1, argc=19, argv=0xbfffc084) at eval.c:3713
#56 0x805738e in rb_call0 (klass=1075406664, recv=1075407004, id=12737,
argc=19, argv=0xbfffc084, body=0x401966e4, nosuper=1) at eval.c:3852
#57 0x8057a2c in rb_call (klass=1075406664, recv=1075407004, mid=12737,
argc=19, argv=0xbfffc084, scope=0) at eval.c:4048
#58 0x805392c in rb_eval (self=1075405544, node=0x4015bb44) at eval.c:2222
#59 0x80537b7 in rb_eval (self=1075405544, node=0x4015bb1c) at eval.c:2214
#60 0x80576d5 in rb_call0 (klass=1075395904, recv=1075405544, id=11481,
argc=0, argv=0xbfffcb9c, body=0x4015bae0, nosuper=0) at eval.c:3956
#61 0x8057a2c in rb_call (klass=1075395904, recv=1075405544, mid=11481,
argc=1, argv=0xbfffcb98, scope=0) at eval.c:4048
#62 0x805392c in rb_eval (self=1075007188, node=0x404569fc) at eval.c:2222
#63 0x8050c2c in eval_node (self=1075007188) at eval.c:1003
#64 0x8058103 in eval (self=1075007188, src=1078355724, scope=4,
file=0x80a0a99 "(eval)", line=475) at eval.c:4314
#65 0x8050fe9 in rb_eval_string (
str=0x8338e90 "TkCore.callback %Q!c0006 1283 1 1 0 1 256 -201048867 0 33 14 ?? 0 ?? 1 .w0004.w0005.w0006.w0007.w0015.w0017 5 663 130!") at eval.c:1135
#66 0x80567d6 in rb_rescue (b_proc=0x8050fb8 <rb_eval_string>,
data1=137596560, r_proc=0x40147308 <ip_eval_rescue>, data2=3221214008)
at eval.c:3481
#67 0x401473d3 in ip_ruby (clientData=0x0, interp=0x813c7f8, argc=2,
argv=0x813d3b0) at tcltklib.c:159
#68 0x40299f9e in TclExecuteByteCode ()
#69 0x4027b7fc in Tcl_EvalObj ()
#70 0x402bc332 in TclObjInterpProc ()
#71 0x40299f9e in TclExecuteByteCode ()
#72 0x4027b7fc in Tcl_EvalObj ()
#73 0x4027b5b3 in Tcl_Eval ()
#74 0x4027cee9 in Tcl_GlobalEval ()
#75 0x401ce933 in Tk_BindEvent ()
#76 0x401d35d6 in TkBindEventProc ()
#77 0x401d7618 in Tk_HandleEvent ()
#78 0x401d7a09 in WindowEventProc ()
#79 0x402b5273 in Tcl_ServiceEvent ()
#80 0x402b54d6 in Tcl_DoOneEvent ()
#81 0x401d7a90 in Tk_MainLoop ()
#82 0x401472c9 in lib_mainloop (self=1075410924) at tcltklib.c:99
#83 0x8056f03 in call_cfunc (func=0x40147274 <lib_mainloop>, recv=1075410924,
len=0, argc=0, argv=0x0) at eval.c:3716
#84 0x805738e in rb_call0 (klass=1075409964, recv=1075410924, id=13041,
argc=0, argv=0x0, body=0x401973a0, nosuper=1) at eval.c:3852
#85 0x8057a2c in rb_call (klass=1075409964, recv=1075410924, mid=13041,
argc=0, argv=0x0, scope=0) at eval.c:4048
#86 0x805392c in rb_eval (self=1075396024, node=0x40159f74) at eval.c:2222
#87 0x80576d5 in rb_call0 (klass=1075392064, recv=1075396024, id=13041,
argc=0, argv=0x0, body=0x40159f24, nosuper=0) at eval.c:3956
#88 0x8057a2c in rb_call (klass=1075392064, recv=1075396024, mid=13041,
argc=0, argv=0x0, scope=0) at eval.c:4048
#89 0x805392c in rb_eval (self=1075007188, node=0x404a7cec) at eval.c:2222
#90 0x8050c2c in eval_node (self=1075007188) at eval.c:1003
#91 0x8058c55 in rb_load (fname=1078624008, wrap=0) at eval.c:4685
#92 0x8059375 in rb_f_require (obj=1075007188, fname=1078624008) at eval.c:4860
#93 0x8056f0d in call_cfunc (func=0x8058ff0 <rb_f_require>, recv=1075007188,
len=1, argc=1, argv=0xbffff2b4) at eval.c:3719
#94 0x805738e in rb_call0 (klass=1075010708, recv=1075007188, id=8137, argc=1,
argv=0xbffff2b4, body=0x40129cc8, nosuper=1) at eval.c:3852
#95 0x8057a2c in rb_call (klass=1075010708, recv=1075007188, mid=8137, argc=1,
argv=0xbffff2b4, scope=1) at eval.c:4048
#96 0x805392c in rb_eval (self=1075007188, node=0x40126cd0) at eval.c:2222
#97 0x8050c2c in eval_node (self=1075007188) at eval.c:1003
#98 0x8050d1a in ruby_run () at eval.c:1039
#99 0x804fa5c in main (argc=3, argv=0xbffff928, envp=0xbffff938) at main.c:39