From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10159 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Karl_B=C3=B6hlmark?= Newsgroups: gmane.linux.lib.musl.general Subject: abort() fails to terminate PID 1 process Date: Sat, 18 Jun 2016 22:32:23 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c074efa71b8c60535935eb8 X-Trace: ger.gmane.org 1466281969 18526 80.91.229.3 (18 Jun 2016 20:32:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2016 20:32:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10172-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 18 22:32:49 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bEMv7-0005X6-RQ for gllmg-musl@m.gmane.org; Sat, 18 Jun 2016 22:32:45 +0200 Original-Received: (qmail 17615 invoked by uid 550); 18 Jun 2016 20:32:42 -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 17525 invoked from network); 18 Jun 2016 20:32:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=81dkyGYlQT4XhxaT8EUTCBtVmn7/NTecUlqtpCJRQdM=; b=vbjbotwrsE8gl+m+aU2u0n67iJsNSvswdfVQYZQCDJttMCjN0C3nqQj0crAy1afWbp r1yfg9o6KawSSusG2x+UOPcLRuCtKdgpVwfqQWRJfvxC6knb+YV86++50J8kyIPSP4Yl I4atx1qYa3Ju1mwlqhoGqexE11L0d1U1ppBzhg6TKzvZB2fuUN6bghv0AFobcIWf+MVv SYHEjqseE/uHpbuvmKdegwsgpqcP81xU8fqkc2k+nnDPW0VrsTofV2LW1l6EPfLO2mYK nXSTklsO9voe3nC5zs18RmvZpwtm9DIXEL/iEL5lK/2W5UHLI4AIsiLr041sWYqR7QnN pNZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=81dkyGYlQT4XhxaT8EUTCBtVmn7/NTecUlqtpCJRQdM=; b=aiKswmIqnZWJPW6pH7ADKv5IJmJ3VOEtiq9MKbswzaw02cW8grv/rk3hpwSsxKPrUZ K8vCmYHMRZUSSNjhYS4BQGcIvYIfWU3Yid2noJLtQ1MHTnSFIxdvSHWMS76nZ+WeJtRP 0coIyna2+ENzxsq/47rFqz7GlOTVglmqmCUVKZ66vUNhW7biK4IZtrR+2BJvwFmm/MaT 43Pk1/h8PjHo6BVIatrW/JA8gn2LmwlrclWoh9lstsamJHK8a8HNzHlDoWWSU5IYtKKD FJuRtmAPWAwGmsjSa5GSYB0Xf5yG1bAledmPYzoEm/Jue7oRWth4+28VbW59Ldfuh2Gr Y4JA== X-Gm-Message-State: ALyK8tKupvCS9TWl9Nx4kyp6HE1obeApZNA2WmiVskPHH2eLbuBUGOsgyThSPwwFhbr8Gpm7GDb0DblOwG5FIQ== X-Received: by 10.28.164.193 with SMTP id n184mr4465895wme.12.1466281944526; Sat, 18 Jun 2016 13:32:24 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:10159 Archived-At: --94eb2c074efa71b8c60535935eb8 Content-Type: text/plain; charset=UTF-8 Hi! After running alpine-linux based docker containers for a while we noticed some problematic behaviour when one of our services had a memory leak causing the process to abort. Instead of getting abnormal process termination we were seeing the process hanging at 100% cpu. A minimal reproduction of this issue is to run #include int main () { abort(); } with "unshare --fork --pid" so that it runs as PID 1 in it's own PID namespace. Would it be reasonable to add a fallback strategy in abort() for terminating processes when the signals don't have any effect? Karl --94eb2c074efa71b8c60535935eb8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

After running alpine-linux ba= sed docker containers for a while we noticed some problematic behaviour whe= n one of our services had a memory leak causing the process to abort.
<= br>
Instead of getting abnormal process termination we were seein= g the process hanging at 100% cpu.

A minimal repro= duction of this issue is to run

#include <= stdlib.h>
int main ()
{
abort();
}

<= /div>
with "unshare --fork --pid" so that it runs as PID 1 in= it's own PID namespace.

Would it be reasonabl= e to add a fallback strategy in abort() for terminating processes when the = signals don't have any effect?

Karl
--94eb2c074efa71b8c60535935eb8--