FS#71261 - [pyalpm] find_grp_pkgs segmentation fault
Attached to Project:
Arch Linux
Opened by demaisj (demaisj) - Tuesday, 15 June 2021, 08:27 GMT
Last edited by Jelle van der Waa (jelly) - Tuesday, 15 June 2021, 18:28 GMT
Opened by demaisj (demaisj) - Tuesday, 15 June 2021, 08:27 GMT
Last edited by Jelle van der Waa (jelly) - Tuesday, 15 June 2021, 18:28 GMT
|
Details
Description:
When calling the find_grp_pkgs method, the python program crashes with a segmentation fault. This method used to work a few months ago but I don't know the exact version of pyalpm on which it did work. Package versions: pyalpm 0.10.4-1 python 3.9.5-3 pacman 6.0.0-3 Steps to reproduce: import pyalpm print('Creating handle...') handle = pyalpm.Handle('.', '/var/lib/pacman/') print('Registering syncdbs...') for name in ['core', 'extra', 'community']: print(f'\t{name}...') handle.register_syncdb(name, pyalpm.SIG_DATABASE_OPTIONAL) print('Getting syncdbs...') syncdbs = handle.get_syncdbs() print('Finding group packages...') pkgs = pyalpm.find_grp_pkgs(syncdbs, 'gnome') # Segfaults! print('Should not be printed!') print(pkgs) Backtrace: #0 0x00007ffff732a678 in pyalpm_package_from_pmpkg () from /usr/lib/python3.9/site-packages/pyalpm.cpython-39-x86_64-linux-gnu.so #1 0x00007ffff732be7f in alpmlist_to_pylist () from /usr/lib/python3.9/site-packages/pyalpm.cpython-39-x86_64-linux-gnu.so #2 0x00007ffff7328a27 in pyalpm_find_grp_pkgs () from /usr/lib/python3.9/site-packages/pyalpm.cpython-39-x86_64-linux-gnu.so #3 0x00007ffff7d2d128 in ?? () from /usr/lib/libpython3.9.so.1.0 #4 0x00007ffff7d15513 in _PyObject_MakeTpCall () from /usr/lib/libpython3.9.so.1.0 #5 0x00007ffff7d1144d in _PyEval_EvalFrameDefault () from /usr/lib/libpython3.9.so.1.0 #6 0x00007ffff7d0b219 in ?? () from /usr/lib/libpython3.9.so.1.0 #7 0x00007ffff7d0ac01 in _PyEval_EvalCodeWithName () from /usr/lib/libpython3.9.so.1.0 #8 0x00007ffff7dc1d63 in PyEval_EvalCode () from /usr/lib/libpython3.9.so.1.0 #9 0x00007ffff7dd1b94 in ?? () from /usr/lib/libpython3.9.so.1.0 #10 0x00007ffff7dcd83b in ?? () from /usr/lib/libpython3.9.so.1.0 #11 0x00007ffff7c7c25e in ?? () from /usr/lib/libpython3.9.so.1.0 #12 0x00007ffff7c7b644 in PyRun_SimpleFileExFlags () from /usr/lib/libpython3.9.so.1.0 #13 0x00007ffff7de3695 in Py_RunMain () from /usr/lib/libpython3.9.so.1.0 #14 0x00007ffff7db4349 in Py_BytesMain () from /usr/lib/libpython3.9.so.1.0 #15 0x00007ffff7a40b25 in __libc_start_main () from /usr/lib/libc.so.6 #16 0x000055555555504e in _start () |
This task depends upon
Closed by Jelle van der Waa (jelly)
Tuesday, 15 June 2021, 18:28 GMT
Reason for closing: Fixed
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p yalpm/-/commit/8c2741a30885a770c6eef7a89 2d5f742ba0003de
Tuesday, 15 June 2021, 18:28 GMT
Reason for closing: Fixed
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p yalpm/-/commit/8c2741a30885a770c6eef7a89 2d5f742ba0003de