From owner-svn-src-head@FreeBSD.ORG Sun Nov 16 05:22:30 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 521E7823; Sun, 16 Nov 2014 05:22:30 +0000 (UTC) Received: from mail-pd0-x235.google.com (mail-pd0-x235.google.com [IPv6:2607:f8b0:400e:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19963987; Sun, 16 Nov 2014 05:22:30 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id z10so1871219pdj.12 for ; Sat, 15 Nov 2014 21:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=stlMvgWO5+uttI9pxzGJxk8fLp+DEhf3z7jzWGn5Gdc=; b=FXkhkz1jK1kmMLL9zfwVGo9g4q9T5j7r+nNDzygmBzQn9lxhGtBifIOw98fcMntBZf f+qk0npBUpclW/IRjRaIawjMA+NhaRff+JxsOyNdwKiEAhIZ8TLV/peCEoKOZiml90Xw yIw+ZUROBMPaKQ6e2ysUt7Tuqd0QwM8gr4vox/45Ya9MJYjVoaCcraVi89Xy4F2JUVj8 PfY2tYkQw0nNbOIGfNeMw6GdQ10ESago+lRECsJ6eQx/UlWJD4ggNOOtDEnUDY8ltFzm dFQB/4eRG9duE3yvJiBQiJvjWcVKoEeDLj/Ks0il3DaDtX8qQ7x/lLNonkqsW9RiKd6s un0A== X-Received: by 10.68.209.230 with SMTP id mp6mr20812399pbc.27.1416115349582; Sat, 15 Nov 2014 21:22:29 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:29f3:7219:6a42:c3? ([2601:8:ab80:7d6:29f3:7219:6a42:c3]) by mx.google.com with ESMTPSA id eb5sm8121331pbd.5.2014.11.15.21.22.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Nov 2014 21:22:29 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_63F81ADA-A815-41A3-BF1D-6A55904D5EA7"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: svn commit: r274573 - head/contrib/netbsd-tests/lib/libpthread From: Garrett Cooper In-Reply-To: <546833FE.9060904@freebsd.org> Date: Sat, 15 Nov 2014 21:22:27 -0800 Message-Id: <45B1482F-352E-4874-8A89-1EC225A32E93@gmail.com> References: <201411160508.sAG58JdG055637@svn.freebsd.org> <546833FE.9060904@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Garrett Cooper X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 05:22:30 -0000 --Apple-Mail=_63F81ADA-A815-41A3-BF1D-6A55904D5EA7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 15, 2014, at 21:19, Alfred Perlstein wrote: > This looks easy enough to fix under _thr_find_thread() in libthread. >=20 > Any interest in fixing it? Yes, if it=92s POSIXly correct and doesn=92t break everything else. > Might be worth hacking _thr_find_thread() to take an ERRNO to return = based on NULL until we chase down all the paths into it just in case = EINVAL is a valid ptr. K. Thanks for the hint! > Also, just wondering what happens on other platforms, does it elicit a = crash? Ie. is NULL a safe value to pass in on other platforms? I wish I knew what happened on !x86 platforms=85 I honestly don=92t have = access to ARM/MIPS/PowerPC, so I can=92t say :/. Thanks! --Apple-Mail=_63F81ADA-A815-41A3-BF1D-6A55904D5EA7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUaDSTAAoJEMZr5QU6S73endAH+waK3sgNyS3a1P63IL8QHLN9 JJJDeHhZTN3NiJDca+ulsudhSvfgy01Ms505Zm82QqUZcet4bz6c94gX0udyNu14 CfE6c1fV2jEt1Az2n7fPBR9ILY8fJMz+XaPyzut2V5JFzwW5bnuH8WJuWkk/MVR/ nGRXkhSQPVpnD45NnWSWyXkBecpObhCpTZc/Lrp0K6hmH7jjlOT6I08MEzUp0qkY 1ULZYUqh/8KYOHGNFYak2dEx5fVWC/QYWSRR9ltZsl2epocbDhP8e9jeEC02UvfD 2F+98HVHIkB1IX1drgYiM7xab0o5ErtdVhXk4CFXzFiN6BkhT9vxnPGlasHvU14= =6TSV -----END PGP SIGNATURE----- --Apple-Mail=_63F81ADA-A815-41A3-BF1D-6A55904D5EA7--