Date: Sat, 19 Oct 2013 09:38:01 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Julio Merino <julio@meroh.net> Cc: ppc@freebsd.org Subject: Re: powerpc/183040: Nested signal handling is broken Message-ID: <20131019063801.GK3865@kib.kiev.ua> In-Reply-To: <CADyfeQWCaS7SfOh%2B=1762pEUJhTarQHe2MMpFov_TCWdWQ43_A@mail.gmail.com> References: <201310162349.r9GNnDud012497@mastodon.meroh.net> <20131017073158.GB3865@kib.kiev.ua> <CADyfeQWCaS7SfOh%2B=1762pEUJhTarQHe2MMpFov_TCWdWQ43_A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--RnxXMyWEPIZsopkG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 18, 2013 at 04:07:30PM -0400, Julio Merino wrote: > On Thu, Oct 17, 2013 at 3:31 AM, Konstantin Belousov > <kostikbel@gmail.com> wrote: > > What you could do, is to localize the point where the breakage occur. > > Add a function like this: > > > > static void > > print_sig_disposition(int signo) > > { > > struct sigaction sa; > > sigaction(signo, NULL, &sa); > > printf("sig %d handler %p\n", signo, sa.sa_handler); > > } > > > > and sprinkle a calls to it often enough, to see where the reset of the > > disposition happens. Insert the call to the function into the signal > > handler as well. >=20 > As far as I can tell, the sa_handler remains set all the time. It's > correct before the call to kill(). Please provide the modified test program and its exact output. --RnxXMyWEPIZsopkG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSYijIAAoJEJDCuSvBvK1BKPcP/3lBzQb52yLNxXTwPL2SqGS/ eY61Tf3WjkYrd6oryX2o5rgKKsiAsoxbHiVtytYuDV891ovNc1n8U4xiOStVFHsz ZXXc3mLyhi6tJBgHEPKqwkGaDhwlFraIOsXuYZpFdoz55REosCI9Q7Umy907/bIm 6S1o4/bcaIt1C/TXbSONN4hbM/vHx3II06n4UAclGfZR8urA+jTBaohu098QwC06 LmjRPoSdcCaljX2JLVrlZNGE4Hv58u6R0xg+FbbtcK30/VjSkUchYX+WFy2oxj0k gdtPJCv2OBVALS7X50IE8gzUYBPoX049dB2QLoG0vfx9HhytgJ+RN0+bVFb52bIX sddhUrThTV/3rb5i91KZjr/53XFYvwXHfXnTafu72NkIZsdQLcMPYTbMCAcozBTX Dc33tvI7Sd9olFi56RMULnKdFJB0vq03+lUaWNNGHJEsYkj5JhSgA7ZlwM/CE2X3 95P0tfEAmh3NpMYAhLCSWobujbP71LuSTLznfKSIqZnwc2wb0M7aLHbjizGGARuz zrCVLV6JjdmPpwpMKjQtaDNWYft486Qe2wzcC/15yfWrBCymlhRHRSZKqb6QJXQu iEptxVDl3HR1x4MB9qA4jAbSpwUlhKXSyowMippkNYe8TuUH/9JMqAnuNfi/d/L3 Z6EuOmVh3M6l7bhg1NUa =Nl1C -----END PGP SIGNATURE----- --RnxXMyWEPIZsopkG--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131019063801.GK3865>