From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 21 18:10:13 2013 Return-Path: Delivered-To: ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CCCB69BB for ; Mon, 21 Oct 2013 18:10:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1D8F02A87 for ; Mon, 21 Oct 2013 18:10:12 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r9LIA7JU037986; Mon, 21 Oct 2013 21:10:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r9LIA7JU037986 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r9LIA6Pu037977; Mon, 21 Oct 2013 21:10:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 21 Oct 2013 21:10:06 +0300 From: Konstantin Belousov To: Julio Merino Subject: Re: powerpc/183040: Nested signal handling is broken Message-ID: <20131021181006.GU3865@kib.kiev.ua> References: <201310162349.r9GNnDud012497@mastodon.meroh.net> <20131017073158.GB3865@kib.kiev.ua> <20131019063801.GK3865@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dkgfGZfPp4OU3Le7" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Oct 2013 18:10:13 -0000 --dkgfGZfPp4OU3Le7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 19, 2013 at 04:53:23PM -0400, Julio Merino wrote: > On Sat, Oct 19, 2013 at 2:38 AM, Konstantin Belousov > wrote: > > Please provide the modified test program and its exact output. >=20 > I'm not sure what you are looking for with this... but attached. I am trying to bisect the problem area. So the handler is always set correctly, but it seems that the signal is not delivered, only for some signals. This smells like blocked signal. Could you ktrace/kdump the program, and see if the signal was delivered to the process ? Also, you might start some long living process, like 'sleep 10000 &' using the same method as you run the test.c, i.e. from the same shell session, and than do 'procstat -i' and 'procstat -j' on the pid to see if SIGHUP and SIGINT are blocked. --dkgfGZfPp4OU3Le7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSZW39AAoJEJDCuSvBvK1B1z4P/0KwXTLjHjPw0NC3/I7rLLkn PKX1unHwmJgB2qAR5xXwK4HPXQVMPsiT4r5FBagWWzbU/ktWpwsCoarBMw/NsNPG YxbE+6o5LL9Tj/9zZ9FaKQU1/gif+VI2Jn82R6Fq48zI3IX5BvnXeWEMckA406PS esR/8WCdr5LUMLyk0q+Y471iTvBcz0gvvA0Y3ZIZHxb48chsCh5dpsZZkIU0NX83 WYvKamf4QcxZ3i1MVaI8xwsdgB8bK7br+J5q3O6ibI4YoW+KSQ6ym3FkcBBLCaSC 0LdFqBq1v2L0LnL6GH4TuOPi4n3Z5mhSK3MT0Qo6RCEMYYMMM79SQCev7pjvdVki h2GvSah7WX1Ebt1+t/3O1BA3oeQb5ALDzhRupm2Xwmev11SN9TcFeziVtDau5/Tb fAdwKXhvyFE2fIgrwJLCIfAyvfBmfnlROaEOVU3Zl55wyVZOWzCH+NXDKrS9c6PI 2QlNSeZ2PyiLRCdk0HH1oyMTaQuOGwcxz6f1p2W460284yrLGiy3nyf0bhi0mhVo cHM2mcVBoiZtHbQ9lHDk/LD6LY4JqNku5nPt9HZVeLkjeiDqHu0JSgBGUvxGWdRo IhSMFhJgYtGt7abRlBYcMll0158962OSaFhZGcd4sdIRG1IivwOYvMBpmg5CuRJY snN0ln+CZo4CGd6GPEim =l6/l -----END PGP SIGNATURE----- --dkgfGZfPp4OU3Le7--