I am experiencing the following during repeatable tests:
Test 1:
1. Start a container using the latest (8.3.201) Docker image.
2. Set variable VERSION to anything, say 1.
3. Create a text file containing the string "VERSION".
4. sed -i "s/VERSION/${VERSION/.rc/~rc}/" file
5. String substitution works as expected.
Test 2:
1. Start a container using the latest (8.3.201) Docker image.
2. dnf makecache.
3. dnf upgrade (which upgrades to 8.4.2105)
4. Set variable VERSION to anything, say 1.
5. Create a text file containing the string "VERSION".
6. sed -i "s/VERSION/${VERSION/.rc/~rc}/" file
7. The following is reported:
*** stack smashing detected ***: <unknown> terminated
and the container crashes.
8. The following is logged on the host (Fedora):
Code: Select all
Jun 08 13:00:56 localhost abrt-server[29178]: Blacklisted package 'bash'
Jun 08 13:00:56 localhost abrt-server[29178]: 'post-create' on '/var/spool/abrt/ccpp-2021-06-08-13:00:55.861039-28753' exited with 1
Jun 08 13:00:56 localhost abrt-server[29178]: Deleting problem directory '/var/spool/abrt/ccpp-2021-06-08-13:00:55.861039-28753'
Jun 08 13:00:56 localhost abrt-dump-journal-oops[833]: abrt-dump-journal-oops: Found oopses: 1
Jun 08 13:00:56 localhost abrt-dump-journal-oops[833]: abrt-dump-journal-oops: Creating problem directories
Jun 08 13:00:57 localhost abrt-server[29190]: Can't find a meaningful backtrace for hashing in '.'
Jun 08 13:00:57 localhost abrt-server[29190]: Preserving oops '.' because DropNotReportableOopses is 'no'
Jun 08 13:00:57 localhost abrt-notification[29207]: System encountered a non-fatal error in ??()
I have performed the same tests in a virtual machine, rather than a container, and everything works in both scenarios.
Three questions:
1. Does anyone happen to know the cause?
2. Should I raise this as a bug? If so, against which component?
3. Should there be an image for CentOS 8.4.2105 on Docker Hub?
Many thanks in advance.