[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1023653: marked as done (coccinelle: Picks up wrong Python)



Your message dated Thu, 10 Nov 2022 21:49:28 +0000
with message-id <E1otFQO-008FnS-UJ@fasolo.debian.org>
and subject line Bug#1023653: fixed in coccinelle 1.1.1.deb-2
has caused the Debian Bug report #1023653,
regarding coccinelle: Picks up wrong Python
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1023653: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023653
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: coccinelle
Version: 1.1.1.deb-1+b2
Severity: normal
X-Debbugs-Cc: ukleinek@debian.org, nicolas.palix@univ-grenoble-alpes.fr, julia.lawall@inria.fr

Hello,

when I run

	/usr/bin/spatch -D report --no-show-diff --very-quiet --cocci-file scripts/coccinelle/api/kfree_mismatch.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 4 --chunksize 1

in the kernel source tree (which is also what

	make coccicheck COCCI=scripts/coccinelle/api/kfree_mismatch.cocci

does), I get:

	Cannot find Python library

When running that under strace I see it tries to execute "python":

	$ strace -f -e execve,openat /usr/bin/spatch -D report --no-show-diff --very-quiet --cocci-file scripts/coccinelle/api/kfree_mismatch.cocci --no-includes --include-headers --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi -I ./include/generated/uapi --include ./include/linux/compiler-version.h --include ./include/linux/kconfig.h --jobs 4 --chunksize 1
	execve("/usr/bin/spatch", ["/usr/bin/spatch", "-D", "report", "--no-show-diff", "--very-quiet", "--cocci-file", "scripts/coccinelle/api/kfree_mis"..., "--no-includes", "--include-headers", "--dir", ".", "-I", "./arch/x86/include", "-I", "./arch/x86/include/generated", "-I", "./include", "-I", "./arch/x86/include/uapi", "-I", "./arch/x86/include/generated/uap"..., "-I", "./include/uapi", "-I", "./include/generated/uapi", "--include", "./include/linux/compiler-version"..., "--include", "./include/linux/kconfig.h", "--jobs", "4", "--chunksize", ...], 0x7fffea5dc7a8 /* 49 vars */) = 0
	openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 3
	openat(AT_FDCWD, "scripts/coccinelle/api/kfree_mismatch.cocci", O_RDONLY|O_CLOEXEC) = 3
	openat(AT_FDCWD, ".cocciconfig", O_RDONLY|O_CLOEXEC) = 4
	openat(AT_FDCWD, "/usr/lib/coccinelle/standard.h", O_RDONLY|O_CLOEXEC) = 4
	openat(AT_FDCWD, "scripts/coccinelle/api/kfree_mismatch.cocci", O_RDONLY|O_CLOEXEC) = 4
	openat(AT_FDCWD, "scripts/coccinelle/api/kfree_mismatch.cocci", O_RDONLY|O_CLOEXEC) = 4
	openat(AT_FDCWD, "/usr/lib/coccinelle/standard.iso", O_RDONLY|O_CLOEXEC) = 4
	openat(AT_FDCWD, "/usr/lib/coccinelle/standard.iso", O_RDONLY|O_CLOEXEC) = 4
	strace: Process 122721 attached
->	[pid 122721] execve("/bin/sh", ["/bin/sh", "-c", "command -v \"python\""], 0x55c019d188b0 /* 50 vars */) = 0
	[pid 122721] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
	[pid 122721] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
	[pid 122721] +++ exited with 127 +++
	--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=122721, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
	strace: Process 122722 attached
	[pid 122722] execve("/bin/sh", ["/bin/sh", "-c", "ldconfig -p"], 0x55c019d188b0 /* 50 vars */) = 0
	[pid 122722] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
	[pid 122722] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
	[pid 122722] +++ exited with 127 +++
	--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=122722, si_uid=1000, si_status=127, si_utime=0, si_stime=0} ---
	Cannot find Python library
	+++ exited with 255 +++

When installing python-is-python3 the spatch command above start to do
something sensible. I'm not entirely sure but I think this is a problem
in the coccinelle binary and not the cocci patch. As coccinelle depends
on python3:any it should better try to call python3 explicitly.

Best regards
Uwe

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (700, 'testing-debug'), (700, 'stable-security'), (700, 'stable-debug'), (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'unstable-debug'), (500, 'oldstable-updates'), (500, 'oldstable-debug'), (500, 'oldoldstable'), (500, 'oldstable'), (499, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coccinelle depends on:
ii  dpkg                                           1.21.9+b1
ii  libc6                                          2.35-4
ii  libparmap-ocaml                                1.2.4-1
ii  libpcre3                                       2:8.39-14
ii  libstdcompat-ocaml [libstdcompat-ocaml-zkmm7]  18-1
ii  ocaml-base [ocaml-base-4.13.1]                 4.13.1-3
ii  ocaml-findlib                                  1.9.3-1
ii  python3                                        3.10.6-1

coccinelle recommends no packages.

Versions of packages coccinelle suggests:
pn  coccinelle-doc     <none>
pn  vim-addon-manager  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: coccinelle
Source-Version: 1.1.1.deb-2
Done: Ralf Treinen <treinen@debian.org>

We believe that the bug you reported is fixed in the latest version of
coccinelle, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1023653@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated coccinelle package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 10 Nov 2022 11:21:48 +0100
Source: coccinelle
Architecture: source
Version: 1.1.1.deb-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Closes: 1023653
Changes:
 coccinelle (1.1.1.deb-2) unstable; urgency=medium
 .
   * d/rules: force configuration for python3. Thanks to Uwe Kleine-König
     for the patch (closes: #1023653).
   * Standards-Version 4.6.1 (no change)
Checksums-Sha1:
 c1469c8e8482ca9ad077db3d80682589780cd84c 2507 coccinelle_1.1.1.deb-2.dsc
 7b0961588f97d61c8a993f66f607e79bfbae5aa0 12176 coccinelle_1.1.1.deb-2.debian.tar.xz
 fa232b2a3505070d28cafebdbd91de7e98c6d07a 7315 coccinelle_1.1.1.deb-2_source.buildinfo
Checksums-Sha256:
 4b21430b75a5e87da83d642ec181a72f288438c84465e39387f33d752e9513fe 2507 coccinelle_1.1.1.deb-2.dsc
 37b6e17d5b5317bad526f8690ac5472c09ce36c1bb224f518b77f53e38c02589 12176 coccinelle_1.1.1.deb-2.debian.tar.xz
 6c3a22e18971a95b1ec2947a404294d4199e611ad78afc66adf499259fbacd2e 7315 coccinelle_1.1.1.deb-2_source.buildinfo
Files:
 292791bb8f89d776814604e60fcf820a 2507 devel optional coccinelle_1.1.1.deb-2.dsc
 5efc5749b3016e85babc5857f5e6b8cc 12176 devel optional coccinelle_1.1.1.deb-2.debian.tar.xz
 06b0d4e4d249c0af028c7dc74fb35c4e 7315 devel optional coccinelle_1.1.1.deb-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEAgVIKeEtDyqOZI5idFxHZtTKzf8FAmNs3UsACgkQdFxHZtTK
zf+qWhAAlXq1b+r6pO22AJCbWtiFdir0wWVPfQQe1P2m3dcD3OPvm1ssh47tHH1K
gOaI228m1saY6e5JNfHku7KbcxMe3sLIn1qhtuS1sOoqt9bTHIy2aIOHjdho/zn/
GneX+GUPbmwvPtodfElmGAs4V1WwQ/uETjS+zbPBnLco4aS3tixmm1wSAdqeQw4l
UIkWvofvulfMxwG+L8GIZqgBcygdYIJn5If7vS3/VzAo+GB4SAbUj9F6SJ28Wjjw
/hYq4ltZyv1jKxqW2W30+lJSKbC3B0joY4Q8y4hm/SqAjJjw/tHBIxe/HzkyvgSV
N9I0e/ak2sUQGTutrvn9d3M+thlpMkeMXBiGhtantC+q2cdIUjsR8Nsdc6aajYRx
2AbyxaJ8UeLXgmtYBlQ/MYHvHfa/AnA3C6BPm2+rLgtaS2KgRtf4g7VnKnSL2vmA
780VtBfAIP+cnanSoGrUtlxvTxWqjxouiuLnvzBJfY8DTE9JTgvXLXRVUE2BPdOf
O5AK+fdGIzEiCnzUCOCO0hhOeCVvehCh/tJIEbDiyC9F6yNnv04Wid2QYKEPlmew
8KIq8anG1vMUo8sxyOJp0FVAdWJ9LCDj9Wdh1XvtT4bWvqrkovcN20/ZBCj2TJla
xW2Fb1VWu/N+0nl1s+uygbkKLINqr0gNSD6vmcDEtq9LB6vMeMU=
=Psb6
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: