You are not logged in.

#1 2020-10-12 13:30:00

renegat
Member
From: Europe
Registered: 2012-12-28
Posts: 100

[SOLVED] dhcpcd.service segfault after image restore from tarball

I encounter a repeating problem with dhcpcd.
As I do have to recover/clone systems with backuped archlinux regulary from tarballs now every time I start the new cloned system for the first time dhcpcd.service fails and blocks boot for several minutes.
With older backups (tarballs) this problem does not appear.

The tarballs were created using:

tar -cSp --acls --numeric-owner --atime-preserve --xattrs -f [/path/to/dest/filename.tar] .

from live-iso on the system to be cloned and recovered using

tar --acls --xattrs -xpf  [/path/to/dest/filename.tar]

After first boot of the recovered installation:

# journalctl -b

Okt 12 15:07:28 arch35 dhcpcd[6514]: dhcpcd-9.2.0 starting
Okt 12 15:07:28 arch35 kernel: dhcpcd[6518]: segfault at 18 ip 000055a2b3097e27 sp 00007ffd1d6fa698 error 4 in dhcpcd[55a2b3065000+3d000]
Okt 12 15:07:28 arch35 kernel: Code: 48 83 c4 08 b8 ff ff ff ff 5b 5d c3 48 8d 3d 90 f5 00 00 31 c0 67 e8 08 53 fd ff eb e3 66 0f 1f 44 00 00 48 8b 87 28 04 00 00 <ff> 60 >
Okt 12 15:07:28 arch35 systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Okt 12 15:07:28 arch35 systemd[1]: Started Process Core Dump (PID 6521/UID 0).
Okt 12 15:07:29 arch35 systemd-coredump[6522]: Process 6518 (dhcpcd) of user 0 dumped core.
                                               
                                               Stack trace of thread 6518:
                                               #0  0x000055a2b3097e27 dev_handle_data (dhcpcd + 0x3be27)
                                               #1  0x000055a2b306c716 eloop_start (dhcpcd + 0x10716)
                                               #2  0x000055a2b3065cba main (dhcpcd + 0x9cba)
                                               #3  0x00007f6c52ef6152 __libc_start_main (libc.so.6 + 0x28152)
                                               #4  0x000055a2b306697e _start (dhcpcd + 0xa97e)
Okt 12 15:07:29 arch35 systemd[1]: systemd-coredump@0-6521-0.service: Succeeded.
Okt 12 15:08:58 arch35 systemd[1]: dhcpcd.service: start operation timed out. Terminating.
# systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
     Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
     Active: failed (Result: timeout) since Mon 2020-10-12 15:09:08 CEST; 52s ago
    Process: 6514 ExecStart=/usr/bin/dhcpcd -q -b (code=killed, signal=KILL)

Okt 12 15:07:28 arch35 dhcpcd[6514]: dhcpcd-9.2.0 starting
Okt 12 15:08:58 arch35 systemd[1]: dhcpcd.service: start operation timed out. Terminating.
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: State 'stop-sigterm' timed out. Killing.
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: Killing process 6514 (dhcpcd) with signal SIGKILL.
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: Killing process 6517 (dhcpcd) with signal SIGKILL.
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: Killing process 6519 (dhcpcd) with signal SIGKILL.
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: Killing process 6520 (dhcpcd) with signal SIGKILL.
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: Control process exited, code=killed, status=9/KILL
Okt 12 15:09:08 arch35 systemd[1]: dhcpcd.service: Failed with result 'timeout'.
Okt 12 15:09:08 arch35 systemd[1]: Failed to start dhcpcd on all interfaces.

If I start dhcpcd manually as root in a terminal it works normal but as systemd-service it fails.
When I reinstall dhcpcd it will work as service again too.
Any idea what is going wrong?

[EDIT]: Clearification: The issue appears on first boot in the from tar recovered install until I reinstall dhcpcd.

[SOLVED]: "If Dhcpcd ≥ 9.0.0 is installed, exclude the /var/lib/dhcpcd/* directory as it mounts several system directories as sub-directories there." (from rsync archwiki article - applies for tar archives too)

Last edited by renegat (2021-12-30 08:57:26)

Offline

#2 2020-10-12 16:13:50

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 170

Re: [SOLVED] dhcpcd.service segfault after image restore from tarball

Your normal user hasn't permission to start the dhcpcd service or hasn't permission of the wireless card.


Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

Board footer

Powered by FluxBB