Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

oj + make causes SystemStackError #69

Closed
take-five opened this Issue · 3 comments

2 participants

Alexey Mihaylov Peter Ohler
Alexey Mihaylov

Hi!

I've found weird bug today. My tests are crashed with JSON is too deeply nested (SystemStackError) when called from make utility.

test.rb

require "oj"
puts Oj.load('{}')

Makefile

run:
    ruby test.rb
$ ruby test.rb
{}
$ make
ruby test.rb
test.rb:2:in `load': JSON is too deeply nested (SystemStackError)
    from test.rb:2:in `<main>'
make: *** [run] Error 1

Oj version is 2.0.4
Ubuntu 12.04
make 3.81

Unfortunately I cannot write failing test for this bug, 'cause I cannot understand its nature.

Peter Ohler
Owner

I was able to reproduce the problem. It turns out that linux misreports the stack size without reporting an error. It is fixed in release 2.0.6. Let me know if it works for you.

Alexey Mihaylov

Yes, it works now. Thanks for solving the problem :)

Alexey Mihaylov take-five closed this
Peter Ohler
Owner

I don't like to keep issues unsolved. Glad you found it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.