Skip to content

popen crashes in resty but not in luajit #35

@mikz

Description

@mikz

I'm writing simple script to install exact versions of dependencies into a folder (3scale/APIcast@e6d5e27).

There is surprising behaviour of luarocks (luarocks/luarocks#732) that is different than running it with openresty interpreted compiled with openresty.

When running with resty I'm getting errors like:

ERROR: /usr/local/share/lua/5.1/luarocks/fs/unix/tools.lua:114: Interrupted system call
stack traceback:
	/usr/local/share/lua/5.1/luarocks/fs/unix/tools.lua:114: in function 'find'
	/usr/local/share/lua/5.1/luarocks/manif.lua:59: in function 'make_rock_manifest'
	/usr/local/share/lua/5.1/luarocks/build.lua:317: in function 'build_rockspec'
	/usr/local/share/lua/5.1/luarocks/build.lua:359: in function 'build_rock'

or

Failed producing checksum: Failed to compute MD5 hash for file ...

The second one actually fails because reading from a pipe returns nil: https://github.com/mikz/luarocks/blob/22a7b81946edfe3e25f914c9c672b6705153714d/src/luarocks/fs/tools.lua#L146-L147

All this works when I run the script with the luajit interpreter compiled by openresty.

OS: macOS High Sierra 10.13 (17A365)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions