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

Pyrus stuck in loop when executed directly #32

Open
hackel opened this issue Aug 28, 2014 · 0 comments
Open

Pyrus stuck in loop when executed directly #32

hackel opened this issue Aug 28, 2014 · 0 comments

Comments

@hackel
Copy link

hackel commented Aug 28, 2014

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

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

1 participant