From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31582 invoked from network); 17 Jun 2022 14:12:15 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 17 Jun 2022 14:12:15 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id A52723519D for ; Fri, 17 Jun 2022 10:12:13 -0400 (EDT) (envelope-from bounce.mMfced9ffce2a92c38458048ad.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id A405B28CD058; Fri, 17 Jun 2022 10:12:13 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha256) header.d=posixcafe.org header.i=@posixcafe.org header.b=kqZVbrpX header.a=rsa-sha256 header.s=20200506 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=posixcafe.org; spf=pass smtp.mailfrom=moody@posixcafe.org smtp.helo=mail.posixcafe.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:date:mime-version:subject:to :references:from:in-reply-to:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=sysmsg-1; t= 1655475133; bh=7E/lXMIU4ba+RRWnEb/HyL87Qv0grWWWqtL8iCU/UKA=; b=j Ur+WlpDAeJzPv8GpQZKgswjJ7R8RKbvCoXNQ9EuMyxeKiQYEbKSsDLI1zY1b24cB FL6X7jvHcOs+N1oXY91A0gYhocSqGILznKM9iZbZw2eR113PGSHhSYG5M+4sNtnW dHZfI5Yayi28r8QrErll7PwfOXO90GaI4mhC86LOz4= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655475133; b=dLT/KeayzgI5u+hfXo32G5/9ciA+B3XDhddgDd9Ry9y4JH1OjJ qh5jQJWY+fy/38FRmF7sa0EeNW4D1rf5s3uWD2iC5S2svTNmhcsR0xXTx0P/adyC 6qRC1ISrFEzYAGgT0j/14SUu7vuMFwCJMe9bbxuasJgQFp9a7Q+e+eCTE= Authentication-Results: topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha256) header.d=posixcafe.org header.i=@posixcafe.org header.b=kqZVbrpX header.a=rsa-sha256 header.s=20200506 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=posixcafe.org; spf=pass smtp.mailfrom=moody@posixcafe.org smtp.helo=mail.posixcafe.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (1024-bit rsa key sha256) header.d=posixcafe.org header.i=@posixcafe.org header.b=kqZVbrpX header.a=rsa-sha256 header.s=20200506 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=posixcafe.org; iprev=pass smtp.remote-ip=45.76.19.58 (mail.posixcafe.org); spf=pass smtp.mailfrom=moody@posixcafe.org smtp.helo=mail.posixcafe.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mail.posixcafe.org policy.ptr=mail.posixcafe.org; x-return-mx=pass header.domain=posixcafe.org policy.is_org=yes (MX Records found: mail.posixcafe.org); x-return-mx=pass smtp.domain=posixcafe.org policy.is_org=yes (MX Records found: mail.posixcafe.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :date:mime-version:subject:to:references:from:in-reply-to :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1655475133; x=1655561533; bh=7E/lXMIU4ba+RRWnEb/HyL87Qv0grWWW qtL8iCU/UKA=; b=d6RWJKzH3isH1qVNn9hltuwxR1hrZORO9o8QQEyYUrRh9+Z2 qjHfFlLZmcAwMDNUqXQB7BR/ENHrqEyTKv1M7ObEXX+AvIERv88mSo5G6bJGhxOx xkB+vwDYIvX1k6JQYwormcJTMeK4jmxplSo1JM1sML/FygcSCEeo0VUAJMQ= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 83F6C1587C83 for <9fans@9fans.net>; Fri, 17 Jun 2022 10:11:56 -0400 (EDT) (envelope-from moody@posixcafe.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 82E5198CFC3; Fri, 17 Jun 2022 10:11:56 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655475116; b=GgT/NixbeZtgh1XPCRr9kkUZQuMu0FRIKXcztm5MpAk/J9sxG6 MT+s0V0bxQiO3jzJVakdf1jfrG1XrwMqyv9mkmr+8SNgDryT8gdWbzacey9K3EqZ dRZiGvad2J7OH07rMV0HCvtunvMzxYiJYKpLKk7wJz+DdHwRxgwzbFBNLoIk7oB1 Ao+nWam6Y+VFTykKBVPenjWymuGHBIUaUfq/61TBOCaHRXL/9ibS/pVPkbSHlTAU 0etuStPhY7+A1Ot5wHBjFyzCw+fTzyofgjvAqHUbQSqvKqbywYUqT+r/IZZPZeQQ mFZKXj+ho11uIuDBMGC12aSqEol4bhrfgkJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:date:mime-version:subject:to :references:from:in-reply-to:content-type :content-transfer-encoding; s=arcseal; t=1655475116; bh=GIjg73T1 Ow9fvXQ8rZMjmHyS2Nq3duIBX4lNpyJ+t0U=; b=KG+BA7neCfq7DJlNnT0+bAzF hJQYoYqKnY+1Ff8cm1TDjj7uQTjs7kOoFVw6h8DCQ4k8MHjraO3Xi/XpN5Qs1jSv MWvEzvIOUQ0R9wZ6URTuYh1/4g6e5scS74h4FekHt03ANdrB9wao+GL0viugoli0 97vIcNy2BDZ78aRekxuRhMiP6NAXcsvWX01TRzQwkMYdE8ovmhOTX5dnpQI/1LxH JOcuAK2sbRyXzAclvi9vwUFiX/rG7PWgYIL8c4k/PO0ijPibo6PUZ+4h67zZ7mwD L26xiLqEhWqFCjeLjfzldMPoqH2qnRALZow1LYMysGDvMhWas02n9Ia/MUMIsw== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (1024-bit rsa key sha256) header.d=posixcafe.org header.i=@posixcafe.org header.b=kqZVbrpX header.a=rsa-sha256 header.s=20200506 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=posixcafe.org; iprev=pass smtp.remote-ip=45.76.19.58 (mail.posixcafe.org); spf=pass smtp.mailfrom=moody@posixcafe.org smtp.helo=mail.posixcafe.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mail.posixcafe.org policy.ptr=mail.posixcafe.org; x-return-mx=pass header.domain=posixcafe.org policy.is_org=yes (MX Records found: mail.posixcafe.org); x-return-mx=pass smtp.domain=posixcafe.org policy.is_org=yes (MX Records found: mail.posixcafe.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvhedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeflrggtohgsucfoohhougihuceo mhhoohguhiesphhoshhigigtrghfvgdrohhrgheqnecuggftrfgrthhtvghrnhepheegge duleduffekheetteefffffleelleeuiefhteeulefhleeiueeuieeihefgnecukfhppeeg hedrjeeirdduledrheekpdduiedurdeljedrvddvkedrudefheenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepihhnvghtpeeghedrjeeirdduledrheekpdhhvghlohep mhgrihhlrdhpohhsihigtggrfhgvrdhorhhgpdhmrghilhhfrhhomhepoehmohhougihse hpohhsihigtggrfhgvrdhorhhgqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (posixcafe.org: 45.76.19.58 is authorized to use 'moody@posixcafe.org' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="moody@posixcafe.org"; helo=mail.posixcafe.org; client-ip=45.76.19.58 Received: from mail.posixcafe.org (mail.posixcafe.org [45.76.19.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 17 Jun 2022 10:11:55 -0400 (EDT) (envelope-from moody@posixcafe.org) Received: from [192.168.168.200] (161-97-228-135.lpcnextlight.net [161.97.228.135]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 97e6cdb8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9fans@9fans.net>; Fri, 17 Jun 2022 09:11:54 -0500 (CDT) Message-ID: Date: Fri, 17 Jun 2022 08:11:03 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [9fans] syscall silently kill processes Content-Language: en-US To: 9fans@9fans.net References: <79286caa2ca77ea9b9a1cd64918bdc5f28c8f180.camel@gmail.com> From: Jacob Moody In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 756f19d8-ee47-11ec-82d9-8b3bf0aac4d4 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NZmNlZDlmZmNlMmE5MmMzODQ1ODA0?= =?UTF-8?B?OGFkPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mfced9ffce2a92c38458048ad:1:RYa0p2XENWdzm6K5emYqVfjSwM6Z5AGilQfWCxv1NhI On 6/17/22 07:46, Thaddeus Woskowiak wrote: > I believe threadnotify() should be called from threadmain() to > properly register the handler in the rendez group This is incorrect, according to thread(2): "The thread library depends on all procs being in the same rendezvous group" The issue here is that your note handler has to call noted, you are returning from the handler without actually resuming the program. You either need to call noted(NCONT) to resume execution or noted(NDFLT) to stop execution. An excerpt from notify(2): "A notification handler must finish either by exiting the program or by calling noted; if the handler returns the behavior is undefined and probably erroneous." So you are indeed observing undefined behavior. Hope this helps, moody ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-Mfced9= ffce2a92c38458048ad Delivery options: https://9fans.topicbox.com/groups/9fans/subscription