NetBSD Problem Report #56296

From  Sat Jul  3 15:41:02 2021
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 9B6501A923B
	for <>; Sat,  3 Jul 2021 15:41:02 +0000 (UTC)
Subject: gdb spins in lib/libc/tls/t_tls_dlopen
X-Send-Pr-Version: 3.95

>Number:         56296
>Category:       port-arm
>Synopsis:       gdb spins in lib/libc/tls/t_tls_dlopen
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 03 15:45:00 +0000 2021
>Last-Modified:  Tue Aug 15 04:05:03 +0000 2023
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.86
The NetBSD Foundation, Inc.
System: NetBSD 9.99.86 NetBSD 9.99.86 (UNPLUGED) #387: Sat Jul 3 10:36:35 CEST 2021 evbarm
Architecture: earmv5
Machine: evbarm

During a ful ATF test run, this machine stops at:

lib/libc/tls/t_tls_dlopen (361/890): 1 test cases

Examining closer, the test crashes and ATF tries to get a backtrace, but
gdb spins and blocks atf. Killing gdb makes atf continue.


cd /usr/tests/lib/libc/tls/ && atf-run t_tls_dlopen


From: Martin Husemann <>
Subject: Re: port-arm/56296: gdb spins forever
Date: Fri, 5 Nov 2021 19:40:01 +0100

 This is still reproducable on evbarmv5.


From: Rin Okuyama <>
To: "" <>,
Subject: Re: port-arm/56296 (gdb spins in lib/libc/tls/t_tls_dlopen)
Date: Tue, 15 Aug 2023 13:03:23 +0900

 For earmv5-el, in addition to lib/libc/tls/t_tls_dlopen,
 all tests in libexec/ crashes in
 a similar manner. GDB also spins forever.

 port-arm/56839 is irrelevant here; its workaround

 does not help.

 Strangely enough, these failures are not observed for
 earmv5-eb, even if running on *the same machine* (note
 that MARVELL_NAS-based machines support both endians).

 I will examine further...


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.