NetBSD Problem Report #52155

From  Tue Apr 11 16:07:40 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id A34E17A266
	for <>; Tue, 11 Apr 2017 16:07:40 +0000 (UTC)
Message-Id: <>
Date: Tue, 11 Apr 2017 18:07:31 +0200 (CEST)
Subject: running sparc tests/lib/libc/net/t_hostent locks up
X-Send-Pr-Version: 3.95

>Number:         52155
>Category:       port-sparc
>Synopsis:       running sparc tests/lib/libc/net/t_hostent locks up
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 11 16:10:00 +0000 2017
>Last-Modified:  Sat Apr 15 15:05:00 +0000 2017
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.67
The NetBSD Foundation, Inc.
System: NetBSD 7.99.67 NetBSD 7.99.67 (NELLY) #6: Mon Apr 10 20:08:09 CEST 2017 sparc
Architecture: sparc
Machine: sparc

Using a sparc64 SMP kernel and sparc userland on any SMP ultrasparc
fails various tests. One simple way to reproduce it:

On a sparc64 system, extract all sparc sets in a subdirectory, chroot
there and do:

  cd /usr/tests/lib/libc/net
  atf-run t_hostent

This will hang in (at latest) the second test and block forever.
Something must be wrong with sparc libpthread would be my guess.

Unfortunately trying to run the same test under netbsd32 compat (so using
the sparc64 compat libpthread) fails for other reasons (will send a separate
PR). This all works fine natively on sparc64.



From: Martin Husemann <>
Subject: Re: kern/52155: running sparc tests/lib/libc/net/t_hostent locks up
Date: Sat, 15 Apr 2017 17:03:48 +0200

 The same lockup happens on a MP sparc (32bit) machine.
 It seems to work on uniprocessor sparcs.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.