Bug 267532

Summary: archivers/urbackup-client: segfaults when connecting to server
Product: Ports & Packages Reporter: Sjack <jac>
Component: Individual Port(s)Assignee: Nuno Teixeira <eduardo>
Status: Closed FIXED    
Severity: Affects Many People CC: dpetrov67, eduardo, ek, fernape
Priority: --- Keywords: needs-patch
Version: LatestFlags: eduardo: maintainer-feedback-
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266531

Description Sjack 2022-11-02 18:27:54 UTC
Urbackup_client (2.5.20.0_1)core dumps, when connecting to server (2.5.26).
core dumped with a signal 11 segmentation fault.

Updated my poudriere package tree and updated the urbackup-client on that machine, which core dumped when connecting to the urbackup-server.
Repeated the process on a V-box instance with the same result see below.

machine stuff from top of top:
last pid:  1045;  load averages:  0.37,  0.31,  0.27                                                                                                              up 0+00:36:02  08:26:26
21 processes:  1 running, 20 sleeping
CPU:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
Mem: 15M Active, 34M Inact, 419M Wired, 15G Free
ARC: 98M Total, 17M MFU, 78M MRU, 587K Header, 2223K Other
     69M Compressed, 171M Uncompressed, 2.46:1 Ratio
Swap: 2048M Total, 2048M Free

urbackup log
2022-11-02 07:59:48: FileSrv: Binding UDP socket at port 35622...
2022-11-02 07:59:48: FileSrv: done.
2022-11-02 07:59:48: FileSrv: Binding ipv6 UDP socket at port 35622...
2022-11-02 07:59:48: FileSrv: done.
2022-11-02 07:59:48: ERROR: Error joining ipv6 multicast group ff12::f894:d:dd00:ef91
2022-11-02 07:59:48: urbackupserver: Server started up successfully!
2022-11-02 07:59:48: FileSrv: Servername: -test-
2022-11-02 07:59:48: FileSrv: Server started up successfully
2022-11-02 07:59:48: Started UrBackupClient Backend...
2022-11-02 07:59:48: FileSrv: UDP Thread started
2022-11-02 07:59:49: Looking for old Sessions... 2 sessions
2022-11-02 07:59:49: Internet mode not enabled
2022-11-02 08:00:20: urbackupserver: No available slots... starting new Worker
2022-11-02 08:00:20: ClientService cmd: #---------------------#ADD IDENTITY
2022-11-02 08:00:20: rc=0 hasError=true state=0
2022-11-02 08:00:20: ClientService cmd: #---------------------#GET CHALLENGE with_enc=1

snipped from all.log
Nov  2 08:00:21 test kernel: pid 959 (urbackupclientbacke), jid 0, uid 0: exited on signal 11 (core dumped)

core dump
-rw-------  1 root  wheel  16265216 Nov  2 08:00:20 2022 /var/urbackupclientbacke.core
Comment 1 ek 2023-02-23 02:11:59 UTC
I am seeing this exact same problem.

After quite a bit of troubleshooting and trying from scratch (in order to see if it was previous settings/configurations), it appears the segfault happens when either a) A new host is added and a backup is attempted or b) trying to edit the backup settings/exclusions on the server-side in either the client or group configuration for said host once added.

I also get the core dump in /var/urbackupclientbacke.core but I haven't been able to parse it yet (gdb is missing at the moment on the client side). I'm certainly willing to help continue to troubleshoot. Just tell me what you'd like me to provide.