Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD94FC433EF for ; Mon, 7 Feb 2022 12:06:28 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.88,349,1635199200"; d="scan'208";a="20063376" Received: from prod-listesu18.inria.fr (HELO sympa.inria.fr) ([128.93.162.160]) by mail2-relais-roc.national.inria.fr with ESMTP; 07 Feb 2022 13:06:27 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id 89BA2E0384; Mon, 7 Feb 2022 13:06:26 +0100 (CET) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 027E4E037F for ; Mon, 7 Feb 2022 13:06:24 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.88,349,1635199200"; d="scan'208";a="5214074" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 13:06:25 +0100 Date: Mon, 7 Feb 2022 13:06:24 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Denis Efremov cc: cocci@inria.fr In-Reply-To: Message-ID: References: <412f6138-c5de-38f4-553b-6b34a0650005@linux.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [cocci] spatch 1.1.1 segmentation fault report Reply-To: Julia Lawall X-Loop: cocci@inria.fr X-Sequence: 134 Errors-To: cocci-owner@inria.fr Precedence: list Precedence: bulk Sender: cocci-request@inria.fr X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: > I removed the @p variable and reduced the cocci file to > @err@ > @@ > > amd_energy_is_visible(...) > { > * return 0444; > } > > @script:python@ > @@ > > and it still crashes. > $ mkdir empty_dir > $ spatch segfault.cocci empty_dir > init_defs_builtins: /home/work/.opam/4.11.2/lib/coccinelle/standard.h > no inferred keywords > [2] 240209 segmentation fault (core dumped) spatch segfault.cocci empty_dir > > $ touch empty_dir/file > $ spatch segfault.cocci empty_dir > init_defs_builtins: /home/work/.opam/4.11.2/lib/coccinelle/standard.h > no inferred keywords > [2] 240269 segmentation fault (core dumped) spatch segfault.cocci empty_dir > > $ echo "void amd_energy_is_visible(void) { return 0444; }" > empty_dir/file > $ spatch segfault.cocci empty_dir > init_defs_builtins: /home/work/.opam/4.11.2/lib/coccinelle/standard.h > no inferred keywords > [2] 240363 segmentation fault (core dumped) spatch segfault.cocci empty_dir A strange thing is that you have the message "no inferred keywords" and in another mssage you had a message about 0 files. But I have nothing. julia