From: Christian Neukirchen Date: 2005-01-02T02:00:18+09:00 Subject: Re: [BUG] Segfault in Thread#initialize / caller Florian Gro� writes: >> -:6: [BUG] Segmentation fault >> ruby 1.8.2 (2004-12-25) [i386-mswin32] >> This application has requested the Runtime to terminate it in an >> unusual way. >> Please contact the application's support team for more information. > > Chris2 was able to reproduce this on Mac OS X and is going to post a > backtrace soon. There you go: Program received signal EXC_BAD_ACCESS, Could not access memory. 0xffff8a60 in __memcpy () (gdb) bt #0 0xffff8a60 in __memcpy () #1 0x001d28c8 in rb_thread_save_context (th=0x1804000) at eval.c:9837 #2 0x001d5050 in rb_thread_start_0 (fn=0x1d52c4 , arg=0x28620, th=0x1804000) at eval.c:11424 #3 0x001ca0d0 in rb_call0 (klass=216968, recv=164888, id=2961, oid=2961, argc=0, argv=0xbfff1ec4, body=0x34f24, nosuper=0) at eval.c:5522 #4 0x001caa18 in rb_call (klass=216968, recv=164888, mid=2961, argc=0, argv=0xbfff1ec4, scope=1) at eval.c:5743 #5 0x001cac20 in rb_f_send (argc=0, argv=0xbfff1ec4, recv=164888) at ruby.h:631#6 0x001ca0d0 in rb_call0 (klass=232588, recv=164888, id=4033, oid=4033, argc=1, argv=0xbfff1ec0, body=0x36d60, nosuper=0) at eval.c:5522 #7 0x001caa18 in rb_call (klass=232588, recv=164888, mid=4033, argc=1, argv=0xbfff1ec0, scope=0) at eval.c:5743 #8 0x001c5280 in rb_eval (self=227768, n=0xbfff0ea0) at ruby.h:631 #9 0x001c42dc in rb_eval (self=227768, n=0xbfff0ea0) at eval.c:2949 #10 0x001c847c in rb_yield_0 (val=164888, self=227768, klass=0, flags=1, avalue=2) at eval.c:4726 #11 0x001d5088 in rb_thread_start_0 (fn=0x1d52c4 , arg=0x1f8cc, th=0x184c000) at eval.c:11426 #12 0x001ca0d0 in rb_call0 (klass=216968, recv=129248, id=2961, oid=2961, argc=1, argv=0xbfff6040, body=0x34f24, nosuper=0) at eval.c:5522 #13 0x001caa18 in rb_call (klass=216968, recv=129248, mid=2961, argc=1, argv=0xbfff6040, scope=1) at eval.c:5743 #14 0x001cdaac in rb_obj_call_init (obj=129248, argc=1, argv=0xbfff6040) at eval.c:7215 #15 0x001d53d8 in rb_thread_s_new (argc=129248, argv=0x25d56c, klass=1) at eval.c:11538 #16 0x001ca0d0 in rb_call0 (klass=216948, recv=216968, id=3369, oid=3369, argc=1, argv=0xbfff6040, body=0x34f4c, nosuper=0) at eval.c:5522 #17 0x001caa18 in rb_call (klass=216948, recv=216968, mid=3369, argc=1, argv=0xbfff6040, scope=0) at eval.c:5743 #18 0x001c5280 in rb_eval (self=227768, n=0xbfff0ea0) at ruby.h:631 #19 0x001c42dc in rb_eval (self=227768, n=0xbfff0ea0) at eval.c:2949 #20 0x001c847c in rb_yield_0 (val=164888, self=227768, klass=0, flags=0, avalue=0) at eval.c:4726 #21 0x001aed10 in rb_ary_each (ary=165768) at array.c:1131 #22 0x001ca0d0 in rb_call0 (klass=204728, recv=165768, id=3833, oid=3833, argc=0, argv=0x0, body=0x31b94, nosuper=0) at eval.c:5522 #23 0x001caa18 in rb_call (klass=204728, recv=165768, mid=3833, argc=0, argv=0x0, scope=0) at eval.c:5743 #24 0x001c5280 in rb_eval (self=227768, n=0xbfff0ea0) at ruby.h:631 #25 0x001c42dc in rb_eval (self=227768, n=0xbfff0ea0) at eval.c:2949 #26 0x001c847c in rb_yield_0 (val=6, self=227768, klass=0, flags=0, avalue=0) at eval.c:4726 #27 0x001c8974 in rb_f_loop () at eval.c:4870 #28 0x001ca0d0 in rb_call0 (klass=232588, recv=227768, id=3937, oid=2428784, argc=0, argv=0x0, body=0x370f8, nosuper=2429004) at eval.c:5522 #29 0x001caa18 in rb_call (klass=232588, recv=227768, mid=3937, argc=0, argv=0x0, scope=1) at eval.c:5743 #30 0x001c5280 in rb_eval (self=227768, n=0xbfff0ea0) at ruby.h:631 #31 0x001c42dc in rb_eval (self=227768, n=0xbfff0ea0) at eval.c:2949 #32 0x001c0f80 in ruby_exec_internal () at eval.c:1473 #33 0x001c0fdc in ruby_exec () at eval.c:1493 #34 0x001c1024 in ruby_run () at eval.c:1503 #35 0x00001d84 in main (argc=1, argv=0xbffffcec, envp=0xed24) at main.c:46 #36 0x00001844 in _start (argc=1, argv=0xbffffcec, envp=0xbffffcf4) at /SourceCache/Csu/Csu-47/crt.c:267 #37 0x8fe1a558 in __dyld__dyld_start () > Regards, > Florian Gross Happy hacking, Christian Neukirchen