Project

General

Profile

Bug #7064

super from at_exit will segv

Added by tenderlovemaking (Aaron Patterson) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-09-13 trunk 36956) [x86_64-darwin12.1.0]
Backport:
[ruby-core:47679]

Description

Calling super inside at_exit will segv. For example:

$ ruby -e'at_exit { super }'

I'm not sure what super should do inside the at_exit block, but it probably shouldn't segv.

Associated revisions

Revision 1e565489
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 37030
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Revision 37030
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Revision 37030
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Revision 37030
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Revision 37030
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Revision 37030
Added by nobu (Nobuyoshi Nakada) about 7 years ago

insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Revision 26df05b2
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 37031
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

Revision 37031
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

Revision 37031
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

Revision 37031
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

Revision 37031
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

Revision 37031
Added by nobu (Nobuyoshi Nakada) about 7 years ago

test_super.rb: super from BEGIN

  • test/ruby/test_super.rb (TestSuper#test_super_in_BEGIN): for BEGIN. [ruby-core:47680] [Bug #7064]

History

Updated by Eregon (Benoit Daloze) about 7 years ago

This did not happen with ruby 2.0.0dev (2012-07-15 trunk 36395) [x86_64-darwin10.8.0].

#2

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37030.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


insns.def: super from at_exit

  • insns.def (invokesuper): klass in cfp is not valid in at_exit and END blocks. [ruby-core:47680] [Bug #7064]

Also available in: Atom PDF