Project

General

Profile

This project is closed and read-only.

Actions

Backport #8220

closed

Segmentation fault when providing defined? operator with empty parentheses

Backport #8220: Segmentation fault when providing defined? operator with empty parentheses

Added by RossDavidSmith (Ross Smith) over 13 years ago. Updated over 13 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 open — 1 closed)

Follows Ruby - Bug #8224: defined?(()) and defined? () are inconsistentClosedActions
Actions

Also available in: PDF Atom