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

Sendmsg failing with EINVAL when trying to run Servo #514

Closed
samlh opened this issue Jun 12, 2016 · 3 comments
Closed

Sendmsg failing with EINVAL when trying to run Servo #514

samlh opened this issue Jun 12, 2016 · 3 comments

Comments

@samlh
Copy link

samlh commented Jun 12, 2016

I tried compiling and running the Servo web browser in WSL (using Xvfb), and ran into an issue related to the IPC implementation:

[pid 24291] socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, [9, 11]) = 0
[pid 24313] sendmsg(9, {msg_name(0)=NULL, msg_iov(2)=[{"c\0\0\0\0\0\0\0", 8}, {"\0\0\0\0\0\0\0\0\0\0\0\21http://servo.org/\0\0\0"..., 99}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {53, 54}}, msg_flags=0}, 0 <unfinished ...>
[pid 24313] <... sendmsg resumed> )     = -1 EINVAL (Invalid argument)

Interesting sendmsg features used are:

  • Socket type SOCK_SEQPACKET
  • msg_iovlen == 2
  • SCM_RIGHTS to send file descriptors

Source code is available as MIT/Apache if you want to take a look.

May be related to #376

@misenesi misenesi added the bug label Jun 15, 2016
@misenesi
Copy link

Hi @samlh,

We currently only have a support for passing just one file descriptor at a time via unix sockets. Marking it as a bug and will look into fixing this.

Thank you for reporting this.

@sunilmut
Copy link
Member

sunilmut commented Feb 1, 2017

Just an update that the fix for this has been checked in the dev branch and should soon hit the release branch. Please keep the feedback coming. We are looking at them.

@sunilmut
Copy link
Member

sunilmut commented Mar 1, 2017

Just FYI that this should be fixed in 15042. If the issue persists, please let us know. Thanks again for the post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants