Skip to contentSkip to conversation

libpcre: fix occasionally do_package_write_rpm error

PATCH In review Changqing Li 2 participants 4 messages Aug 28, 2020 – Sep 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpcre: fix occasionally do_package_write_rpm error

From: Changqing Li <[email protected]>

Error info:
ERROR: libpcre-8.44-r0 do_package_write_rpm: Failure expanding variable SUMMARY_libpcrecpp, expression was ${SUMMARY} - C++ wrapper functions which triggered exception RecursionError: maximum recursion depth exceeded while calling a Python object

this error is hard to reproduce, only met one time. Seems expand SUMMARY with reference to SUMMARY cause a dead loop.

---
 meta/recipes-support/libpcre/libpcre_8.44.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-support/libpcre/libpcre_8.44.bb +2 -2
index e5471e81da..102b92b4dd 100644
@@ -40,8 +40,8 @@ EXTRA_OECONF = "--enable-utf"
 
 PACKAGES =+ "libpcrecpp libpcreposix pcregrep pcregrep-doc pcretest pcretest-doc"
 
-SUMMARY_libpcrecpp = "${SUMMARY} - C++ wrapper functions"
-SUMMARY_libpcreposix = "${SUMMARY} - C wrapper functions based on the POSIX regex API"
+SUMMARY_libpcrecpp = "Perl Compatible Regular Expressions - C++ wrapper functions"
+SUMMARY_libpcreposix = "Perl Compatible Regular Expressions - C wrapper functions based on the POSIX regex API"
 SUMMARY_pcregrep = "grep utility that uses perl 5 compatible regexes"
 SUMMARY_pcregrep-doc = "grep utility that uses perl 5 compatible regexes - docs"
 SUMMARY_pcretest = "program for testing Perl-comatible regular expressions"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines · Changqing Li

From: Changqing Li <[email protected]>

Error info:
ERROR: libpcre-8.44-r0 do_package_write_rpm: Failure expanding variable
SUMMARY_libpcrecpp, expression was ${SUMMARY} - C++ wrapper functions which triggered exception RecursionError: maximum recursion depth exceeded while calling a Python object

Quoted 4 lines

this error is hard to reproduce, only met one time. Seems expand SUMMARY with reference to SUMMARY cause a dead loop.

What is worrying me is why we can't reproduce this. It should fail or not fail, why do we only sometimes see this?

I'd like to understand the cause as it sounds like a determinism problem somewhere.

Is there a sequence we can reproduce it with?

Cheers,

Richard

#2 lore raw
Quoted 13 lines · Richard Purdie
Quoted 12 lines · Changqing Li

From: Changqing Li <[email protected]>

Error info:
ERROR: libpcre-8.44-r0 do_package_write_rpm: Failure expanding variable
SUMMARY_libpcrecpp, expression was ${SUMMARY} - C++ wrapper functions which triggered exception RecursionError: maximum recursion depth exceeded while calling a Python object

this error is hard to reproduce, only met one time. Seems expand SUMMARY with reference to SUMMARY cause a dead loop.

Quoted 8 lines
Quoted 1 line

What is worrying me is why we can't reproduce this. It should fail or not fail, why do we only sometimes see this?

I'd like to understand the cause as it sounds like a determinism problem somewhere.

Is there a sequence we can reproduce it with?

Unfortunately no, we also hard to reproduce this, only met one time on 08 Jul when build a wrlinux image.

And don't see it for about 2 months.

Quoted 7 lines

Cheers,

Richard

#3 lore raw
Quoted 25 lines · Changqing Li
Quoted 23 lines · Richard Purdie
Quoted 10 lines · Changqing Li

From: Changqing Li <[email protected]>

Error info:
ERROR: libpcre-8.44-r0 do_package_write_rpm: Failure expanding variable
SUMMARY_libpcrecpp, expression was ${SUMMARY} - C++ wrapper functions
which triggered exception RecursionError: maximum recursion depth exceeded while calling a Python object

Quoted 4 lines

this error is hard to reproduce, only met one time. Seems expand SUMMARY with reference to SUMMARY cause a dead loop.

What is worrying me is why we can't reproduce this. It should fail or
not fail, why do we only sometimes see this?

I'd like to understand the cause as it sounds like a determinism problem somewhere.

Quoted 6 lines
Quoted 1 line

Is there a sequence we can reproduce it with?

Unfortunately no, we also hard to reproduce this, only met one time on 08 Jul when build a wrlinux image.

And don't see it for about 2 months.

I'd like to have a better understanding of the issue before we merge potential fixes as there are probably other recipes which also reference SUMMARY like this and I don't want to patch them all without understanding the problem.

Cheers,

Richard