[Bug 1133274] New: LTO: pcre2 build fails
http://bugzilla.opensuse.org/show_bug.cgi?id=1133274 Bug ID: 1133274 Summary: LTO: pcre2 build fails Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: martin.liska@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Fails due to: run-test fails: [ 104s] FAIL: RunTest (gdb) bt #0 0x00007ffff7ec7fa5 in re_compile_internal () from /lib64/libc.so.6 #1 0x00007ffff7ec896c in regcomp () from /lib64/libc.so.6 #2 0x000055555556a531 in process_pattern () at src/pcre2test.c:5337 #3 0x000055555555d880 in main (argc=<optimized out>, argv=<optimized out>) at src/pcre2test.c:8684 where regcomp from libc is called, but should be: /* Compiling succeeded. Check that the values in the preg block are sensible. It can happen that pcre2test is accidentally linked with a different POSIX library which succeeds, but of course puts different things into preg. In this situation, calling regfree() may cause a segfault (or invalid free() in valgrind), so ensure that preg.re_pcre2_code is NULL, which suppresses the calling of regfree() on exit. */ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133274 Martin Liška <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1133084 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1133274 http://bugzilla.opensuse.org/show_bug.cgi?id=1133274#c2 Martin Liška <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Martin Liška <martin.liska@suse.com> --- (In reply to Jason Sikes from comment #1)
(In reply to Martin Liška from comment #0)
Fails due to:
run-test fails: [ 104s] FAIL: RunTest
(gdb) bt #0 0x00007ffff7ec7fa5 in re_compile_internal () from /lib64/libc.so.6 #1 0x00007ffff7ec896c in regcomp () from /lib64/libc.so.6 #2 0x000055555556a531 in process_pattern () at src/pcre2test.c:5337 #3 0x000055555555d880 in main (argc=<optimized out>, argv=<optimized out>) at src/pcre2test.c:8684
where regcomp from libc is called, but should be:
...
When compiling with LTO the libc version of regcomp() is chosen to be linked rather than the pcre2 version. Weird. Upstream has decided to fix this by prefacing the POSIX function names with "pcre2_" thus removing the ambiguity from the link step.
Upstream has released version 10.33 which removes the ambiguity.
Now updating Factory pcre2 to 10.33.
Great, thank you! Let's close this issue. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com