NetBSD Problem Report #56768
From martin@duskware.de Sat Mar 26 15:59:00 2022
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5E5BC1A9239
for <gnats-bugs@gnats.NetBSD.org>; Sat, 26 Mar 2022 15:59:00 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: lib/libc/regex/t_exhaust test crashes
X-Send-Pr-Version: 3.95
>Number: 56768
>Category: lib
>Synopsis: lib/libc/regex/t_exhaust test crashes
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 26 16:00:01 +0000 2022
>Originator: Martin Husemann
>Release: NetBSD 9.99.95
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 9.99.95 NetBSD 9.99.95 (MODULAR) #536: Sat Mar 26 09:19:27 CET 2022 martin@thirdstage.duskware.de:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:
The lib/libc/regex/t_exhaust test crashes reproducably on sparc64.
>How-To-Repeat:
cd /usr/tests/lib/libc/regex
gdb ./t_exhaust
(gdb) run regcomp_too_big
[..]
Program received signal SIGSEGV, Segmentation fault.
nstime_get (time=0x98)
at /usr/src/external/bsd/jemalloc/lib/../dist/src/nstime.c:129
129 nstime_init2(time, ts.tv_sec, ts.tv_nsec);
(gdb) bt
#0 nstime_get (time=0x98)
at /usr/src/external/bsd/jemalloc/lib/../dist/src/nstime.c:129
#1 nstime_update_impl (time=0x98)
at /usr/src/external/bsd/jemalloc/lib/../dist/src/nstime.c:160
#2 0x00000000000000a0 in ?? ()
Something has smashed the stack here, in this case with 0x98 words
(I have seen a few other repeating values, like 0x10000000).
>Fix:
n/a
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.