Received: from eggs.gnu.org ([2001:4830:134:3::10]:44820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBemh-0004zb-8g for qemu-devel@nongnu.org; Tue, 29 Nov 2016 04:33:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBeme-00049r-Dl for qemu-devel@nongnu.org; Tue, 29 Nov 2016 04:33:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43048) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBeme-00049Q-8R for qemu-devel@nongnu.org; Tue, 29 Nov 2016 04:33:04 -0500 From: Markus Armbruster References: <148040765235.139.8374355078810986308@5b492b8a941d> Date: Tue, 29 Nov 2016 10:33:00 +0100 In-Reply-To: <148040765235.139.8374355078810986308@5b492b8a941d> (no-reply@patchew.org's message of "Tue, 29 Nov 2016 00:20:53 -0800 (PST)") Message-ID: <87a8ciwrzn.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 for-2.8 0/4] Fix MacOS runtime failure of qobject_from_jsonf() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: no-reply@patchew.org Cc: eblake@redhat.com, qemu-devel@nongnu.org, programmingkidx@gmail.com, pbonzini@redhat.com, famz@redhat.com no-reply@patchew.org writes: > Hi, > > Your series failed automatic build test. Please find the testing commands and > their output below. If you have docker installed, you can probably reproduce it > locally. > > Subject: [Qemu-devel] [PATCH v2 for-2.8 0/4] Fix MacOS runtime failure of qobject_from_jsonf() > Type: series > Message-id: 1479922617-4400-1-git-send-email-eblake@redhat.com [...] > /tmp/qemu-test/src/qobject/json-parser.c: In function 'parse_escape': > /tmp/qemu-test/src/qobject/json-parser.c:480:1: error: control reaches end of non-void function [-Werror=return-type] > } > ^ This is due to PATCH RFC 4/4. In addition to dropping unused conversion specifiers, it silently converts a failure into an assertion: parse_escape() running into an invalid conversion specifer. Before, it fails without storing an error in ctxt->err. Its caller parse_value() also fails. Its callers then store an error on failure, with parse_error(). Except for json_parser_parse_err(). When json_parser_parse_err() can fail with or without setting an error. Awkward, but its callers cope with that. After, parse_escape() executes assert(false). Patchew's compiler appears to be too stupid to see that control cannot reach the end of the function then. This is surprising. I haven't checked whether more failures without error remain. If no, callers should be simplified. In any case, the change of how we handle invalid conversion specifiers should be its own patch. [...]