Project

General

Profile

Actions

Bug #198

open

redwrap-dnf segfaults when /var/lib/rpm doesn't exist and/or is read-only

Added by José Bollo 2 days ago.

Status:
New
Priority:
Low
Target version:
-
Start date:
01/28/2025
Due date:
% Done:

0%

Estimated time:
Hardware platform:
Other
OS Affects Version/s:
batz-2.0
OS Fix Version/s:
Labels:

Description

The bug #188 is solved by appropriately setting write permission to dnf/rpm components.

However, it doesn't solve the segmentation fault that occurs if /var/lib/rpm is read only.

The issue is deep in libdnf/libsolve.

Step to reproduce:

1 - revert commit https://github.com/redpesk-labs/red-pak/commit/eef436d25d61ce285ed8cde4b89a4b44ed93e587
2 - follow the reproducing steps of #188:

ulimit -c unlimited
redconf create -f /tmp/redroot
redconf create -l /tmp/redroot/leaf
find /tmp/redroot
redwrap -a -r /tmp/redroot/leaf -- bash
cp socat-1.7.4.1-5.apps.rpbatz_1.2.aarch64.rpm /tmp/redroot/leaf/etc/yum.repos.d/
redwrap-dnf -a -r /tmp/redroot/leaf install /tmp/redroot/leaf/etc/yum.repos.d/socat-1.7.4.1-5.apps.rpbatz_1.2.aarch64.rpm

Related issues 2 (1 open1 closed)

Related to Bug #188: installation in rednodes using redwrap-dnf (or redmicrodnf in nodes) seems broken in redpak 2.4In ProgressJosé Bollo12/20/2024

Actions
Related to Bug #191: improve redmicrodnf plugin for rpm directoriesClosedJosé Bollo12/20/2024

Actions
Actions

Also available in: Atom PDF