Project

General

Profile

Actions

Bug #18075

closed

Crasher using ripper + yydebug

Added by zenspider (Ryan Davis) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:104916]

Description

method inspect' called on unexpected T_NODE objectvia the following with-d` (see output at end):

#!/usr/bin/env ruby -wvs

$d ||= false

require "ripper/sexp"

src = "'woot'"

rip = Ripper::SexpBuilderPP.new src
rip.yydebug = $d

p rip.parse # boom

__END__
############################################################
% % multiruby ./ripper_bug.rb
...
Passed: 2.3.8, 2.4.9, 2.5.8, 2.6.6, 2.7.3, 3.0.1 master
Failed:

############################################################
% multiruby ./ripper_bug.rb -d
...
Entering state 299
./ripper_bug.rb:11:in `parse': method `inspect' called on unexpected T_NODE object (0x000000012f8db898 flags=0x1e1b) (NotImplementedError)
        from ./ripper_bug.rb:11:in `<main>'

RESULT = pid 24703 exit 1

TOTAL RESULT = 3 failures out of 6

Passed: 2.3.8, 2.4.9, 2.5.8
Failed: 2.6.6, 2.7.3, 3.0.1, master

Exists on 2.6 and up

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Status changed from Open to Closed

Applied in changeset git|2aa6826e81ec880f5e98fa995e44fae0819be95d.


Extract the wrapped value when yydebug [Bug #18075]

Actions

Also available in: Atom PDF

Like0
Like0