Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754643AbdFWR3M (ORCPT ); Fri, 23 Jun 2017 13:29:12 -0400 Received: from mail-sn1nam01on0087.outbound.protection.outlook.com ([104.47.32.87]:39590 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754473AbdFWR3J (ORCPT ); Fri, 23 Jun 2017 13:29:09 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Message-ID: <1498238944.32344.34.camel@nxp.com> Subject: Re: [PATCH 2/2] scripts/gdb: lx-dmesg: Use errors=replace for decoding From: Leonard Crestez To: Jan Kiszka CC: Kieran Bingham , Date: Fri, 23 Jun 2017 20:29:04 +0300 In-Reply-To: References: <00d6621945ececb6c9fb360aef0efd5747439a38.1498227531.git.leonard.crestez@nxp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131427125474993192;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39380400002)(39450400003)(39410400002)(39850400002)(39400400002)(39840400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(377424004)(24454002)(9170700003)(36756003)(5820100001)(305945005)(33646002)(104016004)(103116003)(575784001)(86362001)(4326008)(50466002)(5660300001)(105606002)(106466001)(23676002)(47776003)(54906002)(6306002)(356003)(189998001)(229853002)(77096006)(53546010)(6916009)(2950100002)(2870700001)(38730400002)(6246003)(50226002)(110136004)(8676002)(2906002)(85426001)(53936002)(81166006)(966005)(50986999)(498600001)(76176999)(8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aDd3TkZYZXkvSW5GSUc5ZXhwQ1V1?= =?utf-8?B?UFV0T2llRGxSMS8xYTJIY3pMYmJjL1BxVGVOZXVGVzBMczhHOUU1NUFJb3ZE?= =?utf-8?B?dFU2d0lXM0VJendXWVppbC9LUEN1c2l0ZFFPUW4zUzBNeThrWjRPazBaTy9T?= =?utf-8?B?ajl5bmVLeDRzVlByREJLOGJGUDd0ZTUxQnV1UEtEaVF4WWcwRmxNRzhhOG10?= =?utf-8?B?NXFZczI2bzk3TDllV29raXBOdEZSY3h4ZDE0cW9JTHVoQXdkaDhjc20wQ1Jm?= =?utf-8?B?Um94bEdIdEJCV2hnVkRSL2lGV0g0UGF4ZW9vbi9HKzRXNktmRmNqRzFNbnBM?= =?utf-8?B?MlFCUzROTU9qcGVDRDk5emxRbzJheE54YmcwUEhLd0UvcW9VcmhvcHYxeWVp?= =?utf-8?B?c1QwNEl5elpQZGhVQjZnbVdDTlJiVlVrKzhsRGovNXZWQndjRzFuNTFLWlln?= =?utf-8?B?TkNEY2JEWkFvOXArZ3BaK2I0c25neElrRldYWEIvRjdnSmFNR1ltTzM1R1Fq?= =?utf-8?B?SnF4bHN1eVEzUnZ1TlJ3emVrTWFCQ0N3RVdGUTNYdjhhYlZ4VzNhU3pUQWMx?= =?utf-8?B?MmcxNG9NVU5rR3c9PQ==?= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da04bb2d-c4a2-452d-42c7-08d4ba5d5a3e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500067)(300135000095)(300000501067)(300135300095)(22001)(300000502067)(300135100095)(300000503067)(300135400095)(201703131430075)(201703131517081)(300000504067)(300135200095)(300000505067)(300135600095)(300000506055)(300135500095);SRVR:CY1PR0301MB0907; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB0907;3:ghJ9JUr2eNj3x5bsNr28nl02s3G9mPsZNp9nYPzXmTQsxU2ARfpfqDlU2MXFwrmx4iUlcGXB+cuqBHbnw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Kt1MmW4PaUFotgu4AleV/MDr44grAOUxoMcqlDbUlj+yO1Ia0Ct3i+GSBTqsSaBac2oM27TxZxK1/c3B6776xZ9oobfKEieFsGJcTdRU5N41tvHUFLDBho6hrUo546OC0cqnnpofT3spRo5gJP4Bo6ZW3uKxavDUY4J5x7o+xUtvQynBNPo3+Z4wM1UrHTu8ClLrrNBEwB6uXNP5DGtFLBa1DK1PyIPTkXYbE0rwAb5NisWKX2tEmDs3U+LH0tiohNib+z0OiBI58HuSbvZCn6w7OCeunuqLuqudCcicIZ8jfbS8o4WSrGVR6JgUhhkxmgURm2UxSSlASCYrA2oflyZ6Cv7Zr/kQLz1cO9obTcLoHjy+1Y9h0qjGw4en3GeAa8iqUoDgJA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123565025)(20161123556025)(20161123563025)(20161123559100)(20161123561025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0301MB0907;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0301MB0907; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAzMDFNQjA5MDc7NDppYmRuK1Y5SWlBZEVCTEY2bUhTT1JYc3dQ?= =?utf-8?B?dW1CQldGcjhUNnRCT2xpQStFYTcwODZkVkhNQVdwTzkybFVUd0dRS2JxT1BJ?= =?utf-8?B?bzlUVG1naEpXL1NzOWNzMzYvRDlQVTh3NjJRTUY5WDZ5QVZKejFa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dcOzgjlTf0w7bA3Gp/KVba3PIaZrHjfuA3byH7zmloTlo= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2017 17:29:07.3121 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0907 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2793 Lines: 67 On Fri, 2017-06-23 at 18:02 +0200, Jan Kiszka wrote: > On 2017-06-23 16:20, Leonard Crestez wrote: > > > > It is never desirable lx-dmesg to fail on string decoding errors, > > not > > even if the log buffer is corrupt. > > > > Signed-off-by: Leonard Crestez > > --- > >  scripts/gdb/linux/dmesg.py | 4 ++-- > >  1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/scripts/gdb/linux/dmesg.py > > b/scripts/gdb/linux/dmesg.py > > index 6f8d2b2..d0cac58 100644 > > --- a/scripts/gdb/linux/dmesg.py > > +++ b/scripts/gdb/linux/dmesg.py > > @@ -52,13 +52,13 @@ class LxDmesg(gdb.Command): > >                  continue > >   > >              text_len = utils.read_u16(log_buf[pos + 10:pos + 12]) > > -            text = log_buf[pos + 16:pos + 16 + text_len].decode() > > +            text = log_buf[pos + 16:pos + 16 + > > text_len].decode(errors='replace') > pep8 should complain. > > > > >              time_stamp = utils.read_u64(log_buf[pos:pos + 8]) > >   > >              for line in text.splitlines(): > >                  gdb.write("[{time:12.6f}] {line}\n".format( > >                      time=time_stamp / 1000000000.0, > > -                    line=line)) > > +                    line=line.encode(errors='replace'))) > You only talk about "decoding" in the commit log, but here you encode > back. An short explanation why this is also needed would be nice. > Apparently .decode(errors='replace') will return an unicode string where invalid characters are replaced with U+FFFD REPLACEMENT CHARACTER. Attempting to encode that back to the default ascii encoding of python2 throws an error, using errors='replace' results in a '?' instead. See: https://docs.python.org/2/library/codecs.html#codec-base-classes In python3 the default encoding seems to be utf8 and errors='replace' is not obviously required on the encode step. I don't actually have a gdb version compiled with python3 support and don't know if gdb.write always properly handles unicode in all cases. Perhaps it might be better to also explicitly specify 'utf8' as the encoding? Linux does occasionally print unicode, for example the jffs2 driver shows an copyright symbol at startup. Using errors='replace' everywhere on python2 results in this output from lx-dmesg: [    0.367578] jffs2: version 2.2. (NAND) ?? 2001-2006 Red Hat, Inc. In theory if we use decode('utf8', errors='replace') and encode('utf8') then errors='replace' would not be required on the encode side. Honestly for debug code it might be preferable to do the safest possible thing and go 'ascii' everywhere. -- Regards, Leonard