swupd-client
swupd-client copied to clipboard
swupd segfaults when resuming failed download
Describe the bug When download fails, swupd tries to resume dowload. its segfaults when download is trying to download. My internet is unstable and if internet returns,download cannot continue.
[~] $ sudo swupd bundle-add java-basic
Password:
Loading required manifests...
Downloading packs (124.39 MB) for:
- java-basic
Error: Curl - Communicating with server timed out - 'https://cdn.download.clearlinux.org/update/32560/pack-java-basic-from-0.tar'
Finishing packs extraction...
[100%]
Curl - Starting download retry #1 for https://cdn.download.clearlinux.org/update/32560/pack-java-basic-from-0.tar
Curl - Resuming download for 'https://cdn.download.clearlinux.org/update/32560/pack-java-basic-from-0.tar'
Violación de segmento
To Reproduce
- Execute
sudo swupd bundle-add <heavy bundle, ej java-basic>
- Internet gets down due to unstability.
- swupd tries to resume due internet or ISP unstable.
- segmentation fault triggered.
Expected behavior Download must resume.
Environment (please complete the following information):
- Clear Linux OS Version:
Distribution: Clear Linux OS
Installed version: 32600
Version URL: https://cdn.download.clearlinux.org/update
Content URL: https://cdn.download.clearlinux.org/update
- Platform: [hardware, docker, vm information ]
[~/sources] $ sudo ./inxi -v 8 -xxx
System: Host: 15-bs015dx Kernel: 4.19.109-122.lts2018 x86_64 bits: 64 compiler: gcc v: 9.2.1
parameters: initrd=\EFI\org.clearlinux\freestanding-00-intel-ucode.cpio
initrd=\EFI\org.clearlinux\freestanding-i915-firmware.cpio.xz
root=PARTUUID=7f48286b-11b7-4547-a7b1-dbe804583697 quiet console=tty0 console=ttyS0,115200n8
cryptomgr.notests init=/usr/bin/initra-desktop initcall_debug intel_iommu=igfx_off kvm-intel.nested=1
no_timer_check noreplace-smp rcu_nocbs=0-64 rcupdate.rcu_expedited=1 rootfstype=ext4,btrfs,xfs,f2fs
tsc=reliable rw module.sig_unenforce
Console: tty 1 wm: gnome-shell dm: GDM 3.34.1 Distro: Clear Linux OS 32600 1
Machine: Type: Laptop System: HP product: HP Laptop 15-bs015dx v: Type1ProductConfigId serial: ******* Chassis:
type: 10 serial: *******
Mobo: HP model: 832A v: 23.70 serial: ******* UEFI: Insyde v: F.52 date: 03/04/2019
Memory: RAM: total: 7.77 GiB used: 1.29 GiB (16.6%)
Array-1: capacity: 32 GiB slots: 2 EC: None max module size: 16 GiB note: est.
Device-1: Bottom-slot 1(left) size: 8 GiB speed: 2133 MT/s type: DDR4
detail: synchronous unbuffered (unregistered) bus width: 64 bits total: 64 bits manufacturer: Samsung
part-no: M471A1K43CB1-CRC serial: *******
Device-2: Bottom-slot 2(right) size: No Module Installed
PCI Slots: Slot: 1 type: x1 PCI Express x1 J6C1 status: In Use length: Other
Slot: 2 type: x1 PCI Express x1 J6D2 status: Available length: Other
Slot: 3 type: x1 PCI Express x1 J7C1 status: Available length: Other
Slot: 4 type: x1 PCI Express x1 J7D1 status: Available length: Other
Slot: 5 type: x4 PCI Express x4 J8C1 status: Available length: Other
CPU: Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Amber Lake family: 6
model-id: 8E (142) stepping: 9 microcode: CA L1 cache: 128 KiB L2 cache: 3072 KiB L3 cache: 3072 KiB
bogomips: 21696
Speed: 1968 MHz min/max: 400/2500 MHz Core speeds (MHz): 1: 1968 2: 1793 3: 2423 4: 1874
Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl
nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
tsc_adjust tsc_deadline_timer tsc_known_freq vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves
xtopology xtpr
Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0
chip ID: 8086:5916
Display: server: X.org 1.20.7 driver: modesetting unloaded: fbdev,vesa alternate: intel
compositor: gnome-shell resolution: <xdpyinfo missing>
OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.1.0-devel direct render: Yes
Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
bus ID: 00:1f.3 chip ID: 8086:9d71
Sound Server: ALSA v: k4.19.109-122.lts2018
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169
v: kernel port: 4000 bus ID: 01:00.0 chip ID: 10ec:8168
IF: eno1 state: up speed: 100 Mbps duplex: full mac: ac:e2:d3:74:06:aa
IP v4: 192.168.0.107/24 type: dynamic noprefixroute scope: global broadcast: 192.168.0.255
IP v6: fe80::7712:7d64:d61d:167a/64 type: noprefixroute scope: link
Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter vendor: Hewlett-Packard driver: rtl8723de v: N/A
port: 3000 bus ID: 02:00.0 chip ID: 10ec:d723
IF: wlo1 state: down mac: fe:c4:01:38:66:6a
Device-3: Realtek 802.11n WLAN Adapter type: USB driver: usb-network bus ID: 1-4:2 chip ID: 0bda:b009
serial: *******
WAN IP: 190.78.237.94
Drives: Local Storage: total: 931.51 GiB used: 23.16 GiB (2.5%)
ID-1: /dev/sda vendor: Western Digital model: WD10JPVX-60JC3T1 size: 931.51 GiB block size: physical: 4096 B
logical: 512 B sata: 3.0 speed: 6.0 Gb/s rotation: 5400 rpm serial: ******* rev: 1A02 temp: 41 C
scheme: GPT
SMART: yes state: enabled health: PASSED on: 319d 4h cycles: 2641 Old-Age: g-sense error rate: 157
write error rate: 100 threshold: 100
Optical-1: /dev/sr0 vendor: hp model: DVDRW DA8AESH rev: XH6M dev-links: cdrom
Features: speed: 24 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r state: running
RAID: Message: No RAID data was found.
Partition: ID-1: / raw size: 49.81 GiB size: 48.78 GiB (97.93%) used: 23.16 GiB (47.5%) fs: ext4 block size: 4096 B
dev: /dev/sda7 label: N/A uuid: 29208e20-7ef6-44f5-9bb9-eae57d4a8346
ID-2: swap-1 size: 9.50 GiB used: 0 KiB (0.0%) fs: swap swappiness: 10 (default 60)
cache pressure: 100 (default) dev: /dev/sda9 label: N/A uuid: 52d9e89b-c7a5-47f7-b496-3add8b63ce3d
Unmounted: ID-1: /dev/sda1 size: 501.0 MiB fs: vfat label: N/A uuid: 7C1C-B3A8
ID-2: /dev/sda10 size: 124.03 GiB fs: ext4 label: [OS-GENTOO] uuid: 6d65fd88-881d-4651-9c5d-2b97b6c49f12
ID-3: /dev/sda12 size: 979.0 MiB fs: ntfs label: Windows RE tools uuid: F4D249D8D249A02A
ID-4: /dev/sda2 size: 16.0 MiB fs: N/A label: N/A uuid: N/A
ID-5: /dev/sda3 size: 506.04 GiB fs: ntfs label: Windows uuid: B2320E16320DE069
ID-6: /dev/sda4 size: 100.00 GiB fs: ntfs label: Respaldo uuid: 2E62E30462E2D01F
ID-7: /dev/sda5 size: 139.70 GiB fs: apfs label: N/A uuid: da7d483d-6333-49d5-8a9a-f872dc2cdfdb
ID-8: /dev/sda6 size: 500.0 MiB fs: vfat label: N/A uuid: 951C-88E8
ID-9: /dev/sda8 size: 500.0 MiB fs: ext2 label: N/A uuid: 9c018b88-658b-409d-9317-38529826e6a0
USB: Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002
Device-1: 1-4:2 info: Realtek 802.11n WLAN Adapter type: Bluetooth driver: N/A interfaces: 2 rev: 1.1
speed: 12 Mb/s chip ID: 0bda:b009 serial: *******
Device-2: 1-5:3 info: Quanta HP Webcam type: Video driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s
chip ID: 0408:5220 serial: 0x0001
Device-3: 1-6:4 info: Elan Micro Touchscreen type: HID driver: hid-multitouch,usbhid interfaces: 1 rev: 2.0
speed: 12 Mb/s chip ID: 04f3:250e
Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s chip ID: 1d6b:0003
Sensors: System Temperatures: cpu: 41.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos: Alert: No repo data detected. Does inxi support your package manager?
Processes: CPU top: 5
1: cpu: 3.5% command: chrome pid: 133460 mem: 129.8 MiB (1.6%)
2: cpu: 1.8% command: gnome-shell pid: 1080 mem: 218.1 MiB (2.7%)
3: cpu: 1.4% command: chrome pid: 139933 mem: 118.1 MiB (1.4%)
4: cpu: 1.0% command: cpufreq-service started by: gjs pid: 1197 mem: 34.2 MiB (0.4%)
5: cpu: 0.9% command: chrome pid: 1860 mem: 187.8 MiB (2.3%)
Memory top: 5
1: mem: 353.5 MiB (4.4%) command: chrome pid: 1718 cpu: 0.8%
2: mem: 220.1 MiB (2.7%) command: chrome pid: 1919 cpu: 0.6%
3: mem: 218.1 MiB (2.7%) command: gnome-shell pid: 1080 cpu: 1.8%
4: mem: 187.8 MiB (2.3%) command: chrome pid: 1860 cpu: 0.9%
5: mem: 129.8 MiB (1.6%) command: chrome pid: 133460 cpu: 3.5%
Info: Processes: 199 Uptime: 5h 27m Init: systemd v: 244 Compilers: gcc: 9.3.1 clang: 9.0.1 Shell: bash (sudo)
v: 5.0.16 running in: gnome-terminal inxi: 3.0.38
@md500 if you are still able to reproduce this problem, can you please use the --debug
flag and copy the output?