Unbalanced stack error #147

Closed
Zoxc opened this Issue Jan 5, 2010 · 1 comment

Comments

Projects
None yet
2 participants

Zoxc commented Jan 5, 2010

Code:
puts 1, ("hello #{break 2}" while true), 3

1.8:
1
2
3

Rubinius:
0: push_self
1: meta_push_1
2: push_true
3: goto_if_false 19
5: push_literal 0
7: meta_push_2
8: goto 20
10: allow_private
11: send_method 1
13: string_build 2
15: pop
16: check_interrupts
17: goto 2
19: push_nil
20: push_int 3
22: allow_private
23: send_stack 2 3
26: pop
27: push_true
28: ret
An exception occurred running test.rb
Error trying to compile test.rb (Rubinius::CompileError)

Backtrace:
   Rubinius::CompilerNG.compiler_error at lib/compiler/compiler.rb:11
     Rubinius::CompilerNG.compile_file at lib/compiler/compiler.rb:64
  Rubinius::CompilerNG.compile_file_old at lib/compiler/compiler.rb:47
        Requirer::Utils.single_load {} at kernel/delta/requirer.rb:206
       Requirer::Utils.compile_feature at kernel/delta/requirer.rb:148
           Requirer::Utils.single_load at kernel/delta/requirer.rb:205
   Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:336
               Rubinius::Loader#script at kernel/loader.rb:376
                 Rubinius::Loader#main at kernel/loader.rb:485
                     Object#__script__ at kernel/loader.rb:489

Caused by: unbalanced stack at line 1 (20): 3 != 4 (RuntimeError)

Backtrace:
 Rubinius::CompilerNG::StackDepthCalculator#run_from at lib/compiler
                                                        /stack_calculator.rb:49
 Rubinius::CompilerNG::StackDepthCalculator#run at lib/compiler
                                                   /stack_calculator.rb:14
            Rubinius::Generator#encode at lib/compiler/generator.rb:128
     Rubinius::CompilerNG::Encoder#run at lib/compiler/stages.rb:117
  Rubinius::CompilerNG::Stage(Rubinius::CompilerNG::Generator)#run_next at lib/compiler/stages.rb:51
   Rubinius::CompilerNG::Generator#run at lib/compiler/stages.rb:142
  Rubinius::CompilerNG::Stage(Rubinius::CompilerNG::FileParser)#run_next at lib/compiler/stages.rb:51
  Rubinius::CompilerNG::Parser(Rubinius::CompilerNG::FileParser)#run at lib/compiler/stages.rb:196
              Rubinius::CompilerNG#run at lib/compiler/compiler.rb:109
     Rubinius::CompilerNG.compile_file at lib/compiler/compiler.rb:59
  Rubinius::CompilerNG.compile_file_old at lib/compiler/compiler.rb:47
        Requirer::Utils.single_load {} at kernel/delta/requirer.rb:206
       Requirer::Utils.compile_feature at kernel/delta/requirer.rb:148
           Requirer::Utils.single_load at kernel/delta/requirer.rb:205
   Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:336
               Rubinius::Loader#script at kernel/loader.rb:376
                 Rubinius::Loader#main at kernel/loader.rb:485
                     Object#__script__ at kernel/loader.rb:489
Owner

evanphx commented Mar 27, 2010

Not going to support for 1.0.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment