From: Wai-Sun Chia Date: 2001-09-19T20:05:19+09:00 Subject: [ruby-talk:21387] Segfault: ruby 1.7.1 (2001-09-08) during mod_ruby-0.9.3 build [root@caspar root]# ruby -v ruby 1.7.1 (2001-09-08) [i686-linux-gnu] [root@caspar mod_ruby-0.9.3]# gdb ruby GNU gdb Red Hat Linux 7.x (5.0rh-12) Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (no debugging symbols found)... (gdb) set args configure.rb (gdb) r Starting program: /usr/bin/ruby configure.rb checking for a BSD compatible install... Program received signal SIGSEGV, Segmentation fault. 0x40090c77 in rb_reg_search (re=1076386688, str=1076849592, pos=0, reverse=0) at re.c:657 657 re_copy_registers(RMATCH(match)->regs, ®s); (gdb) bt #0 0x40090c77 in rb_reg_search (re=1076386688, str=1076849592, pos=0, reverse=0) at re.c:657 #1 0x400b02d8 in rb_str_split_m (argc=1, argv=0xbfffc460, str=1076849592) at string.c:2398 #2 0x4004db69 in call_cfunc (func=0x400affb4 , recv=1076849592, len=-1, argc=1, argv=0xbfffc460) at eval.c:4294 #3 0x4004e4be in rb_call0 (klass=1076455948, recv=1076849592, id=4265, argc=1, argv=0xbfffc460, body=0x402962b4, nosuper=1) at eval.c:4433 #4 0x4004ef59 in rb_call (klass=1076455948, recv=1076849592, mid=4265, argc=1, argv=0xbfffc460, scope=0) at eval.c:4650 #5 0x40048678 in rb_eval (self=1076460328, n=0x40285b44) at eval.c:2608 #6 0x400476c0 in rb_eval (self=1076460328, n=0x40285414) at eval.c:2358 #7 0x40046a51 in rb_eval (self=1076460328, n=0x40285360) at eval.c:2096 #8 0x4004c126 in rb_yield_0 (val=1076849732, self=1076460328, klass=0, pcall=0) at eval.c:3705 #9 0x4004c468 in rb_yield (val=1076849732) at eval.c:3772 #10 0x400598c4 in rb_callcc (self=1076460328) at eval.c:8847 #11 0x4004db83 in call_cfunc (func=0x40059544 , recv=1076460328, len=0, argc=0, argv=0x0) at eval.c:4297 #12 0x4004e4be in rb_call0 (klass=1076464788, recv=1076460328, id=5977, argc=0, argv=0x0, body=0x402930c8, nosuper=1) at eval.c:4433 #13 0x4004ef59 in rb_call (klass=1076464788, recv=1076460328, mid=5977, argc=0, argv=0x0, scope=1) at eval.c:4650 ---Type to continue, or q to quit--- #14 0x40048927 in rb_eval (self=1076460328, n=0x402852c0) at eval.c:2621 #15 0x4004763b in rb_eval (self=1076460328, n=0x402852d4) at eval.c:2349 #16 0x4004970d in rb_eval (self=1076460328, n=0x402852ac) at eval.c:2788 #17 0x40046a51 in rb_eval (self=1076460328, n=0x40285298) at eval.c:2096 #18 0x4004ea63 in rb_call0 (klass=1076464928, recv=1076460328, id=9733, argc=0, argv=0x0, body=0x40285298, nosuper=0) at eval.c:4557 #19 0x4004ef59 in rb_call (klass=1076464928, recv=1076460328, mid=9733, argc=0, argv=0x0, scope=1) at eval.c:4650 #20 0x40048927 in rb_eval (self=1076460328, n=0x4027eda8) at eval.c:2621 #21 0x40046a51 in rb_eval (self=1076460328, n=0x40289d84) at eval.c:2096 #22 0x40044066 in eval_node (self=1076460328, node=0x40289d84) at eval.c:1068 #23 0x40044582 in ruby_run () at eval.c:1200 #24 0x080486de in main () at eval.c:41 #25 0x401502ae in __libc_start_main (main=0x80486b0
, argc=2, ubp_av=0xbffff8a4, init=0x8048518 <_init>, fini=0x8048730 <_fini>, rtld_fini=0x4000cf28 <_dl_fini>, stack_end=0xbffff89c) at ../sysdeps/generic/libc-start.c:129 -- Wai-Sun "Squidster" Chia RHCE/Professional Services Linux/Unix/Web Developer