From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13341 Path: news.gmane.org!.POSTED!not-for-mail From: Rabbitstack Newsgroups: gmane.linux.lib.musl.general Subject: Re: setrlimit hangs the process Date: Thu, 4 Oct 2018 18:05:11 +0200 Message-ID: References: <20180925141551.GE10209@port70.net> <20180925153605.GF10209@port70.net> <20180925163850.GL17995@brightrain.aerifal.cx> <20181004150421.GC17110@brightrain.aerifal.cx> <20181004155302.GD17110@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c9042005776952cd" X-Trace: blaine.gmane.org 1538669017 15575 195.159.176.226 (4 Oct 2018 16:03:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2018 16:03:37 +0000 (UTC) Cc: musl@lists.openwall.com To: dalias@libc.org Original-X-From: musl-return-13357-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 04 18:03:33 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 1g8667-0003ww-MD for gllmg-musl@m.gmane.org; Thu, 04 Oct 2018 18:03:31 +0200 Original-Received: (qmail 28366 invoked by uid 550); 4 Oct 2018 16:05:40 -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 28344 invoked from network); 4 Oct 2018 16:05:39 -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 :cc; bh=BVVZeytB/Uvbp8/Pfquthq7EUfEDCCh2nJoJ2XaDy8g=; b=aTCPE9u7AYgnfOufGxO0eB1F3HZucv3Vlj6zmLxrhzubLv0Md7srfrnIajfOzQxRVZ TbR9BMdGBqydxwA6GpxHeLqHmIbYZI7DWBL1WBYtlvtVUMcIkylt8rYJOjLYgzyYbXuK KI6UtsD9bbZHywNjkrX/9xKlcREUst3CpwcV8fpFTwDbZCFu73Izj9R9p71br1Lyn/50 RdhVBKVaLIRWgIEVRaC/TcpMapPcbPsa+ELbc12MuJHSQ5mzSs9GxfBa0NixcpKQrUa3 sbrCtGacbQ/iquPRKjnrc/Ch2BEVAl2oaFdDoTYT4ut8jUX7xp97XVGdgu1nq20nbA/b kOQw== 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:cc; bh=BVVZeytB/Uvbp8/Pfquthq7EUfEDCCh2nJoJ2XaDy8g=; b=ce6vejDTWhmdxX8WbiO8uKWLCuPhhlt3zx04tI3ogEGnhkS+sKVzh/q1IUxWyms8fD HWKbBVewjb/fByGV9nSmIceLYD4O2gtFFHi7VpmKYNBDfDJ0M1xIpWhYgYcM3OZ4zEL0 EnaREW9W5R34g4IWFZToF2ngKHJc0PARJ3HJemuDFduZpEUPYL3iOfdnWjbepMpZZMtO 2+jt4n6wYysEzfpaOCahtv1KbmpA/C/VyDzOoLEnHRC8zle49uRtrI0BzOKPvBbMc4IB JXVR/iq4BhZPEdP612SKYhrmHNF7yi6JdhnNLAAXH4GNIX5/HwyPVC6nvh7+12hM92e4 Nb7Q== X-Gm-Message-State: ABuFfog0Ey27PhgsME9b+PJbWZKwZ5ysxA+9Z6vvJyE2PEgG+WJDSeYe h9prze2UTCnSjl6oSKA/ky5GCNU27GozZaN74oCh X-Google-Smtp-Source: ACcGV61VrTB4OSZfj1Fo2JlJm72sNkcvLM7qeWYawNRg0xSYY/Kb1nrtsPbVe/15yLsWp8SCxdjso92iIH4Xk/RriFs= X-Received: by 2002:a63:5509:: with SMTP id j9-v6mr6237786pgb.208.1538669127728; Thu, 04 Oct 2018 09:05:27 -0700 (PDT) In-Reply-To: <20181004155302.GD17110@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:13341 Archived-At: --000000000000c9042005776952cd Content-Type: text/plain; charset="UTF-8" Thanks Rich for the quick feedback. Let me know if you need any help. Regards, Nedim On Thu, Oct 4, 2018 at 5:53 PM Rich Felker wrote: > On Thu, Oct 04, 2018 at 05:41:52PM +0200, Rabbitstack wrote: > > Please use the following link to download strace since daemon is > refusing > > to deliver the mail. > > > > https://www.dropbox.com/s/syhbzxvijf7s4v1/agent.strace?dl=0 > > Here is the bug: > > 6208 rt_sigprocmask(SIG_SETMASK, ~[HUP INT QUIT ILL TRAP ABRT BUS FPE > SEGV TERM STKFLT CHLD PROF SYS RTMIN RT_1], > > Apparently Go has its own version of sigfillset, rather than calling > the libc one, and it's hard-coded the glibc values for which signals > are reserved for the implementation (just RTMIN and RT_1) rather than > honoring SIGRTMIN (which resolves at runtime via a function call), > which would exempt RT_2 from being blocked too. > > It needs to be fixed on the Go side. I'll look at it later if nobody > else more familiar with Go gets to it sooner. > > Rich > --000000000000c9042005776952cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Rich for the quick feedback. Let me know if yo= u need any help.

Regards,

Nedim

On Th= u, Oct 4, 2018 at 5:53 PM Rich Felker <dalias@libc.org> wrote:
On= Thu, Oct 04, 2018 at 05:41:52PM +0200, Rabbitstack wrote:
> Please use the following link to download strace since=C2=A0 daemon is= refusing
> to deliver the mail.
>
> https://www.dropbox.com/s/syhbzx= vijf7s4v1/agent.strace?dl=3D0

Here is the bug:

6208=C2=A0 rt_sigprocmask(SIG_SETMASK, ~[HUP INT QUIT ILL TRAP ABRT BUS FPE= SEGV TERM STKFLT CHLD PROF SYS RTMIN RT_1],=C2=A0 <unfinished ...>
Apparently Go has its own version of sigfillset, rather than calling
the libc one, and it's hard-coded the glibc values for which signals are reserved for the implementation (just RTMIN and RT_1) rather than
honoring SIGRTMIN (which resolves at runtime via a function call),
which would exempt RT_2 from being blocked too.

It needs to be fixed on the Go side. I'll look at it later if nobody else more familiar with Go gets to it sooner.

Rich
--000000000000c9042005776952cd--