From owner-freebsd-threads@freebsd.org Thu Sep 3 10:34:02 2015 Return-Path: Delivered-To: freebsd-threads@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15A039C842F; Thu, 3 Sep 2015 10:34:02 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2499194C; Thu, 3 Sep 2015 10:34:01 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=Q0XkQq+Pir6+ftTFr7cm84q7GQQX9ssRNGvpQI5E2GA=; b=ZvQxTuprQJWIaPOLOCtKsR+qwPhxALrQeriX//BtnWXS/6EkSCviBKfda1VjoKkTwP+FUxSxBWwqspPuefQQoEkj9TuJfXsBptKkBCWOTTZwfiMNndAwHECgw371wN6AjwhW+eHjXDN51kv/s4v31nXwfrxOZVH2XSyJ8iwkc3E=; Received: from [114.124.24.124] (port=21167 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZXRqC-001MZu-7Y; Thu, 03 Sep 2015 04:34:00 -0600 Date: Thu, 3 Sep 2015 18:33:53 +0800 From: Erich Dollansky To: Konstantin Belousov Cc: FreeBSD stable , freebsd-threads@freebsd.org Subject: Re: pthread_cancel / sleep change in behaviour Message-ID: <20150903183353.2633a38b@X220.alogt.com> In-Reply-To: <20150903081947.GB2072@kib.kiev.ua> References: <20150903080047.16be939e@X220.alogt.com> <20150903081947.GB2072@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2015 10:34:02 -0000 Hi, On Thu, 3 Sep 2015 11:19:47 +0300 Konstantin Belousov wrote: > On Thu, Sep 03, 2015 at 08:00:47AM +0800, Erich Dollansky wrote: > > > > Is this change of behaviour a feature or a bug? > > Provide a minimal example demonstrating the issue. while preparing the example I found the source of the problem. We have to block all signals for some reason. The handling for signal (SIGTHR, SIG_IGN); seems to have changed. The moment I remove above's line from the code, the program works. There is no difference when the programs runs on machines prior mid November 2014. Thanks for your help. Simplifying the program brought me to the solution. Do you want the example? Erich > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org"