From nobody Sun Nov 21 16:10:11 2021 X-Original-To: testing@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C0F85189FDB7 for ; Sun, 21 Nov 2021 16:10:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HxwNM4zRbz3qXQ for ; Sun, 21 Nov 2021 16:10:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8AAFF12708 for ; Sun, 21 Nov 2021 16:10:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1ALGABxX008406 for ; Sun, 21 Nov 2021 16:10:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ALGAB8J008405 for testing@FreeBSD.org; Sun, 21 Nov 2021 16:10:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: testing@FreeBSD.org Subject: [Bug 259971] lib.libc.regex.exhaust_test.regcomp_too_big fails with ASLR on by default Date: Sun, 21 Nov 2021 16:10:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: testing@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Testing List-Archive: https://lists.freebsd.org/archives/freebsd-testing List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-testing@freebsd.org X-BeenThere: freebsd-testing@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259971 Bug ID: 259971 Summary: lib.libc.regex.exhaust_test.regcomp_too_big fails with ASLR on by default Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: tests Assignee: testing@FreeBSD.org Reporter: emaste@freebsd.org Blocks: 259968 As reported by lwhsu and mw on -current=20 lib.libc.regex.exhaust_test.regcomp_too_big fails after ASLR was enabled by default https://ci.freebsd.org/job/FreeBSD-main-amd64-test/19867/testReport/junit/l= ib.libregex/exhaust_test/regcomp_too_big/ Process with PID 3322 exited with signal 11 and dumped core; attempting to gather stack trace [New LWP 101363] Core was generated by `/usr/tests/lib/libregex/exhaust_test -vallow_sysctl_side_effects -vcam_test_devi'. Program terminated with signal SIGSEGV, Segmentation fault. Invalid permissions for mapped object. #0 0x00001b476990418c in p_ere_exp (p=3D0x7fffffda1fc0, bc=3D) at /usr/src/lib/libc/regex/regcomp.c:418 418 /usr/src/lib/libc/regex/regcomp.c: No such file or directory. #0 0x00001b476990418c in p_ere_exp (p=3D0x7fffffda1fc0, bc=3D) at /usr/src/lib/libc/regex/regcomp.c:418 #1 0x00001b47699062eb in p_re (p=3Dp@entry=3D0x7fffffda1fc0, end1=3Dend1@e= ntry=3D41, end2=3Dend2@entry=3D-130) at /usr/src/lib/libc/regex/regcomp.c:783 #2 0x00001b4769904681 in p_ere_exp (p=3D, bc=3D) at /usr/src/lib/libc/regex/regcomp.c:427 #3 0x00001b47699062eb in p_re (p=3Dp@entry=3D0x7fffffda1fc0, end1=3Dend1@e= ntry=3D41, end2=3Dend2@entry=3D-130) at /usr/src/lib/libc/regex/regcomp.c:783 #4 0x00001b4769904681 in p_ere_exp (p=3D, bc=3D) at /usr/src/lib/libc/regex/regcomp.c:427 ... #18796 0x00001b4769904681 in p_ere_exp (p=3D, bc=3D) at /usr/src/lib/libc/regex/regcomp.c:427 #18797 0x00001b47699062eb in p_re (p=3Dp@entry=3D0x7fffffda1fc0, end1=3Dend1@entry=3D-129, end2=3Dend2@entry=3D-129) at /usr/src/lib/libc/regex/regcomp.c:783 #18798 0x00001b47699033e0 in regcomp_internal (cflags=3D1750826696, pflags= =3D0, preg=3D, pattern=3D) at /usr/src/lib/libc/regex/regcomp.c:318 #18799 regcomp (preg=3D0x7fffffda21a0, pattern=3D0x1b476ac3e480 "(.?)(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0= ,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(= .\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\{0,}(.\\= {0,}"..., cflags=3D1) at /usr/src/lib/libc/regex/regcomp.c:371 #18800 0x00001b3f67584600 in ?? () #18801 0x00001b4767ed3057 in atf_tc_run (tc=3D0x1b3f67587bb8, tc@entry=3D0x1b476abee020, resfile=3D, resfile@entry=3D0x1 <= error: Cannot access memory at address 0x1>) at /usr/src/contrib/atf/atf-c/tc.c:10= 54 #18802 0x00001b4767ed516e in atf_tp_run (tp=3Dtp@entry=3D0x7fffffda2a78, tcname=3Dtcname@entry=3D0x1b476abee020 "regcomp_too_big", resfile=3D) at /usr/src/contrib/atf/atf-c/tp.c:201 #18803 0x00001b4767ed5b63 in run_tc (tp=3D0x7fffffda2a78, p=3D0x7fffffda2a9= 0, exitcode=3D) at /usr/src/contrib/atf/atf-c/detail/tp_main.c:= 504 #18804 controlled_main (argc=3D, argv=3D0x7fffffda3b38, add_tcs_hook=3D0x1b3f67584450, exitcode=3D) at /usr/src/contrib/atf/atf-c/detail/tp_main.c:574 #18805 atf_tp_main (argc=3D, argv=3D0x7fffffda3b38, add_tcs_hook=3D0x1b3f67584450) at /usr/src/contrib/atf/atf-c/detail/tp_main= .c:604 #18806 0x00001b3f6758421d in ?? () #18807 0x0000000000000000 in ?? () GDB exited successfully Files left in work directory after failure: exhaust_test.core Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259968 [Bug 259968] ASLR by default tracking PR --=20 You are receiving this mail because: You are the assignee for the bug.=