Yes until pacman is updated
Hi, thanks for finding the problem @guinux !
Should I build pacman
from scratch then since I am on standard Arch?
Ok I close it
As per title.
When running upgrade
, pamac-daemon
core dumps.
No issue happens when using pacman
or pkcon
(PackageKit).
pamac update
works as intended
Updating via pamac does not work.
$ coredumpctl debug 3831
PID: 3831 (pamac-daemon)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Tue 2024-03-19 08:27:31 CET (1min 21s ago)
Command Line: /usr/bin/pamac-daemon
Executable: /usr/bin/pamac-daemon
Control Group: /system.slice/pamac-daemon.service
Unit: pamac-daemon.service
Slice: system.slice
Boot ID: cb2cc75e04c44c55a9fb8ba5282f33df
Machine ID: 80a4412da0344f419c61a790576c4aba
Hostname: archlinux-tug
Storage: /var/lib/systemd/coredump/core.pamac-daemon.0.cb2cc75e04c44c55a9fb8ba5282f33df.3831.1710833251000000.zst (present)
Size on Disk: 1.6M
Message: Process 3831 (pamac-daemon) of user 0 dumped core.
Stack trace of thread 10171:
#0 0x0000718ca65d7272 n/a (libalpm.so.14 + 0x16272)
#1 0x0000718ca65d2d8e alpm_db_update (libalpm.so.14 + 0x11d8e)
#2 0x00005bfa31fec3fc pamac_alpm_utils_update_dbs (pamac-daemon + 0x1f3fc)
#3 0x00005bfa31ff0315 pamac_alpm_utils_trans_refresh (pamac-daemon + 0x23315)
#4 0x00005bfa3200e3ae ___lambda84_ (pamac-daemon + 0x413ae)
#5 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#6 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#7 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3833:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6292162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
#3 0x0000718ca62921b2 n/a (libglib-2.0.so.0 + 0x581b2)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3832:
#0 0x0000718ca5fb388d syscall (libc.so.6 + 0x10688d)
#1 0x0000718ca62ed337 g_cond_wait (libglib-2.0.so.0 + 0xb3337)
#2 0x0000718ca625f1b4 n/a (libglib-2.0.so.0 + 0x251b4)
#3 0x0000718ca62c7ace n/a (libglib-2.0.so.0 + 0x8dace)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3831:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6294b97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
#3 0x00005bfa31fde0ec _vala_main (pamac-daemon + 0x110ec)
#4 0x0000718ca5ed2cd0 n/a (libc.so.6 + 0x25cd0)
#5 0x0000718ca5ed2d8a __libc_start_main (libc.so.6 + 0x25d8a)
#6 0x00005bfa31fde125 _start (pamac-daemon + 0x11125)
Stack trace of thread 10190:
#0 0x0000718ca5fb388d syscall (libc.so.6 + 0x10688d)
#1 0x0000718ca62edd13 g_cond_wait_until (libglib-2.0.so.0 + 0xb3d13)
#2 0x0000718ca625f185 n/a (libglib-2.0.so.0 + 0x25185)
#3 0x0000718ca62c857b n/a (libglib-2.0.so.0 + 0x8e57b)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 10188:
#0 0x0000718ca5fb388d syscall (libc.so.6 + 0x10688d)
#1 0x0000718ca62edd13 g_cond_wait_until (libglib-2.0.so.0 + 0xb3d13)
#2 0x0000718ca625f185 n/a (libglib-2.0.so.0 + 0x25185)
#3 0x0000718ca62c857b n/a (libglib-2.0.so.0 + 0x8e57b)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3835:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6294b97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
#3 0x0000718ca64fa19c n/a (libgio-2.0.so.0 + 0x11219c)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 10185:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6292162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
#3 0x0000718ca660afde n/a (libdconfsettings.so + 0x5fde)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
ELF object binary architecture: AMD x86-64
GNU gdb (GDB) 14.2
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-pc-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 /usr/bin/pamac-daemon...
warning: Can't open file /root/.cache/dconf/user during file-backed mapping note processing
[New LWP 10171]
[New LWP 3833]
[New LWP 3832]
[New LWP 3831]
[New LWP 10190]
[New LWP 10188]
[New LWP 3835]
[New LWP 10185]
Downloading separate debug info for /usr/lib/libalpm.so.14
Downloading separate debug info for /usr/lib/libsoup-3.0.so.0
Downloading separate debug info for /usr/lib/libpolkit-gobject-1.so.0
Downloading separate debug info for /usr/lib/libarchive.so.13
Downloading separate debug info for /usr/lib/libgpgme.so.11
Downloading separate debug info for /usr/lib/libsqlite3.so.0
Downloading separate debug info for /usr/lib/libpsl.so.5
Downloading separate debug info for /usr/lib/libbz2.so.1.0
Downloading separate debug info for /usr/lib/libassuan.so.0
--Type <RET> for more, q to quit, c to continue without paging--
Downloading separate debug info for /usr/lib/libcom_err.so.2
Downloading separate debug info for /usr/lib/libjson-glib-1.0.so.0
Downloading separate debug info for /usr/lib/libappstream.so.5
Downloading separate debug info for /usr/lib/libxmlb.so.2
Downloading separate debug info for /usr/lib/libxml2.so.2
Downloading separate debug info for /usr/lib/libyaml-0.so.2
Downloading separate debug info for /usr/lib/libstemmer.so.0
Downloading separate debug info for /usr/lib/libicuuc.so.74
Downloading separate debug info for /usr/lib/libicudata.so.74
Downloading separate debug info for /usr/lib/gio/modules/libgiognomeproxy.so
Downloading separate debug info for /usr/lib/gio/modules/libdconfsettings.so
Downloading separate debug info for /usr/lib/gio/modules/libgiolibproxy.so
Downloading separate debug info for /usr/lib/libnss_mymachines.so.2
Downloading separate debug info for /usr/lib/libnss_mdns_minimal.so.2
Downloading separate debug info for /usr/lib/libnss_resolve.so.2
Downloading separate debug info for /usr/lib/libnss_myhostname.so.2
Downloading separate debug info for /usr/lib/libp11-kit.so.0
Downloading separate debug info for /usr/lib/gio/modules/libgiognutls.so
Downloading separate debug info for /usr/lib/libgnutls.so.30
Downloading separate debug info for /usr/lib/libbrotlienc.so.1
Downloading separate debug info for /usr/lib/libtasn1.so.6
Downloading separate debug info for /usr/lib/libnettle.so.8
Downloading separate debug info for /usr/lib/libhogweed.so.6
Downloading separate debug info for /usr/lib/libgmp.so.10
Downloading separate debug info for /usr/lib/pkcs11/p11-kit-trust.so
Downloading separate debug info for system-supplied DSO at 0x7ffc07c39000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/pamac-daemon'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 _alpm_download (handle=0x718c9000abd0, payloads=<optimized out>, localpath=0x718c90015cb0 "/var/lib/pacman/sync/") at ../lib/libalpm/dload.c:1045
Downloading source file /usr/src/debug/pacman/pacman-6.1.0/build/../lib/libalpm/dload.c
1045 size_t sig_len = strlen(s->data) + strlen(payload->filepath) + 6;
[Current thread is 1 (Thread 0x718ca32006c0 (LWP 10171))]
(gdb) backtrace full
#0 _alpm_download (handle=0x718c9000abd0, payloads=<optimized out>, localpath=0x718c90015cb0 "/var/lib/pacman/sync/") at ../lib/libalpm/dload.c:1045
sig_fileurl = <optimized out>
sig_len = <optimized out>
retsig = <optimized out>
payload = 0x718c900131f0
s = 0x0
ret = 0
p = 0x718c900139b0
updated = 1
__func__ = {<optimized out> <repeats 15 times>}
#1 0x0000718ca65d2d8e in _alpm_download (localpath=0x718c90015cb0 "/var/lib/pacman/sync/", payloads=0x718c90012c10, handle=0x718c9000abd0) at ../lib/libalpm/dload.c:1002
__func__ = {<optimized out> <repeats 15 times>}
p = <optimized out>
updated = <optimized out>
payload = <optimized out>
s = <optimized out>
ret = <optimized out>
sig_fileurl = <optimized out>
sig_len = <optimized out>
retsig = <optimized out>
sig_fileurl = <optimized out>
sig_len = <optimized out>
retsig = <optimized out>
#2 alpm_db_update (handle=handle@entry=0x718c9000abd0, dbs=0x718c9000b360, force=force@entry=0) at ../lib/libalpm/be_sync.c:208
syncpath = 0x718c90015cb0 "/var/lib/pacman/sync/"
dbext = 0x718c9000ad70 ".db"
i = 0x0
ret = -1
oldmask = 18
payloads = 0x718c90012c10
event = {type = ALPM_EVENT_DB_RETRIEVE_START, any = {type = ALPM_EVENT_DB_RETRIEVE_START}, package_operation = {type = ALPM_EVENT_DB_RETRIEVE_START, operation = 4294967295, oldpkg = 0x2, newpkg = 0x718c900063d0}, optdep_removal = {type = ALPM_EVENT_DB_RETRIEVE_START, pkg = 0x2, optdep = 0x718c900063d0}, scriptlet_info = {type = ALPM_EVENT_DB_RETRIEVE_START, line = 0x2 <error: Cannot access memory at address 0x2>}, database_missing = {type = ALPM_EVENT_DB_RETRIEVE_START, dbname = 0x2 <error: Cannot access memory at address 0x2>}, pkgdownload = {type = ALPM_EVENT_DB_RETRIEVE_START, file = 0x2 <error: Cannot access memory at address 0x2>}, pacnew_created = {type = ALPM_EVENT_DB_RETRIEVE_START, from_noupgrade = -1, oldpkg = 0x2, newpkg = 0x718c900063d0, file = 0x718ca5f48e93 <__GI___libc_free+115> "d\211+H\203\304\030[]\303\017\037"}, pacsave_created = {type = ALPM_EVENT_DB_RETRIEVE_START, oldpkg = 0x2, file = 0x718c900063d0 "x86_64"}, hook = {type = ALPM_EVENT_DB_RETRIEVE_START, when = (ALPM_HOOK_PRE_TRANSACTION | ALPM_HOOK_POST_TRANSACTION | unknown: 0xfffffffc)}, hook_run = {type = ALPM_EVENT_DB_RETRIEVE_START, name = 0x2 <error: Cannot access memory at address 0x2>, desc = 0x718c900063d0 "x86_64", position = 124848893628051, total = 45}, pkg_retrieve = {type = ALPM_EVENT_DB_RETRIEVE_START, num = 2, total_size = 124848525304784}}
__func__ = "alpm_db_update"
#3 0x00005bfa31fec3fc in pamac_alpm_utils_update_dbs (self=self@entry=0x5bfa32e944f0, alpm_handle=alpm_handle@entry=0x718c9000abd0, force=force@entry=0) at src/pamac-daemon.p/alpm_utils.c:1939
success = 1
syncdbs = <optimized out>
_tmp0_ = <optimized out>
_tmp1_ = <optimized out>
_tmp2_ = <optimized out>
_inner_error0_ = 0x0
result = <optimized out>
__func__ = "pamac_alpm_utils_update_dbs"
#4 0x00005bfa31ff0315 in pamac_alpm_utils_trans_refresh (self=0x5bfa32e944f0, sender=<optimized out>, force_refresh=0) at src/pamac-daemon.p/alpm_utils.c:2085
_tmp0_ = <optimized out>
_tmp1_ = <optimized out>
_tmp2_ = 0x0
_tmp3_ = <optimized out>
_tmp4_ = <optimized out>
force = <optimized out>
alpm_handle = 0x718c9000abd0
_tmp12_ = 0x718c9000abd0
_tmp13_ = 0x718c9000abd0
success = 0
_tmp14_ = 0x718c9000abd0
_tmp15_ = <optimized out>
_tmp19_ = <optimized out>
_tmp20_ = <optimized out>
_inner_error0_ = 0x0
result = <optimized out>
__func__ = "pamac_alpm_utils_trans_refresh"
#5 0x00005bfa3200e3ae in ___lambda84_ (_data14_=0x718c880025b0) at src/pamac-daemon.p/daemon.c:4128
_tmp3_ = <optimized out>
_data13_ = 0x718c88003450
self = 0x5bfa32e65590
success = <optimized out>
_tmp0_ = <optimized out>
result = <optimized out>
_data13_ = <optimized out>
self = <optimized out>
_tmp0_ = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
success = <optimized out>
result = <optimized out>
_tmp1_ = <optimized out>
_tmp2_ = <optimized out>
_tmp3_ = <optimized out>
#6 ____lambda84__gthread_func (self=0x718c880025b0) at src/pamac-daemon.p/daemon.c:4141
result = <optimized out>
#7 0x0000718ca62c5a45 in g_thread_proxy (data=0x5bfa32ead530) at ../glib/glib/gthread.c:831
thread = 0x5bfa32ead530
__func__ = "g_thread_proxy"
#8 0x0000718ca5f3855a in start_thread (arg=<optimized out>) at pthread_create.c:447
ret = <optimized out>
pd = <optimized out>
out = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {124848846145216, 4654479111721388666, -120, 0, 140720438692032, 124848837754880, -6664960037529515398, -6664971273547871622}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
#9 0x0000718ca5fb5a3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
$ tail -n 60 /etc/pacman.conf | grep -v -e "^#" -e "^$"
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
[home_ItachiSan_archlinux]
Server = https://download.opensuse.org/repositories/home:/ItachiSan:/archlinux/standard/$arch
[openSUSE_Tools_Arch]
Server = https://download.opensuse.org/repositories/openSUSE:/Tools/Arch/$arch
[aur_dependencies]
SigLevel = Optional
Server = file:///home/giovanni/Projects/AUR/deps_repo
This build of pacman solves my issue with pamac gui hanging - possibly hiding the coredump.
Applied with pacman
6.1.0-4 in unstable.
It is a problem from libalpm because when adding the DEB_Arch_Extra repo, I have a segfault with pacman 6.1.0-3 but not when I build pacman from git master branch. The required fix is https://gitlab.archlinux.org/pacman/pacman/-/commit/eb5bf6913835e7553433ef82bdf0a456528f9b50
I did some testing using pamac-cli
11:31:30 ○ [fh@tiger] ~
$ cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc manjaro-system
# If upgrades are available for these packages they will be asked for first
SyncFirst = manjaro-system archlinux-keyring manjaro-keyring
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
#IgnorePkg =
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 4
#ILoveCandy
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Manjaro Linux
# packagers with `pacman-key --populate archlinux manjaro`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
[core]
#Server = https://uex.dk/repos/archlinux/$repo/os/$arch
Include = /etc/pacman.d/mirrorlist
[extra]
#Server = https://uex.dk/repos/archlinux/$repo/os/$arch
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
[multilib]
#Server = https://uex.dk/repos/archlinux/$repo/os/$arch
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
#[sublime-text]
#Server = https://download.sublimetext.com/arch/stable/x86_64
#[nixrepo]
#SigLevel = Optional TrustAll
#Server = https://uex.dk/repos/nixrepo/$arch
This will hang - I don't know for how long - no patience
11:31:51 ○ [fh@tiger] ~
$ pamac upgrade
Preparing...
Synchronizing package databases...
^CTerminated
It will cause the db.lck to be created
11:32:58 ○ [fh@tiger] ~
$ sudo pamac upgrade
Preparing...
Waiting for another package manager to quit...
^CResolving dependencies...
Checking inter-conflicts...
To upgrade (2):
linux68 6.8.1-2 (6.8.1-1) core 139,3 MB
linux68-headers 6.8.1-2 (6.8.1-1) core 25,9 MB
Total download size: 165,2 MB
Total installed size: 753 bytes
Apply transaction ? [y/N]
Transaction cancelled.
Lock file remove
11:33:16 ○ [fh@tiger] ~
$ sudo rm /var/lib/pacman/db.lck
Segfault
11:33:23 ○ [fh@tiger] ~
$ sudo pamac upgrade
Preparing...
Synchronizing package databases...
Segmentation fault
After hashing the 3rd party repo it seems to work. There is no pamac-daemon.service core dump.
What was the issue then? This was a repo for one package that usually comes from AUR anyway. Here is the part in config that is now hashed:
###REPO for MEGA###
[DEB_Arch_Extra]
SigLevel = Required TrustedOnly
Server = https://mega.nz/linux/repo/Arch_Extra/$arch
###END REPO for MEGA###
pacman 6.1 introduced a new xdata property in the .PKGINFO
@michaldybczak what happens if you remove any 3rd party repository from your /etc/pacman.conf
?
I thought we can't use sudo on pamac. The result is segfault:
sudo pamac update -a
Warning: Building packages as a dynamic user
Warning: compilation catalog is set to /var/cache/pamac
Preparing...
Database synchronisation....
Refreshing DEB_Arch_Extra.db...
Memory access violation
This doesn't influence pamac-daemon.service
, which stays active (no coredump).
Can you try with sudo and report ?
I confirm that the sync hangs indefinitely, and it is created by coredump:
sudo systemctl status pamac-daemon.service
×
pamac-daemon.service - Pamac Daemon
Loaded: loaded (/usr/lib/systemd/system/pamac-daemon.service; static)
Active:
failed
(Result: core-dump) since Wed 2024-03-20 20:02:12 CET; 8s ago
Duration: 3min 32.477s
Process: 2910407 ExecStart=/usr/bin/pamac-daemon
(code=dumped, signal=SEGV)
Main PID: 2910407 (code=dumped, signal=SEGV)
CPU: 360ms
mar 20 19:58:39 Sirius16-Manjaro systemd[1]: Starting Pamac Daemon...
mar 20 19:58:39 Sirius16-Manjaro systemd[1]: Started Pamac Daemon.
mar 20 20:02:12 Sirius16-Manjaro systemd[1]:
pamac-daemon.service: Main process exited, code=dumped, status=1
>
mar 20 20:02:12 Sirius16-Manjaro systemd[1]:
pamac-daemon.service: Failed with result 'core-dump'.
lines 1-12/12 (END)...skipping...
×
pamac-daemon.service - Pamac Daemon
Loaded: loaded (/usr/lib/systemd/system/pamac-daemon.service; static)
Active:
failed
(Result: core-dump) since Wed 2024-03-20 20:02:12 CET; 8s ago
Duration: 3min 32.477s
Process: 2910407 ExecStart=/usr/bin/pamac-daemon **(code=dumped, signal=SEGV) **
Main PID: 2910407 (code=dumped, signal=SEGV)
CPU: 360ms
mar 20 19:58:39 Sirius16-Manjaro systemd[1]: Starting Pamac Daemon...
mar 20 19:58:39 Sirius16-Manjaro systemd[1]: Started Pamac Daemon.
mar 20 20:02:12 Sirius16-Manjaro systemd[1]:
pamac-daemon.service: Main process exited, code=dumped, status=11/SEGV
mar 20 20:02:12 Sirius16-Manjaro systemd[1]:
pamac-daemon.service: Failed with result 'core-dump'.
As per title.
When running upgrade
, pamac-daemon
core dumps.
No issue happens when using pacman
or pkcon
(PackageKit).
pamac update
works as intended
Updating via pamac does not work.
$ coredumpctl debug 3831
PID: 3831 (pamac-daemon)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Tue 2024-03-19 08:27:31 CET (1min 21s ago)
Command Line: /usr/bin/pamac-daemon
Executable: /usr/bin/pamac-daemon
Control Group: /system.slice/pamac-daemon.service
Unit: pamac-daemon.service
Slice: system.slice
Boot ID: cb2cc75e04c44c55a9fb8ba5282f33df
Machine ID: 80a4412da0344f419c61a790576c4aba
Hostname: archlinux-tug
Storage: /var/lib/systemd/coredump/core.pamac-daemon.0.cb2cc75e04c44c55a9fb8ba5282f33df.3831.1710833251000000.zst (present)
Size on Disk: 1.6M
Message: Process 3831 (pamac-daemon) of user 0 dumped core.
Stack trace of thread 10171:
#0 0x0000718ca65d7272 n/a (libalpm.so.14 + 0x16272)
#1 0x0000718ca65d2d8e alpm_db_update (libalpm.so.14 + 0x11d8e)
#2 0x00005bfa31fec3fc pamac_alpm_utils_update_dbs (pamac-daemon + 0x1f3fc)
#3 0x00005bfa31ff0315 pamac_alpm_utils_trans_refresh (pamac-daemon + 0x23315)
#4 0x00005bfa3200e3ae ___lambda84_ (pamac-daemon + 0x413ae)
#5 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#6 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#7 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3833:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6292162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
#3 0x0000718ca62921b2 n/a (libglib-2.0.so.0 + 0x581b2)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3832:
#0 0x0000718ca5fb388d syscall (libc.so.6 + 0x10688d)
#1 0x0000718ca62ed337 g_cond_wait (libglib-2.0.so.0 + 0xb3337)
#2 0x0000718ca625f1b4 n/a (libglib-2.0.so.0 + 0x251b4)
#3 0x0000718ca62c7ace n/a (libglib-2.0.so.0 + 0x8dace)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3831:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6294b97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
#3 0x00005bfa31fde0ec _vala_main (pamac-daemon + 0x110ec)
#4 0x0000718ca5ed2cd0 n/a (libc.so.6 + 0x25cd0)
#5 0x0000718ca5ed2d8a __libc_start_main (libc.so.6 + 0x25d8a)
#6 0x00005bfa31fde125 _start (pamac-daemon + 0x11125)
Stack trace of thread 10190:
#0 0x0000718ca5fb388d syscall (libc.so.6 + 0x10688d)
#1 0x0000718ca62edd13 g_cond_wait_until (libglib-2.0.so.0 + 0xb3d13)
#2 0x0000718ca625f185 n/a (libglib-2.0.so.0 + 0x25185)
#3 0x0000718ca62c857b n/a (libglib-2.0.so.0 + 0x8e57b)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 10188:
#0 0x0000718ca5fb388d syscall (libc.so.6 + 0x10688d)
#1 0x0000718ca62edd13 g_cond_wait_until (libglib-2.0.so.0 + 0xb3d13)
#2 0x0000718ca625f185 n/a (libglib-2.0.so.0 + 0x25185)
#3 0x0000718ca62c857b n/a (libglib-2.0.so.0 + 0x8e57b)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 3835:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6294b97 g_main_loop_run (libglib-2.0.so.0 + 0x5ab97)
#3 0x0000718ca64fa19c n/a (libgio-2.0.so.0 + 0x11219c)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 10185:
#0 0x0000718ca5fa80bf __poll (libc.so.6 + 0xfb0bf)
#1 0x0000718ca62f22f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2 0x0000718ca6292162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
#3 0x0000718ca660afde n/a (libdconfsettings.so + 0x5fde)
#4 0x0000718ca62c5a45 n/a (libglib-2.0.so.0 + 0x8ba45)
#5 0x0000718ca5f3855a n/a (libc.so.6 + 0x8b55a)
#6 0x0000718ca5fb5a3c n/a (libc.so.6 + 0x108a3c)
ELF object binary architecture: AMD x86-64
GNU gdb (GDB) 14.2
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-pc-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 /usr/bin/pamac-daemon...
warning: Can't open file /root/.cache/dconf/user during file-backed mapping note processing
[New LWP 10171]
[New LWP 3833]
[New LWP 3832]
[New LWP 3831]
[New LWP 10190]
[New LWP 10188]
[New LWP 3835]
[New LWP 10185]
Downloading separate debug info for /usr/lib/libalpm.so.14
Downloading separate debug info for /usr/lib/libsoup-3.0.so.0
Downloading separate debug info for /usr/lib/libpolkit-gobject-1.so.0
Downloading separate debug info for /usr/lib/libarchive.so.13
Downloading separate debug info for /usr/lib/libgpgme.so.11
Downloading separate debug info for /usr/lib/libsqlite3.so.0
Downloading separate debug info for /usr/lib/libpsl.so.5
Downloading separate debug info for /usr/lib/libbz2.so.1.0
Downloading separate debug info for /usr/lib/libassuan.so.0
--Type <RET> for more, q to quit, c to continue without paging--
Downloading separate debug info for /usr/lib/libcom_err.so.2
Downloading separate debug info for /usr/lib/libjson-glib-1.0.so.0
Downloading separate debug info for /usr/lib/libappstream.so.5
Downloading separate debug info for /usr/lib/libxmlb.so.2
Downloading separate debug info for /usr/lib/libxml2.so.2
Downloading separate debug info for /usr/lib/libyaml-0.so.2
Downloading separate debug info for /usr/lib/libstemmer.so.0
Downloading separate debug info for /usr/lib/libicuuc.so.74
Downloading separate debug info for /usr/lib/libicudata.so.74
Downloading separate debug info for /usr/lib/gio/modules/libgiognomeproxy.so
Downloading separate debug info for /usr/lib/gio/modules/libdconfsettings.so
Downloading separate debug info for /usr/lib/gio/modules/libgiolibproxy.so
Downloading separate debug info for /usr/lib/libnss_mymachines.so.2
Downloading separate debug info for /usr/lib/libnss_mdns_minimal.so.2
Downloading separate debug info for /usr/lib/libnss_resolve.so.2
Downloading separate debug info for /usr/lib/libnss_myhostname.so.2
Downloading separate debug info for /usr/lib/libp11-kit.so.0
Downloading separate debug info for /usr/lib/gio/modules/libgiognutls.so
Downloading separate debug info for /usr/lib/libgnutls.so.30
Downloading separate debug info for /usr/lib/libbrotlienc.so.1
Downloading separate debug info for /usr/lib/libtasn1.so.6
Downloading separate debug info for /usr/lib/libnettle.so.8
Downloading separate debug info for /usr/lib/libhogweed.so.6
Downloading separate debug info for /usr/lib/libgmp.so.10
Downloading separate debug info for /usr/lib/pkcs11/p11-kit-trust.so
Downloading separate debug info for system-supplied DSO at 0x7ffc07c39000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/pamac-daemon'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 _alpm_download (handle=0x718c9000abd0, payloads=<optimized out>, localpath=0x718c90015cb0 "/var/lib/pacman/sync/") at ../lib/libalpm/dload.c:1045
Downloading source file /usr/src/debug/pacman/pacman-6.1.0/build/../lib/libalpm/dload.c
1045 size_t sig_len = strlen(s->data) + strlen(payload->filepath) + 6;
[Current thread is 1 (Thread 0x718ca32006c0 (LWP 10171))]
(gdb) backtrace full
#0 _alpm_download (handle=0x718c9000abd0, payloads=<optimized out>, localpath=0x718c90015cb0 "/var/lib/pacman/sync/") at ../lib/libalpm/dload.c:1045
sig_fileurl = <optimized out>
sig_len = <optimized out>
retsig = <optimized out>
payload = 0x718c900131f0
s = 0x0
ret = 0
p = 0x718c900139b0
updated = 1
__func__ = {<optimized out> <repeats 15 times>}
#1 0x0000718ca65d2d8e in _alpm_download (localpath=0x718c90015cb0 "/var/lib/pacman/sync/", payloads=0x718c90012c10, handle=0x718c9000abd0) at ../lib/libalpm/dload.c:1002
__func__ = {<optimized out> <repeats 15 times>}
p = <optimized out>
updated = <optimized out>
payload = <optimized out>
s = <optimized out>
ret = <optimized out>
sig_fileurl = <optimized out>
sig_len = <optimized out>
retsig = <optimized out>
sig_fileurl = <optimized out>
sig_len = <optimized out>
retsig = <optimized out>
#2 alpm_db_update (handle=handle@entry=0x718c9000abd0, dbs=0x718c9000b360, force=force@entry=0) at ../lib/libalpm/be_sync.c:208
syncpath = 0x718c90015cb0 "/var/lib/pacman/sync/"
dbext = 0x718c9000ad70 ".db"
i = 0x0
ret = -1
oldmask = 18
payloads = 0x718c90012c10
event = {type = ALPM_EVENT_DB_RETRIEVE_START, any = {type = ALPM_EVENT_DB_RETRIEVE_START}, package_operation = {type = ALPM_EVENT_DB_RETRIEVE_START, operation = 4294967295, oldpkg = 0x2, newpkg = 0x718c900063d0}, optdep_removal = {type = ALPM_EVENT_DB_RETRIEVE_START, pkg = 0x2, optdep = 0x718c900063d0}, scriptlet_info = {type = ALPM_EVENT_DB_RETRIEVE_START, line = 0x2 <error: Cannot access memory at address 0x2>}, database_missing = {type = ALPM_EVENT_DB_RETRIEVE_START, dbname = 0x2 <error: Cannot access memory at address 0x2>}, pkgdownload = {type = ALPM_EVENT_DB_RETRIEVE_START, file = 0x2 <error: Cannot access memory at address 0x2>}, pacnew_created = {type = ALPM_EVENT_DB_RETRIEVE_START, from_noupgrade = -1, oldpkg = 0x2, newpkg = 0x718c900063d0, file = 0x718ca5f48e93 <__GI___libc_free+115> "d\211+H\203\304\030[]\303\017\037"}, pacsave_created = {type = ALPM_EVENT_DB_RETRIEVE_START, oldpkg = 0x2, file = 0x718c900063d0 "x86_64"}, hook = {type = ALPM_EVENT_DB_RETRIEVE_START, when = (ALPM_HOOK_PRE_TRANSACTION | ALPM_HOOK_POST_TRANSACTION | unknown: 0xfffffffc)}, hook_run = {type = ALPM_EVENT_DB_RETRIEVE_START, name = 0x2 <error: Cannot access memory at address 0x2>, desc = 0x718c900063d0 "x86_64", position = 124848893628051, total = 45}, pkg_retrieve = {type = ALPM_EVENT_DB_RETRIEVE_START, num = 2, total_size = 124848525304784}}
__func__ = "alpm_db_update"
#3 0x00005bfa31fec3fc in pamac_alpm_utils_update_dbs (self=self@entry=0x5bfa32e944f0, alpm_handle=alpm_handle@entry=0x718c9000abd0, force=force@entry=0) at src/pamac-daemon.p/alpm_utils.c:1939
success = 1
syncdbs = <optimized out>
_tmp0_ = <optimized out>
_tmp1_ = <optimized out>
_tmp2_ = <optimized out>
_inner_error0_ = 0x0
result = <optimized out>
__func__ = "pamac_alpm_utils_update_dbs"
#4 0x00005bfa31ff0315 in pamac_alpm_utils_trans_refresh (self=0x5bfa32e944f0, sender=<optimized out>, force_refresh=0) at src/pamac-daemon.p/alpm_utils.c:2085
_tmp0_ = <optimized out>
_tmp1_ = <optimized out>
_tmp2_ = 0x0
_tmp3_ = <optimized out>
_tmp4_ = <optimized out>
force = <optimized out>
alpm_handle = 0x718c9000abd0
_tmp12_ = 0x718c9000abd0
_tmp13_ = 0x718c9000abd0
success = 0
_tmp14_ = 0x718c9000abd0
_tmp15_ = <optimized out>
_tmp19_ = <optimized out>
_tmp20_ = <optimized out>
_inner_error0_ = 0x0
result = <optimized out>
__func__ = "pamac_alpm_utils_trans_refresh"
#5 0x00005bfa3200e3ae in ___lambda84_ (_data14_=0x718c880025b0) at src/pamac-daemon.p/daemon.c:4128
_tmp3_ = <optimized out>
_data13_ = 0x718c88003450
self = 0x5bfa32e65590
success = <optimized out>
_tmp0_ = <optimized out>
result = <optimized out>
_data13_ = <optimized out>
self = <optimized out>
_tmp0_ = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
success = <optimized out>
result = <optimized out>
_tmp1_ = <optimized out>
_tmp2_ = <optimized out>
_tmp3_ = <optimized out>
#6 ____lambda84__gthread_func (self=0x718c880025b0) at src/pamac-daemon.p/daemon.c:4141
result = <optimized out>
#7 0x0000718ca62c5a45 in g_thread_proxy (data=0x5bfa32ead530) at ../glib/glib/gthread.c:831
thread = 0x5bfa32ead530
__func__ = "g_thread_proxy"
#8 0x0000718ca5f3855a in start_thread (arg=<optimized out>) at pthread_create.c:447
ret = <optimized out>
pd = <optimized out>
out = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {124848846145216, 4654479111721388666, -120, 0, 140720438692032, 124848837754880, -6664960037529515398, -6664971273547871622}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
#9 0x0000718ca5fb5a3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
$ tail -n 60 /etc/pacman.conf | grep -v -e "^#" -e "^$"
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
[home_ItachiSan_archlinux]
Server = https://download.opensuse.org/repositories/home:/ItachiSan:/archlinux/standard/$arch
[openSUSE_Tools_Arch]
Server = https://download.opensuse.org/repositories/openSUSE:/Tools/Arch/$arch
[aur_dependencies]
SigLevel = Optional
Server = file:///home/giovanni/Projects/AUR/deps_repo
Guillaume Benoit (9108cba3) at 11 Mar 18:42
11.6.4
Guillaume Benoit (dff0d861) at 02 Dec 15:50
11.6.3
Now, appstream data is in /usr/share/swcatalog/xml/
https://gitlab.manjaro.org/applications/libpamac/-/blob/master/src/appstream_plugin.vala#L178
File appstream_file = File.new_for_path ("/usr/share/app-info/xmls/%s.xml.gz".printf (repo));
same issue: pamac#1384