From: Craig Burgess Date: 2002-01-25T02:56:29+09:00 Subject: Re: installing mod_ruby --> seg fault in ruby-rdtool Hi, Thank you for the guidance. Now my ignorance is going to show. I couldn't make the change to the racc file because I couldn't find the string in the file. There was no reference in racc to "architecture" or "i686." I must be missing something. Here is all that I could find which included "path" ===================== Racc_Options = < file name of output [.tab.rb] o -e --executable insert #! line in output ('ruby' to default) ....... RUBY_PATH = ::Config::CONFIG['bindir'] + '/' + ::Config::CONFIG['ruby_install_name'] def executable( path ) @f.print "#!#{path == 'ruby' ? RUBY_PATH : path}\n\n" end ================= Unable to execute step #1, I moved on to attempt step #2. Nothing happened - should there have been some kind of result? felix# ruby test.rb felix# If it would help I can provide the complete racc file as it is here. Craig "Minero Aoki" wrote in message news:20020123122737E.aamine@mx.edit.ne.jp... > Hi, > > In mail "Re: installing mod_ruby --> seg fault in ruby-rdtool" > "Craig Burgess" wrote: > > > (gdb) run -S racc rd/rdblockparser.ry > > Starting program: /usr/local/bin/ruby -S racc rd/rdblockparser.ry > > (no debugging symbols found)...(no debugging symbols found)... > > (no debugging symbols found)...(no debugging symbols found)... > > (no debugging symbols found)...(no debugging symbols found)... > > Program received signal SIGSEGV, Segmentation fault. > > 0x1600eb488 in init_regs () from /usr/local/lib/libruby.so.16 > > This may be a bug of racc, especially its extention. > Please try these things and let me know the results. > > (test 1) > Remove architecture dependent pathes from ruby's load path > before executing racc. For example, in the file /usr/local/bin/racc > > #!/usr/local/bin/ruby > # > # racc > # > # Copyright (c) 1999-2001 Minero Aoki .... > ## Add the line below. > ## Architecture dependent pathes includes CPU name and OS name. > ## In my case it is 'i686-linux'. > > $:.delete_if {|path| /i686-linux/ === path } > > # > # This program is .... > (snip) > > Then, run racc command again. (you don't need to run racc from gdb.) > > (test 2) Execute attached ruby script. (I attach the file using > MIME multipart, because line length is very long.) > > If #1 does not fail, this is the bug of racc. Use racc without > extentions (keep test #1 addition). Racc can run without extentions. > > If #2 fail with SIGSEGV, this is the bug of ruby on Alpha. I don't > know the answer for this case. > > If #1 fail and #2 success ... this is more complex bug. > > -- Minero Aoki >