Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676294 - dev-libs/libpcre2-10.32: 2 tests fail on woodpecker
Summary: dev-libs/libpcre2-10.32: 2 tests fail on woodpecker
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 699052
Blocks:
  Show dependency tree
 
Reported: 2019-01-26 18:48 UTC by Michał Górny
Modified: 2021-11-04 22:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libpcre2-10.32:20190126-184537.log (libpcre2-10.32:20190126-184537.log,90.65 KB, text/plain)
2019-01-26 18:48 UTC, Michał Górny
Details
test-suite.log (test-suite.log,3.02 KB, text/plain)
2019-01-26 18:49 UTC, Michał Górny
Details
emerge-info.txt (e-info.txt,5.55 KB, text/plain)
2019-01-26 18:51 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-26 18:48:46 UTC
Created attachment 562906 [details]
libpcre2-10.32:20190126-184537.log

I was investigating quasselcore crashes and noticed that two libpcre2 tests fail:

FAIL: RunTest
FAIL: RunGrepTest
PASS: pcre2_jit_test

Same tests also fail with stable 10.30.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-26 18:49:40 UTC
Created attachment 562908 [details]
test-suite.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-26 18:51:22 UTC
Created attachment 562910 [details]
emerge-info.txt
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-26 18:56:26 UTC
(gdb) run
Starting program: /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32-abi_x86_32.x86/.libs/pcre2test -S 1 -t 10 testSinput
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
PCRE2 version 10.30 2017-08-14
/abc/jit,memory,framesize
Compile time 0.0034 milliseconds
JIT compile  0.0305 milliseconds
Memory allocation (code space): 9
Memory allocation (JIT code): 1477
Frame size for pcre2_match(): 84
   abc

Program received signal SIGSEGV, Segmentation fault.
0xf7f0c378 in jit_machine_stack_exec (arguments=0x0, arguments@entry=0xffff76a8, executable_func=0xf7fcedb0)
    at /usr/src/debug/dev-libs/libpcre2-10.30/pcre2-10.30/src/pcre2_jit_match.c:56
56      arguments->stack = &local_stack;
(gdb) bt
#0  0xf7f0c378 in jit_machine_stack_exec (arguments=0x0, arguments@entry=0xffff76a8, executable_func=0xf7fcedb0)
    at /usr/src/debug/dev-libs/libpcre2-10.30/pcre2-10.30/src/pcre2_jit_match.c:56
#1  0xf7f2e047 in pcre2_jit_match_8 (code=0x56594f70, subject=0x565990cd "abc", length=3, start_offset=0, options=0, match_data=0x56593940, 
    mcontext=0x565938d0) at /usr/src/debug/dev-libs/libpcre2-10.30/pcre2-10.30/src/pcre2_jit_match.c:171
#2  0xf7f44c5f in pcre2_match_8 (code=0x56594f70, subject=0x565990cd "abc", length=0, start_offset=0, options=<optimized out>, 
    match_data=0x56593940, mcontext=0x565938d0) at /usr/src/debug/dev-libs/libpcre2-10.30/pcre2-10.30/src/pcre2_match.c:6337
#3  0x56569094 in process_data () at /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32/src/pcre2test.c:7183
#4  0x5656bfe3 in main (argc=<optimized out>, argv=<optimized out>)
    at /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32/src/pcre2test.c:8655
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-26 18:59:46 UTC
I can also confirm that tests pass with USE=-jit.  However, USE=jit is apparently required by dev-vcs/git.  CC-ing Infra.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-26 21:45:17 UTC
Another data point: it doesn't crash with -O0.  It does with -O1, -Og and higher.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-31 20:05:05 UTC
Can infra please test =dev-libs/libpcre2-10.33-r1?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-11-01 19:06:39 UTC
make[3]: Entering directory '/var/tmp/portage/dev-libs/libpcre2-10.33-r1/work/pcre2-10.33-abi_x86_32.x86'
PASS: RunGrepTest
PASS: RunTest
PASS: pcre2_jit_test
============================================================================
Testsuite summary for PCRE2 10.33
============================================================================
# TOTAL: 3
# PASS:  3
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/var/tmp/portage/dev-libs/libpcre2-10.33-r1/work/pcre2-10.33-abi_x86_32.x86'
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libpcre2-10.33-r1/work/pcre2-10.33-abi_x86_32.x86'
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libpcre2-10.33-r1/work/pcre2-10.33-abi_x86_32.x86'
>>> Completed testing dev-libs/libpcre2-10.33-r1
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2019-11-01 20:06:11 UTC
Thank you, we will stabilize this version via bug 699052.