<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" >Hello,</div>
<div dir="ltr" > </div>
<div dir="ltr" >I am looking into a bug, <a href="https://bugzilla.linux.ibm.com/show_bug.cgi?id=152493" >https://bugzilla.linux.ibm.com/show_bug.cgi?id=152493</a> ( external mirror is at, <a href="https://github.com/opencontainers/runc/issues/1364" >https://github.com/opencontainers/runc/issues/1364</a>) </div>
<div dir="ltr" > </div>
<div dir="ltr" >Recently in runc code, they added this code <a href="https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR155" >https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR155</a>. As you can see they set -onlcr to get rid of \r (line no. 164). Golang, in which runc is written, doesn't have any bindings for ioctls. This means you have to invoke C code directly (that's what they are doing there).</div>
<div dir="ltr" > </div>
<div dir="ltr" >Our guess is the ioctls in ppc64le differ than x86_64, and thats why the code which is clearing onclr bit (<a href="https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR164" >https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR164</a>) is failing on ppc64le but works fine on x86_64. </div>
<div dir="ltr" > </div>
<div dir="ltr" >Any pointers on the possible solution would be really helpful. </div>
<div dir="ltr" > </div>
<div dir="ltr" >Thanks,</div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" style="margin-top: 20px;" ><div style="font-size: 12pt; font-weight: bold; font-family: sans-serif; color: #7C7C5F;" >Harshal Patil</div>
<div style="font-size: 8pt; font-family: sans-serif; margin-top: 10px;" ><div><span style="font-weight: bold; color: #336699;" >E-mail: </span><a href="mailto:harshal.patil@in.ibm.com" style="color: #555" >harshal.patil@in.ibm.com</a></div></div></div></div></div></div></div></div><BR>