Bug#1085382: libconfig-model-dpkg-perl: scan-copyrights crashes when non ascii 7 chars are present in debian/fill.copyright.blanks.yml

Walter Lozano walter.lozano at collabora.com
Fri Oct 18 18:36:59 BST 2024


Package: libconfig-model-dpkg-perl
Version: 2.165
Severity: normal

Dear Maintainer,

I noticed that libconfig-model-dpkg-perl 3.005 crashes if non ascii 7 chars are
found in debian/fill.copyright.blanks.yml with

Attribute (main_grant_weight) does not pass the type constraint because:
Validation failed for 'Int' with value undef at /usr/lib/x86_64-linux-
gnu/perl5/5.38/Mouse/Util.pm line 395.
        Mouse::Util::throw_error(Mouse::Meta::Attribute=HASH(0x57cd418daee8),
"Attribute (main_grant_weight) does not pass the type constrai"..., "data",
undef, "depth", -1) called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 278
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41ab1270))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 221
Dpkg::Copyright::Grant::ByDir::count_dir_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41ab1188),
HASH(0x57cd41a9d5a8), HASH(0x57cd419dd5e8)) called at ../../pkg-
debian/libconfig-model-dpkg-perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 199
Dpkg::Copyright::Grant::ByDir::count_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41ab1188))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 271
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41ab1188))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 221
Dpkg::Copyright::Grant::ByDir::count_dir_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41995fc0),
HASH(0x57cd418be2f8), HASH(0x57cd418be310)) called at ../../pkg-
debian/libconfig-model-dpkg-perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 199
Dpkg::Copyright::Grant::ByDir::count_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41995fc0))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 271
Dpkg::Copyright::Grant::ByDir::main_grant(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41995fc0))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 385
Dpkg::Copyright::Grant::ByDir::debian_full_data(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41995fc0))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Grant/ByDir.pm line 418
Dpkg::Copyright::Grant::ByDir::debian_full_record(Dpkg::Copyright::Grant::ByDir=HASH(0x57cd41995fc0))
called at ../../pkg-debian/libconfig-model-dpkg-
perl/lib/Dpkg/Copyright/Scanner.pm line 56
        Dpkg::Copyright::Scanner::generate_copyright() called at ../../pkg-
debian/libconfig-model-dpkg-perl/lib/Dpkg/Copyright/Scanner.pm line 64
        Dpkg::Copyright::Scanner::print_copyright() called at ../../pkg-
debian/libconfig-model-dpkg-perl/bin/scan-copyrights line 37

as an example of the file

$ cat debian/fill.copyright.blanks.yml
debian/:
  copyright: "\xA9 1999-2023 Jordi Mallach <jordi at debian.org>"
  license: GPL-3+


-- System Information:
Debian Release: trixie/sid
  APT prefers mantic-updates
  APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-44-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libconfig-model-dpkg-perl depends on:
ii  debhelper                          13.11.6ubuntu1
ii  libapt-pkg-perl                    0.1.40build3
ii  libarray-intspan-perl              2.004-2
ii  libconfig-model-backend-yaml-perl  2.134-2
ii  libconfig-model-perl               2.153-3
ii  libdata-compare-perl               1.29-1
ii  libexporter-lite-perl              0.09-2
ii  liblog-log4perl-perl               1.57-1
ii  libmouse-perl                      2.5.10-1build5
ii  libparse-debcontrol-perl           2.005-6
ii  libparse-recdescent-perl           1.967015+dfsg-4
ii  libsoftware-licensemoreutils-perl  1.009-1
ii  libsort-versions-perl              1.62-3
ii  libtext-autoformat-perl            1.750000-2
ii  libtext-levenshtein-damerau-perl   0.41-3
ii  libtoml-tiny-perl                  0.16-1
ii  liburi-perl                        5.19-2
ii  libwww-perl                        6.72-1
ii  libyaml-libyaml-perl               0.86+ds-1
ii  licensecheck                       3.3.9-1ubuntu1
ii  lintian                            2.116.3ubuntu3.2
ii  perl [libmodule-corelist-perl]     5.36.0-9ubuntu1.1

Versions of packages libconfig-model-dpkg-perl recommends:
ii  libconfig-model-tkui-perl  1.376-1

libconfig-model-dpkg-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list