From owner-freebsd-testing@freebsd.org Fri Jul 22 23:33:27 2016 Return-Path: Delivered-To: freebsd-testing@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 B056BBA1A8C for ; Fri, 22 Jul 2016 23:33:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 866811199 for ; Fri, 22 Jul 2016 23:33:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6MNXRLA093100 for ; Fri, 22 Jul 2016 23:33:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-testing@freebsd.org Subject: [Bug 202304] test lib/libutil/pidfile_test:main hangs on many non-x86 platforms Date: Fri, 22 Jul 2016 23:33:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bas.bossink+freebsd@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-testing@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 23:33:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202304 Bas Bossink changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bas.bossink+freebsd@gmail.c | |om --- Comment #4 from Bas Bossink --- In virtualbox; uname -a: FreeBSD fb11 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r303113: Thu Jul 21 22:42= :16 CEST 2016 bas@fb11:/usr/obj/usr/src/sys/GENERIC amd64 This problem also occurs only when executing the test program using kyua. When using the debugger to see where the test executable is hanging, it reveals: -- (lldb) bt * thread #1: tid =3D 100089, 0x0000000800b8e3ea libc.so.7`_select + 10 * frame #0: 0x0000000800b8e3ea libc.so.7`_select + 10 frame #1: 0x00000000004012f8 pidfile_test`common_test_pidfile_child(fn=3D"test_pidfile_contested", parent_open=3D0) + 616 at pidfile_test.c:172 [opt] frame #2: 0x0000000000400e37 pidfile_test`main [inlined] test_pidfile_contested + 12 at pidfile_test.c:236 [opt] frame #3: 0x0000000000400e2b pidfile_test`main + 139 at pidfile_test.c:= 272 [opt] frame #4: 0x0000000000400cbf pidfile_test`_start + 383 -- Looking at the code we see: select(0,0,0,0); at line 172 I don't claim to understand the specifics of this bug but in general I would say that blocking with no timeout is a bad idea. I think this test should be changed to include a timeout at line 172. Next to that the reason why the behavior is different between running the t= est app with or without kyua still needs to be investigated. --=20 You are receiving this mail because: You are the assignee for the bug.=