From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RDNS_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 30480 invoked from network); 24 Mar 2020 13:20:36 -0000 Received-SPF: pass (mother.openwall.net: domain of lists.openwall.com designates 195.42.179.200 as permitted sender) receiver=inbox.vuxu.org; client-ip=195.42.179.200 envelope-from= Received: from unknown (HELO mother.openwall.net) (195.42.179.200) by inbox.vuxu.org with ESMTP; 24 Mar 2020 13:20:36 -0000 Received: (qmail 30439 invoked by uid 550); 24 Mar 2020 13:20:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30411 invoked from network); 24 Mar 2020 13:20:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sqreen-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=mx6DIJXoivzNw+VrlHI84UIlNulToHqHRGtm7M9NBvo=; b=NqTLd84j6/NMnu3sgRwdzhgXYfnSr/xBIi2zKcAPaMilBq680r+OmLG4ERhZkwyIFF Ba78ezy+1h+25x2RE48e711N/EyfKf21oqx1rQlzqfPFp0ViVJkLJKkNobjYYoTpR4wT 2Y1Zj/NCkQvuvlDDCPRH4+8sJ3+rpTZvcH5c2qpbPqg2nl2cbBfr+xRugmsvm0brf323 zOfrkdoSpZUnf2VjaO3rGgZU5ahTju6FsYnIw8IfnUWTGk8QmzR1WUqNgrRpDFFT66aO YfimnMYLmHdEpn0MIkumv7W15ly1E2pramK0w84/oFf3nKyzC8pt9VCmHJb62npfVst/ 9dbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=mx6DIJXoivzNw+VrlHI84UIlNulToHqHRGtm7M9NBvo=; b=k5XCSW8tZsDYr+9YkDZKOtMrSPmN+k9G8GbNTG8UUFy/EByhg5gmkQGl6qePaUC9Zz JvfXg4P3Xklb6catIQ+ek2GJcwFExlBd2mFRxoQlfaKJlGoTrol6mV4ghQYFAGFuEhAP 9l5mB+stQH3so/1ciLIM604QiUByowVpoakNJPJCIYx0b8cvV+ZmRXc0y/P8bLYvyHkR LBvA7E0Q6XQvPCg+8rYjUk87m/+v8J+DMoxQVISJsAJulYkvZSOQKD7fPjKQ3EMCNZVu CHNzrkGibaEkdmTqXZZ//5tQn1J8SPdxg7NqYLYrR8xlmoHY0C7mXNnq1F08aPyOY0lL /XbQ== X-Gm-Message-State: ANhLgQ2ndqMkguiOuG20N8VgfvqLNzKfzehQW+NKCyyBcR+xpj+rdU4U S5O1GzdhYmU9yBjgtZ0nuH5F6MlhyHLh+J8ovKyYzrrtEF9O X-Google-Smtp-Source: ADFU+vt23c89VkHaLJKsw8Gl+vNnbiiDmhu5he1F9ZQMTOvi4mWO87DxGIgHERpwONe4JTfX4vWfxIxqWpcfKW9Q0yo= X-Received: by 2002:a1f:ad92:: with SMTP id w140mr17862275vke.10.1585056019801; Tue, 24 Mar 2020 06:20:19 -0700 (PDT) MIME-Version: 1.0 References: <20200323163829.GR11469@brightrain.aerifal.cx> In-Reply-To: <20200323163829.GR11469@brightrain.aerifal.cx> From: Julio Guerra Date: Tue, 24 Mar 2020 14:20:08 +0100 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] [Bug] Do not ignore membarrier return code Hello Rich, Here are more details on what we did to reproduce the issue. You can clone this gist https://gist.github.com/vdeturckheim/d420310e272f525824d7e92e7e875024 and have a look at the run.sh file example in order to get started with it. The test.js file does a require of the js bindings of grpc, which involves the dlopen. What we observed yesterday with this example was: - It crashed approximately 9 times out of 10 on aws codebuild with the machine BUILD_GENERAL1_SMALL (3 GB memory, 2 vCPUs). - It worked all the time by only adding membarrier to the seccomp profile of the docker run. But I wanted to give you more details with stack traces of the segfault by retrying today with gdb but I cannot reproduce it anymore...! I'll retry later to see if I see the error again... If what you say about membarrier is true, I think there may be some synchronization side-effect of the syscall since, afaik, node uses threads in order to load the shared libraries in the libuv. -- Julio