Skip to content

paru -Sl produced panic with corrupted text #1575

Description

@Noraksing

Affected Version

paru v2.1.0 - libalpm v16.0.1

Description

Expected behaviour: error: repository "foobargibberish" was not found
Observed behaviour: thread 'main' (17853) panicked

Output

myusername:~ > RUST_BACKTRACE=full paru -Sl aur
thread 'main' (17853) panicked at /home/myusername/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/alpm-4.0.4/src/db.rs:144:39:
called `Result::unwrap()` on an `Err` value: NulError(0, [0, 29, 239, 166, 209, 142, 180, 26, 23, 118, 37, 205, 15, 175, 160, 127, 249, 31, 26, 112, 180, 238, 64, 143, 155, 71, 62, 83, 156, 64, 202, 165, 241, 193, 232, 94, 129, 214, 118, 164, 181, 70, 199, 186, 216, 28, 221, 223, 5, 153, 72, 174, 160, 191, 182, 115, 128, 154, 142, 110, 179, 117, 209, 219, 139, 153, 130, 12, 154, 177, 86, 184, 44, 96, 14, 231, 199, 4, 186, 3, 47, 190, 155, 67, 156, 165, 7, 154, 101, 170, 105, 152, 132, 87, 100])
stack backtrace:
   0:     0x55bed4d73792 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h92fd74449b7f678b
   1:     0x55bed4a38f5f - core::fmt::write::h00809bb0958afbf1
   2:     0x55bed4d7332f - std::io::Write::write_fmt::h5fb3b1984e5b313e
   3:     0x55bed4d735f3 - std::sys::backtrace::BacktraceLock::print::h0334b6c9d9becfcb
   4:     0x55bed4d72d5a - std::panicking::panic_with_hook::ha081b99e1ed29d72
   5:     0x55bed4d9b2c8 - std::panicking::panic_handler::{{closure}}::h688f98dd75bdd25a
   6:     0x55bed4d9b229 - std::sys::backtrace::__rust_end_short_backtrace::h903625fc3cab1dc2
   7:     0x55bed4d9b21c - __rustc[1f269f85759f03b1]::rust_begin_unwind
   8:     0x55bed4a39f8f - core::panicking::panic_fmt::h03316bff9af19d27
   9:     0x55bed4a45045 - core::result::unwrap_failed::h751e18f13b81878e
  10:     0x55bed4977c96 - paru::sync::list_aur::{{closure}}::h56e7c7b3ec9d0fc4
  11:     0x55bed495637a - paru::handle_sync::{{closure}}::h1d681f77017979b1
  12:     0x55bed49721c3 - paru::run2::{{closure}}::h3423e44935e2d084
  13:     0x55bed4968f04 - paru::main::{{closure}}::h6dd3a246297d6f45
  14:     0x55bed4966339 - paru::main::h8e3b3a1f0211c686
  15:     0x55bed4922116 - std::sys::backtrace::__rust_begin_short_backtrace::h01beba020f2d2b97
  16:     0x55bed49dcf53 - main
  17:     0x7fa403827741 - <unknown>
  18:     0x7fa403827879 - __libc_start_main
  19:     0x55bed48f8f45 - _start
  20:                0x0 - <unknown>
aur ��ю�▒v%����▒p��@��G>S�@ʥ���^��v��FǺ����H����s���n�u�ۋ��
                                                           ��V�,`���/��C���e�i��Wd unknown-version%  

paru.conf

#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options

#
# GENERAL OPTIONS
#
[options]
PgpFetch
Devel
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil
#AurOnly
#BottomUp
#RemoveMake
#SudoLoop
#UseAsk
#SaveChanges
#CombinedUpgrade
#CleanAfter
#UpgradeMenu
#NewsOnUpgrade

#LocalRepo
#Chroot
#Sign
#SignDb
#KeepRepoCache

#
# Binary OPTIONS
#
#[bin]
#FileManager = vifm
#MFlags = --skippgpcheck
#Sudo = doas

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
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
DownloadUser = alpm
#DisableSandboxFilesystem
#DisableSandboxSyscalls

# 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 Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# 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.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[core-testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

#[extra-testing]
#Include = /etc/pacman.d/mirrorlist

[extra]
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-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions