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 X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BEAEC433E1 for ; Sun, 14 Jun 2020 08:41:30 +0000 (UTC) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9E38020714 for ; Sun, 14 Jun 2020 08:41:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BgrX3dNm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E38020714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=cocci-bounces@systeme.lip6.fr Received: from systeme.lip6.fr (systeme.lip6.fr [132.227.104.7]) by isis.lip6.fr (8.15.2/8.15.2) with ESMTP id 05E8fQ4V009696; Sun, 14 Jun 2020 10:41:26 +0200 (CEST) Received: from systeme.lip6.fr (systeme.lip6.fr [127.0.0.1]) by systeme.lip6.fr (Postfix) with ESMTP id E6649782A; Sun, 14 Jun 2020 10:41:25 +0200 (CEST) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by systeme.lip6.fr (Postfix) with ESMTPS id D3A6944A7 for ; Sun, 14 Jun 2020 10:11:52 +0200 (CEST) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20:0:0:0:442]) by isis.lip6.fr (8.15.2/8.15.2) with ESMTPS id 05E8BppU012705 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=OK) for ; Sun, 14 Jun 2020 10:11:51 +0200 (CEST) Received: by mail-wr1-x442.google.com with SMTP id q11so14003385wrp.3 for ; Sun, 14 Jun 2020 01:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=0SQHF8kAqsXrIZGaJsrweflz1HF4kJ3RR9UUsIlRTPc=; b=BgrX3dNm/izRvexlJFY9AcaGuSB+n0ZfbC2Lt5Fjm/ozWtCHGlM6owbiAdKGft4xGH 2XImsbQrZ5gmFu/Crzb1XjCvV1Mp09qsH+IP8mY54sXqWx3kfejYA+ZMHXju+tL0tGGu eRXn9swaHhedOBaxyVWLARCDjT4EXgG1lKI1Sp3pQsLOPNWUYG92yY+Qe/wvBcNeBNdf gYIht/lsHhm0Vw+kNttesOTjZhP6ZV6xFj2Uq9SCC1o/yoTvGr1v3WRfWrF5yvsuBO4z Palz7LO88mmM0VmPL8WGsiIIsY06WWIitvOsWMVqQ4uXN3Uno/2gTqvx+G9+RDZSVQ/m JhbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=0SQHF8kAqsXrIZGaJsrweflz1HF4kJ3RR9UUsIlRTPc=; b=q8DgWwZqCUyRDEpre5FBS0aaRi6EEBijoCvWCs3LSaI3Djq5fw/SDn0v93/19vVekG bA2kYOTBR7QT3D5nZERgKFAKWO56EDcA0vsH0U/8hhaxi7+/4qeeZUdNX5PwijEF7ni6 T27qwlKo0JGeRu9Y0k+/RGtijyK2KvHxlwZMVAbheACU+M3kHb2Kd2MT9cNdQuDP75EA EeUIaSJZj7ufrwApJokC6BU0rHhOILvEurWDxGUe/3FOp+OjzcwZtxj2k6a7Q0fbwnVs FIVELGN8MDNd07DCf+hvK7a4P5/2mYf6styaB1tWWBaxztszznSJjWu6RJMfYytIqq6O HYDQ== X-Gm-Message-State: AOAM531FPoPrfZ2abqcmdkR7DCaoKU1JMmo/wLAmsJ8gu01CUBHphIq/ DEr4Z81vTBV/mZUiNRGMeeQ= X-Google-Smtp-Source: ABdhPJxrBx7qZ6CM7KjqWY7MR1SgYcQqtQlvyCl5gchdN46pEVFKwbt4KTrJtvcVEfCLqpg1pET6Wg== X-Received: by 2002:adf:9d8f:: with SMTP id p15mr23393138wre.421.1592122311360; Sun, 14 Jun 2020 01:11:51 -0700 (PDT) Received: from homer.simpson.net ([185.221.151.23]) by smtp.googlemail.com with ESMTPSA id f9sm18064183wre.65.2020.06.14.01.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 01:11:50 -0700 (PDT) Message-ID: <1592122310.2129.14.camel@gmail.com> From: Mike Galbraith To: Julia Lawall Date: Sun, 14 Jun 2020 10:11:50 +0200 In-Reply-To: <1592121650.2129.11.camel@gmail.com> References: <1592115803.27290.33.camel@gmail.com> <1592121432.2129.9.camel@gmail.com> <1592121650.2129.11.camel@gmail.com> X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 X-Greylist: Sender IP whitelisted, Sender e-mail whitelisted, not delayed by milter-greylist-4.4.3 (isis.lip6.fr [132.227.60.2]); Sun, 14 Jun 2020 10:41:26 +0200 (CEST) X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.4.3 (isis.lip6.fr [IPv6:2001:660:3302:283c:0:0:0:2]); Sun, 14 Jun 2020 10:11:51 +0200 (CEST) X-Scanned-By: MIMEDefang 2.78 on 132.227.60.2 X-Scanned-By: MIMEDefang 2.78 X-Mailman-Approved-At: Sun, 14 Jun 2020 10:41:23 +0200 Cc: Randy Dunlap , cocci@systeme.lip6.fr Subject: Re: [Cocci] coccinelle issues X-BeenThere: cocci@systeme.lip6.fr X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: cocci-bounces@systeme.lip6.fr Errors-To: cocci-bounces@systeme.lip6.fr On Sun, 2020-06-14 at 10:00 +0200, Mike Galbraith wrote: > On Sun, 2020-06-14 at 09:57 +0200, Mike Galbraith wrote: > > On Sun, 2020-06-14 at 09:42 +0200, Julia Lawall wrote: > > > > > > On Sun, 14 Jun 2020, Mike Galbraith wrote: > > > > > > > > > > I didn't download, rather pulled/built. I didn't have the same issue > > > > you did, but make coccicheck was a bust here until I backed down to > > > > version 1.0.6. Neither HEAD, 1.0.8 or 1.0.7 ran, and following its > > > > MODE=blah suggestion helped not at all. > > > > > > Did you get a segmentation fault? > > > > Nope. Turned out to be a dinky install gotcha. Creating a symlink.. > > > > lrwxrwxrwx 1 root root 27 Jun 14 09:40 /usr/local/coccinelle/lib -> /usr/local/coccinelle/lib64 > > > > ..seems to have fixed 1.0.8 all up. The very first time I installed, I > > had to create one directory (forget which) by hand as well. > > Oh well, not all fixed up, but it does run. > > ./fs/xfs/xfs_rmap_item.c:56:5-24: atomic_dec_and_test variation before object free at line 57. > ./kernel/nsproxy.c:253:11-30: atomic_dec_and_test variation before object free at line 254. > ./net/unix/scm.c:80:6-30: atomic_dec_and_test variation before object free at line 81. > coccicheck failed > make: *** [Makefile:1822: coccicheck] Error 2 And doing the DEBUG_FILE="all.err" thing says... /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/alloc/alloc_cast.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arc> 12712 files match /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include > 42 files match /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/alloc/zalloc-simple.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./> 2003 files match /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/atomic_as_refcounter.cocci --include-headers --very-quiet --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./> 502 files match /usr/local/bin/spatch -D report --no-show-diff --very-quiet --cocci-file ./scripts/coccinelle/api/check_bq27xxx_data.cocci --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x> File "/tmp/ocaml_cocci_c0ec37.ml", line 1: Error: The files /usr/local/coccinelle/bin/../lib/coccinelle/ocaml/coccilib.cmi and /usr/local/coccinelle/bin/../lib/coccinelle/ocaml/ast_c.cmi make inconsistent assumptions over interface Ast_c Fatal error: exception Coccinelle_modules.Yes_prepare_ocamlcocci.CompileFailure("/tmp/ocaml_cocci_c0ec37.ml") ~ _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci