Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 687012

Summary: app-admin/sysstat-11.4.0: segfault on long mtab entries
Product: Gentoo Linux Reporter: Alistair Boyle <alistair.js.boyle>
Component: StabilizationAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED FIXED    
Severity: normal CC: pacho
Priority: Normal Keywords: STABLEREQ
Version: unspecifiedFlags: stable-bot: sanity-check+
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
=app-admin/sysstat-12.0.5
Runtime testing required: ---

Description Alistair Boyle 2019-05-30 13:55:55 UTC
Long entries in /etc/mtab, for example generated by overlay2 used by docker, cause sa1 and other sysstat tools to segfault. New upstream releases have this bug fixed circa 2017.

https://github.com/dpayne/cli-visualizer/issues/108

Reproducible: Always

Steps to Reproduce:
1. Install app-admin/systat-11.4.0 (current default stable version)
2. Install docker and use the new overlay2 disk format (current default)
3. Run "/usr/lib64/sa/sa1 1 1" --> segfault
Actual Results:  
Segfault.

Expected Results:  
No segfault.

Running with =app-admin/sysstat-12.0.4, the segfault no longer occurs, as the bug has been fixed upstream.
Comment 1 Alistair Boyle 2019-05-30 13:58:46 UTC
with sysstat-11.4.0
# strace -s 100 /usr/lib64/sa/sadc 1 1
<-snip->
> read(3, "LYSED7OCAVLC2HJ5D4NL3YWAJ:/var/lib/docker/overlay2
> /l/UMOJCM2TWBGRBDWTJGDURK2FZJ:/var/lib/docker/over"..., 1024) = 1024
> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1} ---
> +++ killed by SIGSEGV +++
> Segmentation fault
Comment 2 Rolf Eike Beer archtester 2019-06-01 08:11:21 UTC
sparc stable
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-06-03 14:55:24 UTC
*** Bug 687260 has been marked as a duplicate of this bug. ***
Comment 4 Agostino Sarubbo gentoo-dev 2019-06-04 14:48:41 UTC
ppc64 stable
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-06-04 15:19:20 UTC
x86 stable
Comment 6 Agostino Sarubbo gentoo-dev 2019-06-05 06:49:32 UTC
amd64 stable
Comment 7 Agostino Sarubbo gentoo-dev 2019-06-05 07:14:47 UTC
ppc stable
Comment 8 Agostino Sarubbo gentoo-dev 2019-06-06 06:48:51 UTC
alpha stable
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2019-06-08 13:32:48 UTC
Stable for HPPA.
Comment 10 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-07-28 20:26:11 UTC
arm stable