pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/59316: pkg_add segfaults trying to install a certain binary package on Linux Debian 12 / x86-64
>Number: 59316
>Category: pkg
>Synopsis: pkg_add segfaults trying to install a certain binary package on Linux Debian 12 / x86-64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 17 21:05:00 +0000 2025
>Originator: Dr. Thomas Orgis
>Release: 2025Q1
>Organization:
University of Hamburg
>Environment:
Linux hummel2-front2 6.6.86-rrz6 #1 SMP Wed Apr 9 11:12:09 CEST 2025 x86_64 GNU/Linux
>Description:
I accidentally built the wrong samba package, net/samba (3) instead of net/samba4, which I intended to fix/test.
The package file got built, but pkg_add segfaults trying to install it. Seems like some malformed printf:
$ gdb .prefix/sbin/pkg_add
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from .prefix/sbin/pkg_add...
(gdb) run -K /sw/env/gcc-13.2.0_openmpi-4.1.6/pkgsrc/2025Q1-devel/pkgdb samba-3.6.25nb44.tgz
Starting program: /sw/env/gcc-13.2.0_openmpi-4.1.6/pkgsrc/2025Q1-devel/sbin/pkg_add -K /sw/env/gcc-13.2.0_openmpi-4.1.6/pkgsrc/2025Q1-devel/pkgdb samba-3.6.25nb44.tgz
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pkg_add:
Program received signal SIGSEGV, Segmentation fault.
__strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex.S:79
79 ../sysdeps/x86_64/multiarch/strlen-evex.S: No such file or directory.
(gdb) where
#0 __strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex.S:79
#1 0x0000155555391258 in __vfprintf_internal (s=s@entry=0x7fffffffb9b0, format=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.", ap=0x7fffffffdbc0,
mode_flags=0) at ./stdio-common/vfprintf-process-arg.c:397
#2 0x00001555553918ed in buffered_vfprintf (s=s@entry=0x155555506680 <_IO_2_1_stderr_>,
format=format@entry=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.", args=<optimized out>, mode_flags=mode_flags@entry=0)
at ./stdio-common/vfprintf-internal.c:1748
#3 0x0000155555390953 in __vfprintf_internal (s=s@entry=0x155555506680 <_IO_2_1_stderr_>, format=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.",
ap=<optimized out>, mode_flags=0) at ./stdio-common/vfprintf-internal.c:740
#4 0x00001555553a76e8 in locked_vfxprintf (fp=fp@entry=0x155555506680 <_IO_2_1_stderr_>, fmt=<optimized out>, ap=0x7fffffffdbc0, mode_flags=0) at ./stdio-common/fxprintf.c:30
#5 0x00001555553a77b1 in __vfxprintf (fp=0x155555506680 <_IO_2_1_stderr_>, fmt=fmt@entry=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.",
ap=ap@entry=0x7fffffffdbc0, mode_flags=mode_flags@entry=0) at ./stdio-common/fxprintf.c:71
#6 0x00001555554365ed in __vwarnx_internal (format=format@entry=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.", ap=ap@entry=0x7fffffffdbc0,
mode_flags=mode_flags@entry=0) at ./misc/err.c:47
#7 0x000015555543682b in __GI_vwarnx (ap=0x7fffffffdbc0, format=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.") at ./misc/err.c:84
#8 __GI_warnx (format=format@entry=0x483950 "%s: Installed package `%s' conflicts with `%s' when trying to install `%s'.") at ./misc/err.c:98
#9 0x00000000004070b2 in check_explicit_conflict (pkg=0x4b3770) at perform.c:1081
#10 pkg_do (pkgpath=<optimized out>, mark_automatic=0, top_level=top_level@entry=1) at perform.c:1583
#11 0x0000000000407afc in pkg_perform (pkgs=pkgs@entry=0x7fffffffde10) at perform.c:1713
#12 0x0000000000404ee9 in main (argc=<optimized out>, argv=<optimized out>) at main.c:204
I am not sure which conflict it wants to report. I tried to build samba4 before, so maybe some versioned deps of that that conflict with deps of samba (3) ? no doesn't make sense. I hope the backtrace above is enough for a pkgsrc developer to dry-debug and fix this.
These are all currently installed packages while trying to pkg_add samba-3.6.25nb44.tgz:
asciidoc-10.2.1nb3 gettext-tools-0.22.5 libffi-3.4.7 mozilla-rootcerts-1.1.20241118 p5-Net-SSLeay-1.94nb1 py312-pyparsing-3.2.1nb1
autoconf-2.72 giflib-5.2.2 libgcrypt-1.11.0nb2 mpfr-4.2.1 p5-Parse-Yapp-1.21nb7 py312-pyproject_hooks-1.2.0nb1
automake-1.16.5nb3 git-2.48.1 libgetopt-1.4.6 nasm-2.16.01 p5-Socket6-0.29nb6 py312-setuptools-75.8.2
bison-3.8.2nb1 git-base-2.48.1 libgpg-error-1.51 nawk-20230909 p5-TimeDate-2.33nb4 py312-setuptools_scm-8.2.0
bmake-20240909 git-contrib-2.48.1 libidn-1.42 nbpatch-20151107 p5-gettext-1.07nb9 py312-trove-classifiers-2025.3.13.13
bootstrap-mk-files-20240422 git-docs-2.48.1 libidn2-2.3.7 ncurses-6.5 pango-1.56.1 py312-typing-extensions-4.12.2nb1
brotli-1.1.0 git-perlscripts-2.48.1 libimagequant-4.3.4 nettle-3.10.1 pax-20210219 py312-xcbgen-1.17.0
bsdtar-3.7.7nb1 glib2-2.82.5 libjpeg-turbo-3.1.0 nghttp2-1.65.0 pcre2-10.45 python27-2.7.18nb19
bzip2-1.0.8 glib2-tools-2.82.5 libnbcompat-20250303 ninja-build-1.12.1nb1 perl-5.40.1nb1 python312-3.12.9
cairo-1.18.2 gmp-6.3.0 libslang-2.3.3 openldap-client-2.6.9 pixman-0.44.2 raqm-0.10.2
cargo-c-0.9.32nb1 gnuplot-6.0.2nb1 libssh2-1.11.1 openssl-3.4.1 pkg_install-20250219 re2c-4.1
checkperms-1.12 gnutls-3.8.9 libtasn1-4.20.0 p11-kit-0.25.5 pkg_install-info-4.5nb3 readline-8.2nb2
cmake-3.31.6 gobject-introspection-1.82.0 libtool-2.4.7 p5-Authen-SASL-2.1700nb1 pkgconf-2.4.3 rhash-1.4.5
cmocka-1.1.7 gperf-3.1 libtool-base-2.4.7nb1 p5-Capture-Tiny-0.50 pkgdb.byfile.db rust-1.83.0
curl-8.12.1 graphite2-1.3.14nb3 libtool-fortran-2.4.7nb1 p5-DBD-SQLite-1.76nb4 pkgdiff-1.12 sqlite3-3.48.0
cwrappers-20220403 harfbuzz-10.4.0 libtool-info-2.4.7 p5-DBI-1.647 png-1.6.47 talloc-2.4.3
db4-4.8.30nb1 help2man-1.49.3 libunistring-1.2 p5-Digest-HMAC-1.05nb1 popt-1.19 tdb-1.4.13
digest-20220214 itstool-2.0.7nb5 libunwind-18.1.8 p5-Email-Valid-1.204nb1 py312-build-1.2.2.post1nb1 tevent-0.16.2
docbook-xml-4.5 jansson-2.14 libuuid-2.40.2 p5-Error-0.17030 py312-calver-2022.6.26 tiff-4.7.0
docbook-xsl-1.79.2nb7 jbigkit-2.1nb1 libuv-1.50.0 p5-GSSAPI-0.28nb16 py312-dns-2.7.0 tradcpp-0.5.3
expat-2.6.3 libICE-1.1.2 libwebp-1.5.0 p5-IO-Socket-INET6-2.73nb3 py312-flit_core-3.11.0 xcb-proto-1.17.0nb4
flex-2.6.4 libSM-1.2.6 libxcb-1.17.0 p5-IO-Socket-SSL-2.089nb1 py312-hatchling-1.27.0 xmlcatmgr-2.2nb1
fontconfig-2.15.0 libX11-1.8.12 libxml2-2.12.10 p5-JSON-4.10nb2 py312-idna-3.10nb1 xmlto-0.0.28nb14
freetype2-2.13.3 libXau-1.0.12 libxslt-1.1.42nb3 p5-MailTools-2.22 py312-installer-0.7.0nb3 xorgproto-2024.1
fribidi-1.0.16 libXdmcp-1.1.5 llvm-18.1.8nb4 p5-Mozilla-CA-20250202 py312-iso8601-2.1.0nb1 xtrans-1.6.0
gd-2.3.3nb14 libXext-1.3.6 lmdb-0.9.33 p5-Net-3.15nb2 py312-libxml2-2.12.10 xz-5.6.4
gdb-10.1nb6 libXft-2.3.8nb1 lz4-1.10.0 p5-Net-DNS-1.50 py312-markdown-3.7nb1 zlib-1.3.1
gdbm-1.24 libXrender-0.9.12 lzo-2.10 p5-Net-Domain-TLD-1.75nb8 py312-packaging-24.2nb1 zstd-1.5.7
gdbm_compat-1.24 libXt-1.3.1 m4-1.4.19nb1 p5-Net-IP-1.26nb12 py312-pathspec-0.12.1nb1
getopt-1.1.6 libarchive-3.7.7nb1 meson-1.7.0 p5-Net-LibIDN-0.12nb16 py312-pluggy-1.5.0
gettext-lib-0.22.5 libcerf-2.4 mktools-20250213 p5-Net-SMTP-SSL-1.04nb8 py312-poetry-core-2.1.1
PS: Trying to debug this, I noticed that pkgsrc has ancient gdb that does not support the libraries on a Debian 12 stable system. We got gdb 10.1 there, while 16.2 is current. I tried an update of the package, which does build on a separate box, but produces weird libtool errors on my main system where I use my own toolchain between Debian and pkgsrc. Some cwrapper interaction, maybe:-/ The above output is from gdb-13.1, the Debian package.
>How-To-Repeat:
Probably try to build and install a certain set of packages. Then try to build and install net/samba. Not sure.
>Fix:
Home |
Main Index |
Thread Index |
Old Index