Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2021 16:10:11 +0000
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
Message-ID:  <bug-259971-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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<optimized ou=
t>) 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<optimized ou=
t>) 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<optimized out>, bc=3D<optimized o=
ut>) 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<optimized out>, bc=3D<optimized o=
ut>) at
/usr/src/lib/libc/regex/regcomp.c:427
...
#18796 0x00001b4769904681 in p_ere_exp (p=3D<optimized out>, bc=3D<optimize=
d out>)
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<optimized out>, pattern=3D<optimized out>) 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<optimized out>, 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<optimi=
zed out>)
at /usr/src/contrib/atf/atf-c/tp.c:201
#18803 0x00001b4767ed5b63 in run_tc (tp=3D0x7fffffda2a78, p=3D0x7fffffda2a9=
0,
exitcode=3D<optimized out>) at /usr/src/contrib/atf/atf-c/detail/tp_main.c:=
504
#18804 controlled_main (argc=3D<optimized out>, argv=3D0x7fffffda3b38,
add_tcs_hook=3D0x1b3f67584450, exitcode=3D<optimized out>) at
/usr/src/contrib/atf/atf-c/detail/tp_main.c:574
#18805 atf_tp_main (argc=3D<optimized out>, 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259971-32464>