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

jsonnet eval --tla segfaults on master #180

Closed
mikedanese opened this issue May 17, 2016 · 2 comments
Closed

jsonnet eval --tla segfaults on master #180

mikedanese opened this issue May 17, 2016 · 2 comments

Comments

@mikedanese
Copy link
Contributor

$ cat util/config_to_json.jsonnet 
function(cfg)
  local to_json = function(arr)
    local obj = {};
    if std.length(arr) == 0 then
      obj
    else
      to_json(obj, arr[1:]) tailstrict;
  to_json(std.split(cfg, "\n"))
$ jsonnet --tla-str cfg="foo" util/config_to_json.jsonnet
[1]    31276 segmentation fault (core dumped)  jsonnet --tla-str cfg="foo" util/config_to_json.jsonnet
@sparkprime
Copy link
Collaborator

Thanks, I'll look into this on the subway home

sparkprime added a commit that referenced this issue May 18, 2016
Check for too many positional params, fix #180
@sparkprime
Copy link
Collaborator

This was actually reproducible with just (function (x) x)(1, 2)

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

2 participants