From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755899AbdKOIhU (ORCPT ); Wed, 15 Nov 2017 03:37:20 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:30344 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751617AbdKOIhM (ORCPT ); Wed, 15 Nov 2017 03:37:12 -0500 X-IronPort-AV: E=Sophos;i="5.44,398,1505772000"; d="scan'208";a="244676536" Date: Wed, 15 Nov 2017 09:37:04 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Masahiro Yamada cc: cocci@systeme.lip6.fr, Nicolas Palix , Gilles Muller , Linux Kernel Mailing List , Linux Kbuild mailing list Subject: Re: Coccinelle: badzero.cocci failure In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-120972166-1510735025=:3647" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-120972166-1510735025=:3647 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT > > Can you try the following semantic patch (called eg nothing.cocci): > > > > @script:ocaml@ > > @@ > > > > () > > > > on any .c file, ie > > > > spatch --sp-file nothing.cocci test.c > > > > > Thanks for the simple test semantic patch! > > > > I noticed 1.0.4 is OK, > but 1.0.5 is NG > > I guess this is a problem on Coccinelle side. > > > I git-bisect:ed and the first bad commit bad was: > > > commit cd539cd12ad0674d5a8f4c33f6c21ae00aec8e57 > Author: Sébastien Hinderer > Date: Tue Mar 15 12:06:00 2016 +0100 > > Get rid of the --enable-release configure option. > > > > > $ spatch --version > spatch byte-code version 1.0.4-00212-g8238ba5 compiled with OCaml version 4.02.3 > Flags passed to the configure script: --prefix=/home/masahiro > Python scripting support: yes > Syntax of regular expresssions: PCRE > $ spatch --sp-file nothing.cocci kernel/kmod.c > init_defs_builtins: /home/masahiro/lib/coccinelle/standard.h > Using native version of ocamlc/ocamlopt/ocamldep > ocamlc.opt -c /tmp/ocaml_cocci_23600a.cmo -g -I /usr/lib/ocaml -I > /home/masahiro/lib/coccinelle/ocaml /tmp/ocaml_cocci_23600a.ml > Compilation OK! > Loading ML code of the SP... > HANDLING: kernel/kmod.c > $ spatch --version > spatch native version 1.0.4-00213-gcd539cd compiled with OCaml version 4.02.3 > Flags passed to the configure script: --prefix=/home/masahiro > Python scripting support: yes > Syntax of regular expresssions: PCRE > $ spatch --sp-file nothing.cocci kernel/kmod.c > init_defs_builtins: /home/masahiro/lib/coccinelle/standard.h > Using native version of ocamlc/ocamlopt/ocamldep > ocamlopt.opt -shared -o /tmp/ocaml_cocci_fdd282.cmxs -g -I > /usr/lib/ocaml -I /home/masahiro/lib/coccinelle/ocaml > /tmp/ocaml_cocci_fdd282.ml > Compilation OK! > Loading ML code of the SP... > implementation mismatch on Iteration > Fatal error: exception > Yes_prepare_ocamlcocci.LinkFailure("/tmp/ocaml_cocci_fdd282.cmxs") Thanks for the feedback. I will try to find out more about this. julia --8323329-120972166-1510735025=:3647--