oj + make causes SystemStackError #69

Closed
take-five opened this Issue Feb 18, 2013 · 3 comments

Projects

None yet

2 participants

@take-five

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.

@ohler55
Owner
ohler55 commented Feb 18, 2013

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.

@take-five

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

@take-five take-five closed this Feb 19, 2013
@ohler55
Owner
ohler55 commented Feb 19, 2013

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