[Bug 262488] SIGSEGV in strlen() caused by "pkg upgrade -Ffy"
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 262488] SIGSEGV in strlen() caused by "pkg upgrade -Ffy""
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Mar 2022 20:51:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262488 --- Comment #1 from Dennis Clarke <dclarke@blastwave.org> --- This may be related to a "bad" package. Not sure yet and I am looking into it. However a package cooked up from ports with a newer version of "pkg" may result in queries that return a null string and then strlen dumps core later. As I say, this is something I am looking into. Running pkg upgrade -Ffy with DEBUG_LEVEL 4 revels the final queries: . . . DBG(3)[54023]> added shlib deps for nvidia-driver-304 on libX11.so.6 DBG(4)[54023]> Pkgdb: running 'SELECT name FROM pkg_shlibs_provided, shlibs AS s WHERE package_id = 5522 AND shlib_id = s.id ORDER by name DESC' DBG(3)[54023]> added shlib provide libvdpau_nvidia.so.1 for nvidia-driver-304 DBG(3)[54023]> added shlib provide libnvidia-tls.so.1 for nvidia-driver-304 DBG(3)[54023]> added shlib provide libnvidia-glcore.so.1 for nvidia-driver-304 DBG(3)[54023]> added shlib provide libnvidia-cfg.so.1 for nvidia-driver-304 DBG(3)[54023]> added shlib provide libXvMCNVIDIA_dynamic.so.1 for nvidia-driver-304 DBG(3)[54023]> added shlib provide libGL.so.1 for nvidia-driver-304 DBG(4)[54023]> Pkgdb: running 'SELECT k.annotation AS tag, v.annotation AS value FROM pkg_annotation p JOIN annotation k ON (p.tag_id = k.annotation_id) JOIN annotation v ON (p.value_id = v.annotation_id) WHERE p.package_id = 5522 ORDER BY tag, value' DBG(4)[54023]> Pkgdb: running 'SELECT packages.name FROM pkg_conflicts LEFT JOIN packages ON (packages.id = pkg_conflicts.conflict_id) WHERE package_id = 5522' DBG(4)[54023]> Pkgdb: running 'SELECT provide FROM pkg_provides, provides AS s WHERE package_id = 5522 AND provide_id = s.id ORDER by provide DESC' DBG(4)[54023]> Pkgdb: running 'SELECT require FROM pkg_requires, requires AS s WHERE package_id = 5522 AND require_id = s.id ORDER by require DESC' Child process pid=54023 terminated abnormally: Segmentation fault europa# europa# I did try to look at the schema of tables in the pkg sqlite database to find some information about whatever package_id 5522 is but I can not find anything at all. I don't know if I can proceed much further and may do a total reinstall with CURRENT and then see what happens. -- You are receiving this mail because: You are the assignee for the bug.