pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/59916: pkgtools/plist-utils: plist-sort crash
>Number: 59916
>Category: pkg
>Synopsis: pkgtools/plist-utils: plist-sort crash
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 14 13:40:00 +0000 2026
>Originator: Robert Whitlock
>Release: pkgsrc current, Jan 13, 2025
>Organization:
>Environment:
NetBSD current 10.99.14, amd64
>Description:
I was preparing a PLIST patch for devel/zix and when I ran plist-sort on the PLIST, it crashed.
thinkpad# plist-sort -i PLIST
assertion "entry[0]" failed: file "plist_tree.c", line 173, function "plist_tree_insert"
[1] Abort trap (core dumped) plist-sort -i PLIST
thinkpad# ls
CVS Makefile PLIST.orig distinfo plist-sort.core
DESCR PLIST buildlink3.mk options.mk typescript
thinkpad# gdb `which plist-sort` plist-sort.core
GNU gdb (GDB) 15.1
Copyright (C) 2024 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--netbsd".
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/pkg/bin/plist-sort...
[New process 13694]
Core was generated by `plist-sort'.
Program terminated with signal SIGABRT, Aborted.
#0 0x000076974ceef4da in _lwp_kill () from /usr/lib/libc.so.12
(gdb) bt
#0 0x000076974ceef4da in _lwp_kill () from /usr/lib/libc.so.12
#1 0x000076974cefa914 in abort ()
at /usr/netbsd/current/src/lib/libc/stdlib/abort.c:74
#2 0x000076974ceeed9d in __assert13 (file=<optimized out>,
line=<optimized out>, function=<optimized out>, failedexpr=<optimized out>)
at /usr/netbsd/current/src/lib/libc/gen/assert.c:72
#3 0x0000000000b2bbe7 in plist_tree_insert ()
#4 0x0000000000b2bfa3 in main ()
(gdb) quit
thinkpad#
Here is the PLIST that I was running it on:
@comment $NetBSD: PLIST,v 1.3 2025/08/12 10:20:43 adam Exp $
include/zix-0/zix/allocator.h
include/zix-0/zix/attributes.h
include/zix-0/zix/btree.h
include/zix-0/zix/bump_allocator.h
include/zix-0/zix/digest.h
include/zix-0/zix/environment.h
include/zix-0/zix/filesystem.h
include/zix-0/zix/hash.h
include/zix-0/zix/path.h
include/zix-0/zix/ring.h
include/zix-0/zix/sem.h
include/zix-0/zix/status.h
include/zix-0/zix/string_view.h
include/zix-0/zix/thread.h
include/zix-0/zix/tree.h
include/zix-0/zix/zix.h
lib/libzix-0.so
lib/libzix-0.so.${PKGVERSION}
lib/libzix-0.so.0
lib/pkgconfig/zix-0.pc
${PLIST.doc}share/doc/zix-0/html/_static/pygments.css
${PLIST.doc}share/doc/zix-0/html/_static/sphinx_lv2_theme.css
${PLIST.doc}share/doc/zix-0/html/allocation.html
${PLIST.doc}share/doc/zix-0/html/api/bump_allocator.html
${PLIST.doc}share/doc/zix-0/html/api/zix.html
${PLIST.doc}share/doc/zix-0/html/api/zix_algorithms.html
${PLIST.doc}share/doc/zix-0/html/api/zix_allocation.html
${PLIST.doc}share/doc/zix-0/html/api/zix_allocator.html
${PLIST.doc}share/doc/zix-0/html/api/zix_attributes.html
${PLIST.doc}share/doc/zix-0/html/api/zix_btree.html
${PLIST.doc}share/doc/zix-0/html/api/zix_btree_iteration.html
${PLIST.doc}share/doc/zix-0/html/api/zix_btree_modification.html
${PLIST.doc}share/doc/zix-0/html/api/zix_btree_searching.html
${PLIST.doc}share/doc/zix-0/html/api/zix_btree_setup.html
${PLIST.doc}share/doc/zix-0/html/api/zix_data_structures.html
${PLIST.doc}share/doc/zix-0/html/api/zix_digest.html
${PLIST.doc}share/doc/zix-0/html/api/zix_environment.html
${PLIST.doc}share/doc/zix-0/html/api/zix_expand.html
${PLIST.doc}share/doc/zix-0/html/api/zix_file_system.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_access.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_creation.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_environment.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_locking.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_ops.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_queries.html
${PLIST.doc}share/doc/zix-0/html/api/zix_fs_resolution.html
${PLIST.doc}share/doc/zix-0/html/api/zix_hash.html
${PLIST.doc}share/doc/zix-0/html/api/zix_hash_datatypes.html
${PLIST.doc}share/doc/zix-0/html/api/zix_hash_iteration.html
${PLIST.doc}share/doc/zix-0/html/api/zix_hash_modification.html
${PLIST.doc}share/doc/zix-0/html/api/zix_hash_searching.html
${PLIST.doc}share/doc/zix-0/html/api/zix_hash_setup.html
${PLIST.doc}share/doc/zix-0/html/api/zix_path.html
${PLIST.doc}share/doc/zix-0/html/api/zix_path_concatenation.html
${PLIST.doc}share/doc/zix-0/html/api/zix_path_decomposition.html
${PLIST.doc}share/doc/zix-0/html/api/zix_path_lexical.html
${PLIST.doc}share/doc/zix-0/html/api/zix_path_queries.html
${PLIST.doc}share/doc/zix-0/html/api/zix_ring.html
${PLIST.doc}share/doc/zix-0/html/api/zix_ring_read.html
${PLIST.doc}share/doc/zix-0/html/api/zix_ring_setup.html
${PLIST.doc}share/doc/zix-0/html/api/zix_ring_write.html
${PLIST.doc}share/doc/zix-0/html/api/zix_sem.html
${PLIST.doc}share/doc/zix-0/html/api/zix_status.html
${PLIST.doc}share/doc/zix-0/html/api/zix_string_view.html
${PLIST.doc}share/doc/zix-0/html/api/zix_thread.html
${PLIST.doc}share/doc/zix-0/html/api/zix_threading.html
${PLIST.doc}share/doc/zix-0/html/api/zix_tree.html
${PLIST.doc}share/doc/zix-0/html/api/zix_tree_iteration.html
${PLIST.doc}share/doc/zix-0/html/api/zix_tree_modification.html
${PLIST.doc}share/doc/zix-0/html/api/zix_tree_searching.html
${PLIST.doc}share/doc/zix-0/html/api/zix_tree_setup.html
${PLIST.doc}share/doc/zix-0/html/api/zix_utilities.html
${PLIST.doc}share/doc/zix-0/html/error_handling.html
${PLIST.doc}share/doc/zix-0/html/genindex.html
${PLIST.doc}share/doc/zix-0/html/index.html
${PLIST.doc}share/doc/zix-0/html/string_views.html
${PLIST.doc}share/doc/zix-0/html/using_zix.html
${PLIST.doc}share/doc/zix-0/singlehtml/_static/pygments.css
${PLIST.doc}share/doc/zix-0/singlehtml/_static/sphinx_lv2_theme.css
${PLIST.doc}share/doc/zix-0/singlehtml/index.html
${PLIST.doc}share/doc/zix-0/html/_static/base-stemmer.js
${PLIST.doc}share/doc/zix-0/html/_static/english-stemmer.js
${PLIST.doc}share/doc/zix-0/singlehtml/_static/base-stemmer.js
${PLIST.doc}share/doc/zix-0/singlehtml/_static/english-stemmer.js
>How-To-Repeat:
See above.
>Fix:
Home |
Main Index |
Thread Index |
Old Index