ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:71356] [Ruby trunk - Bug #11663] [Open] Segfault when using multiple keywords if the first keyword is invalid
       [not found] <redmine.issue-11663.20151105212324@ruby-lang.org>
@ 2015-11-05 21:23 ` smacgaha
  2015-11-06  0:04 ` [ruby-core:71362] [Ruby trunk - Bug #11663] " nobu
  2015-11-24 16:03 ` [ruby-core:71656] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: smacgaha @ 2015-11-05 21:23 UTC (permalink / raw)
  To: ruby-core

Issue #11663 has been reported by Sean MacGahan.

----------------------------------------
Bug #11663: Segfault when using multiple keywords if the first keyword is invalid
https://bugs.ruby-lang.org/issues/11663

* Author: Sean MacGahan
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.3
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
When loading a method with an invalid keyword (such as one that ends in a question mark), a syntax error occurs as is expected. However, when loading a method with multiple keywords, if the first keyword is invalid then a segmentation fault occurs.

```
def foo(arg1?:) end         #=> syntax error
def foo(arg1?:, arg2) end   #=> syntax error (tIDENTIFIER as expected)
def foo(arg1:) end          #=> no syntax error
def foo(arg1:, arg2?:) end  #=> syntax error
def foo(arg1, arg2?:) end   #=> syntax error

def foo(arg1?:, arg2:) end  #=> segfault
def foo(arg1?:, arg2?:) end #=> segfault
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:71362] [Ruby trunk - Bug #11663] Segfault when using multiple keywords if the first keyword is invalid
       [not found] <redmine.issue-11663.20151105212324@ruby-lang.org>
  2015-11-05 21:23 ` [ruby-core:71356] [Ruby trunk - Bug #11663] [Open] Segfault when using multiple keywords if the first keyword is invalid smacgaha
@ 2015-11-06  0:04 ` nobu
  2015-11-24 16:03 ` [ruby-core:71656] " nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: nobu @ 2015-11-06  0:04 UTC (permalink / raw)
  To: ruby-core

Issue #11663 has been updated by Nobuyoshi Nakada.

Description updated
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED

----------------------------------------
Bug #11663: Segfault when using multiple keywords if the first keyword is invalid
https://bugs.ruby-lang.org/issues/11663#change-54728

* Author: Sean MacGahan
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.3
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
When loading a method with an invalid keyword (such as one that ends in a question mark), a syntax error occurs as is expected. However, when loading a method with multiple keywords, if the first keyword is invalid then a segmentation fault occurs.

```ruby
def foo(arg1?:) end         #=> syntax error
def foo(arg1?:, arg2) end   #=> syntax error (tIDENTIFIER as expected)
def foo(arg1:) end          #=> no syntax error
def foo(arg1:, arg2?:) end  #=> syntax error
def foo(arg1, arg2?:) end   #=> syntax error

def foo(arg1?:, arg2:) end  #=> segfault
def foo(arg1?:, arg2?:) end #=> segfault
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:71656] [Ruby trunk - Bug #11663] Segfault when using multiple keywords if the first keyword is invalid
       [not found] <redmine.issue-11663.20151105212324@ruby-lang.org>
  2015-11-05 21:23 ` [ruby-core:71356] [Ruby trunk - Bug #11663] [Open] Segfault when using multiple keywords if the first keyword is invalid smacgaha
  2015-11-06  0:04 ` [ruby-core:71362] [Ruby trunk - Bug #11663] " nobu
@ 2015-11-24 16:03 ` nagachika00
  2 siblings, 0 replies; 3+ messages in thread
From: nagachika00 @ 2015-11-24 16:03 UTC (permalink / raw)
  To: ruby-core

Issue #11663 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

Backported into `ruby_2_2` branch at r52742.

----------------------------------------
Bug #11663: Segfault when using multiple keywords if the first keyword is invalid
https://bugs.ruby-lang.org/issues/11663#change-55061

* Author: Sean MacGahan
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.3
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
----------------------------------------
When loading a method with an invalid keyword (such as one that ends in a question mark), a syntax error occurs as is expected. However, when loading a method with multiple keywords, if the first keyword is invalid then a segmentation fault occurs.

```ruby
def foo(arg1?:) end         #=> syntax error
def foo(arg1?:, arg2) end   #=> syntax error (tIDENTIFIER as expected)
def foo(arg1:) end          #=> no syntax error
def foo(arg1:, arg2?:) end  #=> syntax error
def foo(arg1, arg2?:) end   #=> syntax error

def foo(arg1?:, arg2:) end  #=> segfault
def foo(arg1?:, arg2?:) end #=> segfault
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-24 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11663.20151105212324@ruby-lang.org>
2015-11-05 21:23 ` [ruby-core:71356] [Ruby trunk - Bug #11663] [Open] Segfault when using multiple keywords if the first keyword is invalid smacgaha
2015-11-06  0:04 ` [ruby-core:71362] [Ruby trunk - Bug #11663] " nobu
2015-11-24 16:03 ` [ruby-core:71656] " nagachika00

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).