Date: Fri, 5 Jun 2015 17:19:32 +0000 From: Sebastian Kuzminsky <S.Kuzminsky@F5.com> To: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Bug in FreeBSD 10.1's pthread barrier implementation? Message-ID: <D1973644.8FD0%seb@f5.com>
next in thread | raw e-mail | index | archive | help
--_004_D19736448FD0sebf5com_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm running in to a situation where pthread_barrier_t is not completely ini= tialized, and later pthread_barrier_destroy() fails. The attached patch (against FreeBSD 10.1) fixes the issue for me. -- Sebastian Kuzminsky --_004_D19736448FD0sebf5com_ Content-Type: application/octet-stream; name="0001-initialize-pthread_barrier_t-s-b_destroying-field.patch" Content-Description: 0001-initialize-pthread_barrier_t-s-b_destroying-field.patch Content-Disposition: attachment; filename="0001-initialize-pthread_barrier_t-s-b_destroying-field.patch"; size=799; creation-date="Fri, 05 Jun 2015 17:19:31 GMT"; modification-date="Fri, 05 Jun 2015 17:19:31 GMT" Content-ID: <C3C9F8CDA2D59146B470835C4C83DC8C@F5.com> Content-Transfer-Encoding: base64 RnJvbSBjMGFmNDkwNTk4NmZlMjhlNTQ2MThlMWFlNjBmNGY3Yzc0MjlmNGQ3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTZWJhc3RpYW4gS3V6bWluc2t5IDxzZWJAaGlnaGxhYi5jb20+ CkRhdGU6IEZyaSwgNSBKdW4gMjAxNSAxMToxMzo0MyAtMDYwMApTdWJqZWN0OiBbUEFUQ0hdIGlu aXRpYWxpemUgcHRocmVhZF9iYXJyaWVyX3QncyBiX2Rlc3Ryb3lpbmcgZmllbGQKClRoaXMgaW50 ZXJuYWwgc3RhdGUgdmFyaWFibGUgbmVlZHMgdG8gYmUgemVyb2VkIGF0IGluaXQtdGltZS4KClNp Z25lZC1vZmYtYnk6IFNlYmFzdGlhbiBLdXptaW5za3kgPHNlYkBmNS5jb20+Ci0tLQogbGliL2xp YnRoci90aHJlYWQvdGhyX2JhcnJpZXIuYyB8IDEgKwogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0 aW9uKCspCgpkaWZmIC0tZ2l0IGEvbGliL2xpYnRoci90aHJlYWQvdGhyX2JhcnJpZXIuYyBiL2xp Yi9saWJ0aHIvdGhyZWFkL3Rocl9iYXJyaWVyLmMKaW5kZXggODZmODgwZS4uMGFlYjk0YiAxMDA2 NDQKLS0tIGEvbGliL2xpYnRoci90aHJlYWQvdGhyX2JhcnJpZXIuYworKysgYi9saWIvbGlidGhy L3RocmVhZC90aHJfYmFycmllci5jCkBAIC05Niw2ICs5Niw3IEBAIF9wdGhyZWFkX2JhcnJpZXJf aW5pdChwdGhyZWFkX2JhcnJpZXJfdCAqYmFycmllciwKIAliYXItPmJfd2FpdGVycwk9IDA7CiAJ YmFyLT5iX2NvdW50CT0gY291bnQ7CiAJYmFyLT5iX3JlZmNvdW50ID0gMDsKKwliYXItPmJfZGVz dHJveWluZyA9IDA7CiAJKmJhcnJpZXIJPSBiYXI7CiAKIAlyZXR1cm4gKDApOwotLSAKMi40LjAK Cg== --_004_D19736448FD0sebf5com_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D1973644.8FD0%seb>