NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/52117 CVS commit: src/tests/kernel
The following reply was made to PR kern/52117; it has been noted by GNATS.
From: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: PR/52117 CVS commit: src/tests/kernel
Date: Wed, 29 Mar 2017 07:03:41 +0200
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--IPT5JTnnqUV0KqAkBTjQ4JPggK9tCQiR6
Content-Type: multipart/mixed; boundary="1NKi3KoowX2SBpG1jSLB5xbKPqOvhxb70";
protected-headers="v1"
From: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Message-ID: <422e9ad7-31b2-d556-f3db-b38b554a1c52%gmx.com@localhost>
Subject: Re: PR/52117 CVS commit: src/tests/kernel
References: <pr-kern-52117%gnats.netbsd.org@localhost>
<20170328020808.795E47A26D%mollari.NetBSD.org@localhost>
<20170329045501.9AF2A7A279%mollari.NetBSD.org@localhost>
In-Reply-To: <20170329045501.9AF2A7A279%mollari.NetBSD.org@localhost>
--1NKi3KoowX2SBpG1jSLB5xbKPqOvhxb70
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
On 29.03.2017 06:55, Martin Husemann wrote:
> The following reply was made to PR kern/52117; it has been noted by GNA=
TS.
>=20
> From: Martin Husemann <martin%duskware.de@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:=20
> Subject: Re: PR/52117 CVS commit: src/tests/kernel
> Date: Wed, 29 Mar 2017 06:52:21 +0200
>=20
> On Tue, Mar 28, 2017 at 09:40:00PM +0000, Kamil Rytarowski wrote:
> > For consistency I would add "ksi.ksi_signo =3D TRAP_CHLD;". My moti=
vation
> > is to attribute every SIGTRAP in the kernel with appropriate si_cod=
e,
> > even if it works for some reasons in some scenarios without them.
> =20
> Yes, that certainly should be done.
> =20
> > From user-space point of view we want a deterministic order of rece=
iving
> > signals by a debugger. Signal for "child" and next "child2".
> =20
> We can not guarantee this. The signals happen as soon as the process
> gets scheduled, it would be pretty hard to guarantee the forker runnin=
g
> first (at least I wouldn't know how to do that).
> =20
> Is this realy a requirement from a debuggers perspective?
> =20
No, it's not a hard requirement. It's in the class of nice-to-have to
make the code inside a debugger simpler. Random order in Linux is making
trouble for the designers of debuggers, but since we generate TRAP_CHLD
this is already mitigated.
We need to alter documentation and ATF tests for this.
> > I prefer the <sys/childreturn.h> version as it has bit less overhea=
d...
> > but it might be just a microoptimization not worth modifying the
> > child_return code in all ports.
> =20
> Yes, the code is a bit clunky, but runtime performance and locking is =
actually
> better (I think).
> =20
I think we can go this route. Thank you for your patch.
> Martin
> =20
>=20
--1NKi3KoowX2SBpG1jSLB5xbKPqOvhxb70--
--IPT5JTnnqUV0KqAkBTjQ4JPggK9tCQiR6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJY20A9AAoJEEuzCOmwLnZsbt0QAKE9HagDmUqqViEICCvHfpZ8
nEug54yTgKyXzcc9/qXUxdQx11a+e5HpCDqz5HuC1i6xOflQb1tYXbMoRSpB0PG+
LauQ9txAAK6mhwDrOc3uGx2MHzKYAOTvK5PontaQ6h34GSe7ugfD8q/y2O/CApjH
M9aK72ZI40FmyWyy0sn3bCLctgx+H10uQifgFV6DpHzCkwnLoxFibdSVJWeW2ChF
DU0e601FBLb3RrUaNTCo+p7A4bCaQ+ZTqcqURMw0SKDa5I5+i3/dn+jfbEoEkdpC
ClXD6tJgdlPEAH/+Nu8a05+W6tbR2RZXXqupDcGsAZd5vuZ/QkcczfuP9d0I4SQH
ax1R9ROmoaBvVVf9t/TCnc73mdh4TmOqifhmBaxbYA64ZuEwpPawEpCdI/r8Uq3Y
8ckjtp/HL+VO6tC5jSPCqAf3dSjIdPT29JQryybcX/FzqpANeOHe5g1hulymk/9W
Kfp5aoVQRpgmjb1ASvQVHrEkXueGYxOc/rEsDrC5o57tYRT0A4D1lNjOg/WQDqN0
5rby+jORomQuwUxfv9ji1fEY9P3+Gj8z4kQRjmZK2zVaI5UAgM/n2SnhMYf6Znxd
WLpqnYSRfQkxXlCwR+/FmfM/woLagu8jEtpwDO1UmJ5SLt6k7QcbHSvolwVPL8gj
H3m+iJvUy8Bkf57VW9YC
=r1YV
-----END PGP SIGNATURE-----
--IPT5JTnnqUV0KqAkBTjQ4JPggK9tCQiR6--
Home |
Main Index |
Thread Index |
Old Index