Skip to content

Sendmsg failing with EINVAL when trying to run Servo #514

Closed

Description

@samlh

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

Activity

  1. misenesi commented on Jun 15, 2016

    @misenesi

    Hi Sam Harrington (@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.

  2. sunilmut commented on Feb 1, 2017

    @sunilmut
    Member

    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.

  3. sunilmut commented on Mar 1, 2017

    @sunilmut
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions