From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80144C433F5 for ; Wed, 27 Oct 2021 10:52:38 +0000 (UTC) Received: from m43-7.mailgun.net (m43-7.mailgun.net [69.72.43.7]) by mx.groups.io with SMTP id smtpd.web09.10047.1635331955323966359 for ; Wed, 27 Oct 2021 03:52:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=TFmPAIhG; spf=pass (domain: mg.codeaurora.org, ip: 69.72.43.7, mailfrom: bounce+38e253.be9e4a-yocto=lists.yoctoproject.org@mg.codeaurora.org) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1635331957; h=Content-Type: MIME-Version: Message-ID: Date: Subject: To: From: Sender; bh=fna2+fB43PeN//kWx1qknkcVtXKcNraxdeb4oJ9HUto=; b=TFmPAIhG8DIkxUBFCSXivI9/600xqjD0GWzi51KMqX31PgnYsg1szyb6VQgniKrS/M0tGQcx igp2BsBn156lK8MsjB7OVul7X/fDafi7IbNnJnM7S2b1fijf95PcA0HcVdNxWVzB8H1Fysfs /0yzYl/NyctqZqDW5gWIbLEf9ZE= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyIxNWVjOSIsICJ5b2N0b0BsaXN0cy55b2N0b3Byb2plY3Qub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 61792f5f5ca800b6c15574c8 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 27 Oct 2021 10:52:15 GMT Sender: rpaluri=codeaurora.org@codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E1878C43460; Wed, 27 Oct 2021 10:52:14 +0000 (UTC) Received: from rpaluri1 (unknown [136.185.63.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: rpaluri) by smtp.codeaurora.org (Postfix) with ESMTPSA id 51081C4338F; Wed, 27 Oct 2021 10:52:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 51081C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: To: , Subject: BusyBox pTest failure Date: Wed, 27 Oct 2021 16:22:09 +0530 Message-ID: <01f601d7cb20$b3551a90$19ff4fb0$@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01F7_01D7CB4E.CD0E40F0" X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AdfLHg654WKSQRSaTyOJwXKiOZEYEA== List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 27 Oct 2021 10:52:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/55171 This is a multipart message in MIME format. ------=_NextPart_000_01F7_01D7CB4E.CD0E40F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, We are executing busybox pTests and we see that the test case execution stops at md5sum test case. We analyzed and see that the execution gets stuck here at Line no 29. Below are the relevant code lines: Line no. 28: text="The quick brown fox jumps over the lazy dog" Line no. 29: text=`yes "$text" | head -c 9999` I executed above two lines on my host machine and the I get the shell prompt back but when executed on target machine, I'm not getting the shell prompt, it gets stuck. /usr/lib/busybox/ptest # text="The quick brown fox jumps over the lazy dog" /usr/lib/busybox/ptest # text=`yes "$text" | head -c 9999` <> I modified Line no. 29 as below (removed " around $text) and the test case execution proceeds further with "yes: Broken Pipe" error. With the same modification, I don't see this error on my host machine though. Line no. 29: text=`yes $text | head -c 9999` /usr/lib/busybox/ptest # text="The quick brown fox jumps over the lazy dog" /usr/lib/busybox/ptest # text=`yes $text | head -c 9999` yes: Broken pipe My host machine uses Bash as my default shell where as my target uses busybox sh as my default shell. Does this make any difference? Any pointers on this will be appreciated. Thanks, Ravi ------=_NextPart_000_01F7_01D7CB4E.CD0E40F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

    We are executing busybox = pTests and we see that the test case execution stops at md5sum test = case.

We analyzed and see that the = execution gets stuck here at Line no 29.

 

Below are the relevant code = lines:

Line no. 28: = text=3D"The quick brown fox jumps over the lazy = dog"

Line no. 29: = text=3D`yes "$text" | head -c 9999`

 

I executed = above two lines on my host machine and the I get the shell prompt back = but when executed on target machine, I’m not getting the shell = prompt, it gets stuck.

/usr/lib/busybox/ptest # text=3D"The quick = brown fox jumps over the lazy dog"

/usr/lib/busybox/ptest # text=3D`yes = “$text” | head -c 9999`

<<get stuck here indefinitely and I don’t = get the shell prompt>>

 

I modified = Line no. 29 as below (removed “ around $text) and the test case = execution proceeds further with “yes: Broken Pipe” = error. With the same modification, I don’t see this error on my = host machine though.

Line no. 29: = text=3D`yes $text | head -c 9999`

 

/usr/lib/busybox/ptest # text=3D"The quick = brown fox jumps over the lazy dog"

/usr/lib/busybox/ptest # text=3D`yes $text | head = -c 9999`

yes: Broken = pipe

 

My host machine uses Bash as my default shell where = as my target uses busybox sh as my default shell. Does this make any = difference?

Any pointers on this = will be appreciated.

 

Thanks,

Ravi

 

------=_NextPart_000_01F7_01D7CB4E.CD0E40F0--