From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manolis Ragkousis Subject: Re: Porting with Guix Date: Sat, 7 Jan 2017 19:23:56 +0200 Message-ID: <201cd52d-3901-7000-0f16-35195fe02ded@gmail.com> References: <049ec993f9462be2688767ef4f5b1ca5@openmailbox.org> <27b0f619-c04e-aa37-f203-e1f4e4dbeffe@gmail.com> <87d1gbkg1x.fsf@elephly.net> <818f301bbe2fefb975dab8a945fc02a7@openmailbox.org> <1c48fb9f2b59cd614b39141c8098493c@openmailbox.org> <629ddb8a727bd86e38bfe696d0019a02@openmailbox.org> <151e0e43-e0f3-81c7-e8e3-22e878a77e51@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPuiu-0004ka-Gw for guix-devel@gnu.org; Sat, 07 Jan 2017 12:24:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPuit-0001jH-Ok for guix-devel@gnu.org; Sat, 07 Jan 2017 12:24:08 -0500 In-Reply-To: <151e0e43-e0f3-81c7-e8e3-22e878a77e51@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: rennes@openmailbox.org Cc: guix-devel@gnu.org, bug-hurd@gnu.org, Samuel Thibault Hello everyone, Continuing my last email the deadlock in "gctest" originates from file phtread_support.c:2007 #ifndef NO_PTHREAD_TRYLOCK if (1 == GC_nprocs || GC_collecting) { pthread_mutex_lock(&GC_allocate_ml) } else { GC_generic_lock(&GC_allocate_ml); } When it tries to lock GC_allocate_ml, it's already used and so pthread_mutex_lock locks the whole program. (gdb) p GC_allocate_ml $2 = {__held = 1, __lock = 0, __cthreadscompat1 = 0x0, __queue = 0x0, __attr = 0x0, __data = 0x0, __owner = 0x0, __locks = 0} This appears to happen after a thread switch. I will report back when I have more. Manolis