Thank you for taking the time to file a bug report. I did some investigation and noticed that the problem is actually with imageinfo.
From imageinfo.c: filename = poptGetArg(poptctxt); if (poptGetArg(poptctxt) != NULL) { fprintf(stderr, "imageinfo: must specify a single filename\n"); poptFreeContext(poptctxt); exit(2); } poptFreeContext(poptctxt); if (!filename) { fprintf(stderr, "imageinfo: must specify a filename\n"); exit(3); } This excerpt is saving a pointer to the the "filename" string that's found inside "poptctxt", but then it calls "poptFreeContext", which will invoke "free" on that same string. ** Package changed: popt (Ubuntu) => imageinfo (Ubuntu) ** Changed in: imageinfo (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to popt in Ubuntu. https://bugs.launchpad.net/bugs/2012119 Title: imageinfo fails in Ubuntu 23.04 with a "no such file or directory" error Status in imageinfo package in Ubuntu: Triaged Bug description: imageinfo fails in Ubuntu 23.04 with a "no such file or directory" error, eg: $ imageinfo --size /usr/share/backgrounds/Lunar-lobster-side_by_Gixo-dark.png imageinfo: unable to open image `��s��U': No such file or directory @ error/blob.c/OpenBlob/2924. $ imageinfo --size /usr/share/backgrounds/Copper_Mountain_by_Eduardo_Battaglia.jpg imageinfo: unable to open image `�=�V': No such file or directory @ error/blob.c/OpenBlob/2924. The filename it complains is not found seems to be random and changes each time. Under WSL, it fails but just says "unable to open image `': No such file", ie it doesn't show the random text. ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: imageinfo 0.04-0ubuntu12 ProcVersionSignature: Ubuntu 6.1.0-16.16-generic 6.1.6 Uname: Linux 6.1.0-16-generic x86_64 ApportVersion: 2.26.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Sat Mar 18 16:31:02 2023 InstallationDate: Installed on 2021-09-28 (536 days ago) InstallationMedia: Ubuntu 21.10 "Impish Indri" - Beta amd64 (20210924) ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: imageinfo UpgradeStatus: Upgraded to lunar on 2023-03-16 (1 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/imageinfo/+bug/2012119/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp