From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UnTcEgdKlGRq0AoAWB0awg (envelope-from ) for ; Thu, 22 Jun 2023 09:17:59 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Bfk2MKMD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3E5F31E0BB; Thu, 22 Jun 2023 09:17:59 -0400 (EDT) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2E8281E0AC for ; Thu, 22 Jun 2023 09:17:57 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C244C3857B9B for ; Thu, 22 Jun 2023 13:17:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C244C3857B9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687439876; bh=RG5023KdDtIMbzhsW7myw6S3CHkpbT3b5KaIIVCfpM0=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Bfk2MKMD3Jxe4S9O+u8KqdAuHy+Fap6zGnnwLFX3go/ZZy6RVWoXoE8PyDfrBXqq9 7eglTrHbfcU/qdlWn7PlOR4H0km2rP1pUasOIJVYvfrqV5vaspRzkbXPbZMT6O/jVY 0Xuk5L21z1gMko2vTXDAw8uG32Dv7Q7a2AbuTWsw= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id CC72E3858D35 for ; Thu, 22 Jun 2023 13:17:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC72E3858D35 Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-392-clsbUH4LPXuuOHdb4ljpag-1; Thu, 22 Jun 2023 09:17:36 -0400 X-MC-Unique: clsbUH4LPXuuOHdb4ljpag-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4f957270b92so1959283e87.1 for ; Thu, 22 Jun 2023 06:17:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687439853; x=1690031853; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RG5023KdDtIMbzhsW7myw6S3CHkpbT3b5KaIIVCfpM0=; b=FojwwSCYuRKB5fBKJxEf+jYT/Zp3UzNIdGAtYYLEgF+vTFmBASDVtHQFqg8enQp6xR CNz/HJY7JI61r8UliIcUZoIaMV2XIKywHrzLuYeSElNY15e2zqmDDY8/f5J5Dntj88y/ cUiKsycoILrXiUeSvgEWYynZRmo8jBVHbE4zfgMmBWJcT+XAr7aWoWD0Bb5s8fIP4C4X 0+0+YGTGMZ+/Jc7d8ee5+wL20P6waU4/C9ieXz429nDaanvoe6RImhQRVXEsoaOjSz8q 9enegfpHF9Z5r8o1TSNII9MQczYxrP0kKoKzQgegJ1Q1vlhFS4y4HFaHMcwa+AaRpi9k dBnA== X-Gm-Message-State: AC+VfDzgjOHdClQb9TAAw4N9j7MlvCY1vy2FkpMPki3S99GyUW4AiPl8 GfggM9xsHkGNjmBJgSTCzn+wVto1ob3UDlDtX4eOO6uA+Pxh1ba/F5AjiVQz8Y7p76w1ENJ608u PPfnsg+L92JSU/j4kCvHLxWoZWSejz5loGUQ+GxcUtBeIyqvRzdScJZc4VAGR/xloTtu85VWs8P ycAxHx3A== X-Received: by 2002:ac2:5059:0:b0:4f8:65ef:afc2 with SMTP id a25-20020ac25059000000b004f865efafc2mr8567660lfm.30.1687439853469; Thu, 22 Jun 2023 06:17:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5giMG6qJAMi4WhBdyHcDQUdaMxNpb+KHwZi/oQVZgHhD0Uzz9FR0P6fHMP+I/mTOVO+6h6Pw== X-Received: by 2002:ac2:5059:0:b0:4f8:65ef:afc2 with SMTP id a25-20020ac25059000000b004f865efafc2mr8567637lfm.30.1687439853033; Thu, 22 Jun 2023 06:17:33 -0700 (PDT) Received: from localhost (2.72.115.87.dyn.plus.net. [87.115.72.2]) by smtp.gmail.com with ESMTPSA id j15-20020a05600c2b8f00b003f4266965fbsm18760187wmc.5.2023.06.22.06.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 06:17:32 -0700 (PDT) To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/8] Some vfork related fixes Date: Thu, 22 Jun 2023 14:17:20 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrew Burgess via Gdb-patches Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" While reviewing this patch: https://inbox.sourceware.org/gdb-patches/20230612074927.424961-2-christina.schimpe@intel.com/ I spotted a block of code which I wasn't certain the meaning of. So I started looking into the history of the code, and started testing it a little, and ran into 3 vfork related bugs, which this series fixes. Patches #1, #6, and #7 are all about updating an existing test to test vfork a little more, Patches #2, #3, and #5 are the three fixes, Patch #4 is the original refactoring patch referenced above, And patch #8 adds some extra debug output. --- Andrew Burgess (7): gdb: catch more errors in gdb.base/foll-vfork.exp gdb: don't restart vfork parent while waiting for child to finish gdb: fix an issue with vfork in non-stop mode gdb: don't resume vfork parent while child is still running gdb/testsuite: expand gdb.base/foll-vfork.exp gdb/testsuite: remove use of sleep from gdb.base/foll-vfork.exp gdb: additional debug output in infrun.c and linux-nat.c Mihails Strasuns (1): gdb, infrun: refactor part of `proceed` into separate function gdb/infrun.c | 180 +++++--- gdb/linux-nat.c | 32 +- gdb/testsuite/gdb.base/foll-vfork.exp | 588 ++++++++++++-------------- 3 files changed, 403 insertions(+), 397 deletions(-) base-commit: 07a88d7f2121630956997bc5edd495af40d4494f -- 2.25.4