Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687012 - app-admin/sysstat-11.4.0: segfault on long mtab entries
Summary: app-admin/sysstat-11.4.0: segfault on long mtab entries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
: 687260 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-30 13:55 UTC by Alistair Boyle
Modified: 2019-07-28 20:26 UTC (History)
1 user (show)

See Also:
Package list:
=app-admin/sysstat-12.0.5
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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