From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13409 Path: news.gmane.org!.POSTED!not-for-mail From: Barry Flartus Newsgroups: gmane.linux.lib.musl.general Subject: Re: Problems with pthreads from a shared object? Date: Wed, 7 Nov 2018 20:02:01 -0500 Message-ID: References: <20181107233142.GV5150@brightrain.aerifal.cx> <20181107234526.GW5150@brightrain.aerifal.cx> <20181108004312.GX5150@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e9c790057a1cc893" X-Trace: blaine.gmane.org 1541638820 2830 195.159.176.226 (8 Nov 2018 01:00:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2018 01:00:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-13425-gllmg-musl=m.gmane.org@lists.openwall.com Thu Nov 08 02:00:16 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gKYgB-0000dB-NV for gllmg-musl@m.gmane.org; Thu, 08 Nov 2018 02:00:15 +0100 Original-Received: (qmail 13675 invoked by uid 550); 8 Nov 2018 01:02:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 13655 invoked from network); 8 Nov 2018 01:02:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gOT8d4uyF3SdbMxDY/YP7CNqfqVaRsnxbLSYeAEKh90=; b=qxNXnWw/cM/M9MD5dknqFKkgywKOuS2WBjs2xptxk+Ia8M+CzGwBSrRh1YVMnm8Xyg wJdAjhykm3L7fhDqecbUZ7VM1oF3iU1tERGQtmsUWMBicTU2/DNX0ZfCfuCA4jkpxq/W U10KzAZ4tyAC7ZHJGhcAlvv+rjAqzYB8UescH/xbSTUJcaUwTOmmxiMFAGFV8jwOVooZ jykEzJ+61FkBtwbjrq/Usar0OIKasaRpi4W10PXGvTzVLjKkOY4Vw/KrIKd1eSEYJ1vk oGC008K5kaqZX2KjA3tQScvF+9K2dpoBZD9OXIBd3CsIQJirhgR3ArVBgiMdlmx+Q6fR zCiQ== 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=gOT8d4uyF3SdbMxDY/YP7CNqfqVaRsnxbLSYeAEKh90=; b=q/9MzeCGD0DH+bx6+WXR2kBQlDnrAEqnC5PKN7oo6HM3TRAPB4CiTZCCHvaFtqCkef ANRgO6XLFeEkjDmmEAEBwWnNMARMsBSZ6bEJAi2WpBRnWriF/N8oU3xl3WS/uvZ/JkHJ mSt68+7m7NBryFq/nxU9aPpgT3jWMTPNjrUXaYTq0GXwh3gV0XeXPxHDV3+nO6oHblTV nXH7Ex0HTJ+8lNvB/qtJ4h6YNFO5ivRHZjmL1EsBgBmrHMZa5Dyu01yiSSqEbSdsoS4I RZVoN2TssHPT4xWEMoXvML5OWAXZu2XZPFFu8p5OQI+v/fmrUd7u+WXynfc8p0IYu6rs G2PA== X-Gm-Message-State: AGRZ1gLE1C/MFFpvfNbdwcNPKuoRqY1zn0G13NFb32lz69F1K4hHH0Vs JSmKA4gcSun5EDOA6JE9YCZn812rjGyKMFuTuwtexJ58 X-Google-Smtp-Source: AJdET5c987WW0exYMddlizjzMEUtxAQea3gNf3B9drW7HzoBlV8aOlvyIl1ftSa1vvVfqA7kV6JRqw6DUW6PHOIjWC8= X-Received: by 2002:a02:84ce:: with SMTP id f72-v6mr2516694jai.38.1541638931983; Wed, 07 Nov 2018 17:02:11 -0800 (PST) In-Reply-To: <20181108004312.GX5150@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:13409 Archived-At: --000000000000e9c790057a1cc893 Content-Type: text/plain; charset="UTF-8" On Wed, Nov 7, 2018 at 7:43 PM Rich Felker wrote: > On Wed, Nov 07, 2018 at 06:53:33PM -0500, Barry Flartus wrote: > > > > > > OK. Can you run strace -f ./launch (or whatever the launch program > > > executable is called) and post the output? > > > > > > Rich > > > > > The "launching" program was compiled with gcc: gcc launch.c -ldl -o launch When I attempt to compile the "launching" program with musl-gcc I get the following output: vagrant@ubuntu-x64:~$ /usr/local/musl/x86_64/bin/musl-gcc launch.c -ldl -o launch vagrant@ubuntu-x64:~$ ./launch Launching test... Dynamic loading not supported The shared object was compiled with musl-gcc: /usr/local/musl/x86_64/bin/musl-gcc -Wall -lpthread -shared -fPIC test.c -o test.so --000000000000e9c790057a1cc893 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Wed, Nov 7, 2018 at 7:43 PM= Rich Felker <dalias@libc.org>= wrote:
On Wed, = Nov 07, 2018 at 06:53:33PM -0500, Barry Flartus wrote:
> >
> > OK. Can you run strace -f ./launch (or whatever the launch progra= m
> > executable is called) and post the output?
> >
> > Rich
> >


The "launching" program wa= s compiled with gcc:
gcc launch.c -ldl -o launch

When I attempt t= o compile the "launching" program with musl-gcc I get the followi= ng output:
vagrant@ubuntu-x64:~$ /usr/local/musl/x86_64/bin/musl-gc= c launch.c -ldl -o launch
vagrant@ubuntu-x64:~$ ./launch

Launching test...
Dynamic loading not suppor= ted

The shared object was compiled with musl= -gcc:
/usr/local/musl/x86_64/bin/musl-gcc -Wall -lpthread -shared -fPIC = test.c -o test.so
--000000000000e9c790057a1cc893--