From owner-freebsd-ports-bugs@freebsd.org Sat Apr 30 22:46:38 2016 Return-Path: Delivered-To: freebsd-ports-bugs@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 BB5D9B222B0 for ; Sat, 30 Apr 2016 22:46:38 +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 841C31E63 for ; Sat, 30 Apr 2016 22:46:38 +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 u3UMkcHh016060 for ; Sat, 30 Apr 2016 22:46:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209006] [maintainer] net/pacemaker: multiple changes Date: Sat, 30 Apr 2016 22:46:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dpejesh@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2016 22:46:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209006 --- Comment #2 from David Shane Holden --- This seems to be threading related. The build only fails in an 11 poudriere jail, though builds fine in an 10.3 poudriere jail and on an 11 virtual machine. What's really peculiar though is it looks like libqb uses PTHREAD_PROCESS_SHARED pthread spin locks, which according to the pthread_spin_init man page aren't supported at all on FreeBSD. I would have expected to see threading problems show up before this if that's really the problem. Running the following code on a combination of 10/11 host and virtual machi= nes also shows something kind of interesting. #include #include #include int main() { pthread_spinlock_t lock; int r; r =3D pthread_spin_init(&lock, PTHREAD_PROCESS_SHARED); if (r !=3D 0) err(1, "pthread_spin_init(%i)", errno); err(0, "pthread_spin_init(0)"); } 10-amd64-jail: test: pthread_spin_init(2): No such file or directory 10-amd64-host: test: pthread_spin_init(2): No such file or directory 11-amd64-jail: test: pthread_spin_init(22): Invalid argument 11-amd64-host: test: pthread_spin_init(0): No error: 0 The fact that this problem only seems to show up in an 11 jail and doesn't segfault anywhere else except there makes me curious if the problem isn't related to FreeBSD 11 and not libqb/pacemaker. I can submit a patch for li= bqb to use mutexes instead of spinlocks which fixes the segfault, but that might just be more of a workaround for whatever is causing pthread_spin_init() to= act differently inside of a jail. --=20 You are receiving this mail because: You are the assignee for the bug.=