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

protoc-gen-php blocks on select syscall #42

Open
xilon-jul opened this issue Sep 11, 2014 · 0 comments
Open

protoc-gen-php blocks on select syscall #42

xilon-jul opened this issue Sep 11, 2014 · 0 comments

Comments

@xilon-jul
Copy link

Hello,

First of all, thank you for all the work you've done.

I've recently tried to generate a simple proto file using the helper script protoc-gen-php, but the execution never ends. If I strace the process it seems to be blocking for IO on the select() syscall.

I know, this is kind of fuzzy report, but have you ever noticed such a behavior ? (i'm currently using php 5.4 and protoc 2.4.1)

Here is the debug trace (well the end of it that I get), select is waiting for read IO on fd 5, do you have any idea ?

Thanx again.

open("./message.proto", O_RDONLY) = 3
close(3) = 0
open("message.proto", O_RDONLY) = 3
read(3, "message RoutingFrame {\n\trequired"..., 8192) = 1432
read(3, "", 8192) = 0
close(3) = 0
pipe([3, 4]) = 0
pipe([5, 6]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f748f137a10) = 12897
close(3) = 0
close(6) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f748e3bd4a0}, {SIG_DFL, [], 0}, 8) = 0
select(6, [5], [4], NULL, NULL) = 1 (out [4])
write(4, "\n\rmessage.protoz\276\23\n\rmessage.prot"..., 2512) = 2512
close(4) = 0
select(6, [5], [], NULL, NULL^C <unfinished ...>

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