Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Fix Version/s: Vz7.0-Update13
-
Component/s: Containers::Kernel
-
Security Level: Public
Description
>Description of problem:
/proc/bc/resources not reporting end of file when reading line by line. Works properly upto and in vzkernel-3.10.0-957.12.2.vz7.96.21.x86_64. Fails in vzkernel-3.10.0-1062.4.2.vz7.116.7.x86_64.
>How reproducible: always
>Steps to Reproduce:
1. q=;while read -r r;do echo "$((++q)) $r";done</proc/bc/resources|&less
2.
3.
>Actual results:
After reading all lines, continues rereading first line, never stops.
>Expected results:
stop at end
>Host OS: 3.10.0-1062.4.2.vz7.116.7
>Guest OS: n/a
>Additional info (see https://openvz.org/Reporting_OpenVZ_problem):
Above command works properly on 3.10.-957.12.2.vz7.96.21.
"less /proc/bc/resources" works properly on both.
/proc/bc/resources not reporting end of file when reading line by line. Works properly upto and in vzkernel-3.10.0-957.12.2.vz7.96.21.x86_64. Fails in vzkernel-3.10.0-1062.4.2.vz7.116.7.x86_64.
>How reproducible: always
>Steps to Reproduce:
1. q=;while read -r r;do echo "$((++q)) $r";done</proc/bc/resources|&less
2.
3.
>Actual results:
After reading all lines, continues rereading first line, never stops.
>Expected results:
stop at end
>Host OS: 3.10.0-1062.4.2.vz7.116.7
>Guest OS: n/a
>Additional info (see https://openvz.org/Reporting_OpenVZ_problem):
Above command works properly on 3.10.-957.12.2.vz7.96.21.
"less /proc/bc/resources" works properly on both.