gcr / lua-s3

Simple GET and PUT for Lua / Torch.
30 stars 3 forks source link

Segfault on hmac:new #3

Open tylerdiaz opened 7 years ago

tylerdiaz commented 7 years ago

A fresh install of Openresty on a new ubuntu machine segfaults when connecting.

local S3 = require 's3'

S3:connect({
  awsId: "id",
  awsKey: "secret",
  bucket: "bucket-name"
})

raises

2017/04/10 01:00:09 [alert] 21268#0: worker process 21270 exited on signal 11 (core dumped)
2017/04/10 01:00:09 [alert] 21268#0: worker process 21277 exited on signal 11 (core dumped)

Installed via luarocks on:

Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-116-generic x86_64)
luarocks 2.0.13
LuaJIT 2.1.0-beta2
nginx version: openresty/1.11.2.1

I stepped through the code and it seems to fail on the hmac:new line before creating the request.

gcr commented 7 years ago

Hm. This might be a bug in openresty... I recommend you check with that package, if you're still having issues.

(Also sorry, this library might be pretty unsupported. I've honestly resorted to just shelling off to the aws s3 command line tool for my purposes...)