From owner-freebsd-current@freebsd.org Fri Sep 13 18:56:02 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AC452F7FE0 for ; Fri, 13 Sep 2019 18:56:02 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46VPwy46Gqz40kD; Fri, 13 Sep 2019 18:56:02 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io1-f47.google.com with SMTP id n197so64870990iod.9; Fri, 13 Sep 2019 11:56:02 -0700 (PDT) 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:reply-to :from:date:message-id:subject:to:cc; bh=1kro4TsNc2u5gD9ePloPjURn3UaksDqqER6TId0HiZk=; b=LQTBFD5qGrRr5sOkJakqQqzpwW0aMuyDEMXz9Nb+QpWkMwnAGgj4JoAAXQUbhNJigi Px/IinK0dYjFoDP5Ui0r3w6F1NC7UjJoNlwIA+s3Po4g/8p3YELwE4imKzxYzTCRb4kg ZqzytIi8VHJ2bbpqt+PWWCCTrAX5vHNsX5iD6/efHkiXKpOmBif5k9ajSMpQGCWTGXfW vFL8BKKM+xq2lPubF5tZzkKYYU3frX3IsU+hWBt49UvAkqI1VQZ/dGvpTWYwIhPyCVVG B44bDK8o1rHSMws7NaZoN2vouN5a3EkfKgcEVmIVp3BQABKEnUlg0H4/qpWYAABEgegd at1g== X-Gm-Message-State: APjAAAXwMOr7eMdDypAUpQWmv0HIFIoiMvY/ilbKQJlxuZJ/9NDDOUEC 0Go2aioE8OT1SskmvtStsxpiDoog X-Google-Smtp-Source: APXvYqxfmURrSVSZO00sjwMGAA7tSdg3li/81csPuPTYvsqTjPlJD5qA6EIIMgApxpzcq+FkKeA5yQ== X-Received: by 2002:a02:7009:: with SMTP id f9mr24052jac.81.1568400961147; Fri, 13 Sep 2019 11:56:01 -0700 (PDT) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com. [209.85.166.48]) by smtp.gmail.com with ESMTPSA id h4sm27073904iok.1.2019.09.13.11.56.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Sep 2019 11:56:00 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id r26so64691440ioh.8; Fri, 13 Sep 2019 11:56:00 -0700 (PDT) X-Received: by 2002:a5e:c74d:: with SMTP id g13mr1408215iop.65.1568400960791; Fri, 13 Sep 2019 11:56:00 -0700 (PDT) MIME-Version: 1.0 References: <20190913183718.GC84156@raichu> In-Reply-To: <20190913183718.GC84156@raichu> Reply-To: cem@freebsd.org From: Conrad Meyer Date: Fri, 13 Sep 2019 11:55:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Deadlock involving truss -f, pdfork() and wait4() To: Mark Johnston Cc: Ryan Stone , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 46VPwy46Gqz40kD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Sep 2019 18:56:02 -0000 On Fri, Sep 13, 2019 at 11:37 AM Mark Johnston wrote: > > On Fri, Sep 13, 2019 at 02:12:56PM -0400, Ryan Stone wrote: > > This gets me a little further but now the wait4 call by the parent > > never reaps the child and instead blocks forever: > > Does it perform a wildcarded wait(), or does it explicitly specify the > PID of the child? By design, the former will not return children > created by pdfork(). Explicit PID: https://people.freebsd.org/~rstone/pdfork.c Best, Conrad