NetBSD Problem Report #54061

From gson@gson.org  Fri Mar 15 13:34:48 2019
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 B24FD7A166
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 Mar 2019 13:34:48 +0000 (UTC)
Message-Id: <20190315133445.13D619894DA@guava.gson.org>
Date: Fri, 15 Mar 2019 15:34:45 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: regcomp_too_big test cases now fail on amd64
X-Send-Pr-Version: 3.95

>Number:         54061
>Category:       lib
>Synopsis:       regcomp_too_big test cases now fail on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    christos
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 15 13:35:00 +0000 2019
>Closed-Date:    Sun Mar 17 11:22:49 +0000 2019
>Last-Modified:  Sun Mar 17 11:22:49 +0000 2019
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

The following two test cases are failing on amd64, but not on i386:

  lib/libc/regex/t_exhaust:regcomp_too_big
  lib/libtre/t_exhaust:regcomp_too_big

Log output:

  http://releng.netbsd.org/b5reports/amd64/2019/2019.03.08.20.35.10/test.html#lib_libtre_t_exhaust_regcomp_too_big
  http://www.gson.org/netbsd/bugs/build/amd64-baremetal/2019/2019.03.14.19.51.49/test.html#lib_libtre_t_exhaust_regcomp_too_big

The above links are for the same test case, but from different machines
and source dates, and the latter one contains a backtrace:

  <jemalloc>: Lock rank order reversal: extent_mutex_pool(16) extent_avail(15)
  Test program crashed; attempting to get stack trace
  [New process 1]
  Core was generated by `t_exhaust'.
  Program terminated with signal SIGABRT, Aborted.
  #0  0x000071b62c7996fa in _lwp_kill () from /usr/lib/libc.so.12
  #0  0x000071b62c7996fa in _lwp_kill () from /usr/lib/libc.so.12
  #1  0x000071b62c7993a9 in abort () from /usr/lib/libc.so.12
  #2  0x000071b62c6bac0a in ?? () from /usr/lib/libc.so.12
  #3  0x000071b62c6eac19 in ?? () from /usr/lib/libc.so.12
  #4  0x000071b62c6ed820 in extent_dalloc () from /usr/lib/libc.so.12
  #5  0x000071b62c6f33a3 in extent_alloc_wrapper () from /usr/lib/libc.so.12
  #6  0x000071b62c7229c3 in ?? () from /usr/lib/libc.so.12
  #7  0x000071b62c724d1d in arena_tcache_fill_small () from /usr/lib/libc.so.12
  #8  0x000071b62c6bc81b in tcache_alloc_small_hard () from /usr/lib/libc.so.12
  #9  0x000071b62c730e2f in ?? () from /usr/lib/libc.so.12
  #10 0x000071b62c731bf7 in malloc () from /usr/lib/libc.so.12
  #11 0x000071b62d2026ab in tre_stack_new () from /usr/lib/libtre.so.0
  #12 0x000071b62d20bb25 in tre_compile () from /usr/lib/libtre.so.0
  #13 0x000071b62d20d9ff in tre_regncomp () from /usr/lib/libtre.so.0
  #14 0x00000001ecc011ee in atfu_regcomp_too_big_body ()
  #15 0x000071b62ce09bdc in atf_tc_run () from /usr/lib/libatf-c.so.0
  #16 0x000071b62ce06c5d in atf_tp_main () from /usr/lib/libatf-c.so.0
  #17 0x00000001ecc0105d in ___start ()
  #18 0x00007f7ef3002c9e in dlclose () from /usr/libexec/ld.elf_so
  #19 0x00007f7ffff03324 in ?? ()
  #20 0x00007f7ffff0333f in ?? ()
  #21 0x0000000000000000 in ?? ()
  Stack trace complete

They started failing some time between source date 2019.03.07.18.32.10 and
2019.03.08.20.35.10.  A bisection is in progress to narrow this down further.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: lib-bug-people->christos
Responsible-Changed-By: gson@NetBSD.org
Responsible-Changed-When: Sat, 16 Mar 2019 08:54:33 +0000
Responsible-Changed-Why:
Over to committer.


From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: gson@gson.org (Andreas Gustafsson)
Subject: Re: lib/54061: regcomp_too_big test cases now fail on amd64
Date: Sat, 16 Mar 2019 10:53:44 +0200

 I have now bisected this down to a single commit:

   2019.03.08.20.35.10 christos src/share/mk/bsd.own.mk 1.1108

 Logs at:

   http://releng.netbsd.org/b5reports/amd64/commits-2019.03.html#2019.03.08.20.35.10

 -- 
 Andreas Gustafsson, gson@gson.org

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54061 CVS commit: src/tests/lib/libc/regex
Date: Sat, 16 Mar 2019 17:57:15 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sat Mar 16 21:57:15 UTC 2019

 Modified Files:
 	src/tests/lib/libc/regex: t_exhaust.c

 Log Message:
 PR/54061: Bump memory for jemalloc (a lot).


 To generate a diff of this commit:
 cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/regex/t_exhaust.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Sun, 17 Mar 2019 11:22:49 +0000
State-Changed-Why:
Fixed by christos - thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.