Project

General

Profile

Actions

Bug #345

closed

1.9 racc appears to seg fault

Added by rogerdpack (Roger Pack) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-core:17922]

Description

=begin
ruby_parser, which uses racc, generates a seg fault in 1.9
require 'ruby_parser'

irb(main):003:0> RubyParser.new.parse "1+1"

/Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/ruby_parser-1.0.0/lib/ruby_lexer.rb:2617: [BUG] Bus Error
ruby 1.9.0 (2008-07-23 revision 17865) [i686-darwin9.3.0]

-- control frame ----------
c:0029 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC :method_missing
c:0028 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC :old_initialize
c:0027 p:0029 s:0092 b:0092 l:000091 d:000091 METHOD /Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/ruby_parser-1.0.0/lib/ruby_lexer.rb:2617
c:0026 p:---- s:0088 b:0088 l:000087 d:000087 FINISH :(null)

Also as a note, with the latest 1.9 SVN HEAD, it doesn't compile:

gcc -I. -I../../.ext/include/i686-darwin9.3.0 -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H="extconf.h" -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-parentheses -fno-common -pipe -fno-common -o ossl_pkcs7.o -c ossl_pkcs7.c
ossl_pkcs7.c: In function ‘ossl_pkcs7si_new’:
ossl_pkcs7.c:89: error: ‘d2i_of_void’ undeclared (first use in this function)

though that's not the real issue here.
-R
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0