From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from msmail.insydesw.com.tw (ms.insydesw.com [211.75.113.220]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D1B2281C95 for ; Thu, 1 Dec 2016 23:44:37 -0800 (PST) Received: from msmail.insydesw.com.tw ([fe80::74f7:f173:f4aa:9a05]) by msmail.insydesw.com.tw ([fe80::74f7:f173:f4aa:9a05%11]) with mapi id 14.01.0438.000; Fri, 2 Dec 2016 15:44:35 +0800 From: Tim Lewis To: Tim Lewis , "edk2-devel@lists.01.org" Thread-Topic: [shell] Pipe causes pool failure in Shell.c Thread-Index: AdJMb+c9NhfY6jUuS3GDj+qFTwT7ew== Date: Fri, 2 Dec 2016 07:44:34 +0000 Message-ID: <7236196A5DF6C040855A6D96F556A53F410D2D@msmail.insydesw.com.tw> Accept-Language: en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.111] MIME-Version: 1.0 Subject: [shell] Pipe causes pool failure in Shell.c X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 07:44:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable After looking further, it appears that the FreePool() call on line 1756 is = unnecessary, and just causes a breakpoint. Removing it allows the functionality to work correctly. // FreePool (Split->SplitStdIn); Tim -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Tim = Lewis Sent: Thursday, December 01, 2016 5:48 PM To: edk2-devel@lists.01.org Subject: [edk2] Pipe causes pool failure in Shell.c Using the latest Shell build, try: ls -sfo | parse FileInfo 2 This ends up with a breakpoint when FreePool is called on Shell.c, line 175= 6. I'm still debugging, but I wondered if anyone else has seen this? Also: ls -sfo > tmp parse FileInfo 2 < tmp prints nothing, but parse tmp FileInfo 2 works fine. Tim _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel