Project

General

Profile

Actions

Backport #8220

closed

Segmentation fault when providing defined? operator with empty parentheses

Added by RossDavidSmith (Ross Smith) about 11 years ago. Updated about 11 years ago.


Description

=begin
Reproducing steps:

  • Execute the code: (({defined? ()}))

Ruby version:

  • ((%ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]%))

Expected result:

  • Expected the same error as ruby 1.9.3: ((%syntax error, unexpected ')'%))

Actual result:

  • Ruby crashed with the attached error log:
    =end

Files

error_log.txt (10 KB) error_log.txt RossDavidSmith (Ross Smith), 04/05/2013 01:01 AM

Related issues 1 (0 open1 closed)

Follows Ruby master - Bug #8224: defined?(()) and defined? () are inconsistentClosed04/05/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0