Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Many java.lang.StackOverflowError errors #3323

Closed
brauliobo opened this issue Sep 12, 2015 · 3 comments
Closed

[Truffle] Many java.lang.StackOverflowError errors #3323

brauliobo opened this issue Sep 12, 2015 · 3 comments
Assignees
Milestone

Comments

@brauliobo
Copy link

$: << '/home/braulio/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/benchmark-ips-2.3.0/lib'
require 'benchmark/ips'
a = [5,4,10,12,23,3,4]
Benchmark.ips do |x|
 x.config time: 5, warmup: 30
 x.report{ |t| t.times{ a.max } } 
end
Calculating -------------------------------------
                    compilation failed!?
[truffle] opt fail         match_io:slex.rb:203                                        |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         match_io:slex.rb:203                                        |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         now:time.rb:28 <split-0-U>                                  |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
compilation failed!?
[truffle] opt fail         job.rb:235<OSR>                                             |Reason java.lang.StackOverflowError 
   403,000  i/100ms
-------------------------------------------------
                         10,568k (± 18,7%) i/s -     49,972k

From #3322

@brauliobo
Copy link
Author

This is probably related to benchmark-ips. It doesn't happen when benchmark is used:

Benchmark.bm{ |bm| bm.report{ 100000.times{ a.max } } }

@chrisseaton chrisseaton added this to the truffle-dev milestone Sep 13, 2015
@chrisseaton chrisseaton self-assigned this Sep 13, 2015
@brauliobo
Copy link
Author

this isn't happening anymore in last tests

@nirvdrum
Copy link
Contributor

nirvdrum commented Jun 4, 2016

Thanks for following up on this. I completely forgot it was open.

@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants