NetBSD Problem Report #54318

From martin@aprisoft.de  Sun Jun 23 11:39:57 2019
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 34A197A17E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 23 Jun 2019 11:39:57 +0000 (UTC)
Message-Id: <20190623113947.9668C5CC84B@emmas.aprisoft.de>
Date: Sun, 23 Jun 2019 13:39:47 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gdb can not step over a fork call
X-Send-Pr-Version: 3.95

>Number:         54318
>Category:       toolchain
>Synopsis:       gdb can not step over a fork call
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 23 11:40:00 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.47
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 8.99.47 NetBSD 8.99.47 (GENERIC) #282: Sun Jun 23 11:18:04 CEST 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

Trying to single step a program fails when you try to step over a function
that forks and runs some help program. Example from sysinst:

Breakpoint 1, gpt_read_from_disk (dev=0x71f36b235008 "vnd0", start=0,           
    len=156229632) at /work/src/usr.sbin/sysinst/arch/amd64/../../gpt.c:234
234     {
(gdb) n
238             assert(start == 0);
(gdb) 
239             assert(have_gpt);
(gdb) 
241             if (run_program(RUN_SILENT | RUN_ERROR_OK,
(gdb) 
[New process 14003]
[Detaching after fork from child process 21524]

Thread 1 "" received signal SIGTRAP, Trace/breakpoint trap.
0x000071f369c4283a in _sys___select50 () from /usr/lib/libc.so.12


>How-To-Repeat:

see above

>Fix:
n/a

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.