Special characters string causes infinite loop (100% cpu usage in quadlet to unit files generator):
Seems similar to #21109
Steps to reproduce the issue
Steps to reproduce the issue
Create some test quadlet file: test.container
Insert comment to the top of the file: # =3;\
Run /usr/libexec/podman/quadlet -v -no-kmsg-log -dryrun
The process will get stuck
Change the special string (comment) to # 3;\
Re-run the quadlet parser which will pass fine
Describe the results you received
100% CPU usage, quadlet command stuck
Nota bene:
It looks like this happens only if the quadlet file is the LAST one to be processed - if the Quadlet file with this issue is not the last one to process it get SKIPPED SILENTLY by the quadlet command.
Issue Description
Special characters string causes infinite loop (100% cpu usage in quadlet to unit files generator):
Seems similar to #21109
Steps to reproduce the issue
Steps to reproduce the issue
# =3;\
# 3;\
Describe the results you received
100% CPU usage, quadlet command stuck
Nota bene: It looks like this happens only if the quadlet file is the LAST one to be processed - if the Quadlet file with this issue is not the last one to process it get SKIPPED SILENTLY by the quadlet command.
Describe the results you expected
Create unit files from quadlet
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional information
The issue happens every time when the scenario is re-run.
I can additionally confirm that this issue is also present on: