Skip to content

Commit e734b5c

Browse files
committed
Disable the dso assertion for now because the thread sanitizer calls:
tsan_interceptors_posix.cpp: if (REAL(__cxa_atexit)(&finalize, 0, 0))
1 parent daee444 commit e734b5c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/libc/stdlib/atexit.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: atexit.c,v 1.32 2017/11/06 14:26:03 joerg Exp $ */
1+
/* $NetBSD: atexit.c,v 1.33 2025/10/13 20:50:48 christos Exp $ */
22

33
/*-
44
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
3131

3232
#include <sys/cdefs.h>
3333
#if defined(LIBC_SCCS) && !defined(lint)
34-
__RCSID("$NetBSD: atexit.c,v 1.32 2017/11/06 14:26:03 joerg Exp $");
34+
__RCSID("$NetBSD: atexit.c,v 1.33 2025/10/13 20:50:48 christos Exp $");
3535
#endif /* LIBC_SCCS and not lint */
3636

3737
#include "reentrant.h"
@@ -175,7 +175,9 @@ __cxa_atexit_internal(void (*func)(void *), void *arg, void *dso)
175175
int
176176
__cxa_atexit(void (*func)(void *), void *arg, void *dso)
177177
{
178+
#if 0
178179
_DIAGASSERT(dso != NULL);
180+
#endif
179181
return (__cxa_atexit_internal(func, arg, dso));
180182
}
181183

0 commit comments

Comments
 (0)