Skip to content

Pyrus stuck in loop when executed directly #32

Open
@hackel

Description

@hackel

I tried to make the Pyrus script executable so that I could run it directly without having to preppend php and a full path name every time I want to run it. When I do this, the process gets stuck in a loop using up 100% of one CPU and eventually I have to kill it. If I run "php ./pyrus" the script runs as expected.

This works fine for other scripts I've written myself, not to mention Composer, Artisan, etc. so I'm not sure what the problem is, but suspect it has something to do with the binary code contained in the phar file. Please fix this so taht we can run pyrus from our path just like any other executable script!

This is using Pyrus 2.0.0a4. Here is an strace of the script looping over the following 7 lines indefinitely until I kill it:

execve("/home/hackel/.local/bin/pyrus", ["/home/hackel/.local/bin/pyrus"], [/* 75 vars */]) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3

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