From: ryand-ruby@zenspider.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:104916] [Ruby master Bug#18075] Crasher using ripper + yydebug
Date: Sat, 14 Aug 2021 04:20:07 +0000 (UTC) [thread overview]
Message-ID: <redmine.issue-18075.20210814042007.75@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-18075.20210814042007.75@ruby-lang.org
Issue #18075 has been reported by zenspider (Ryan Davis).
----------------------------------------
Bug #18075: Crasher using ripper + yydebug
https://bugs.ruby-lang.org/issues/18075
* Author: zenspider (Ryan Davis)
* Status: Open
* Priority: Normal
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
`method `inspect' called on unexpected T_NODE object` via 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
--
https://bugs.ruby-lang.org/
parent reply other threads:[~2021-08-14 4:20 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <redmine.issue-18075.20210814042007.75@ruby-lang.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-18075.20210814042007.75@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).