Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184962 - app-forensics/chkrootkit-0.47 crashes with segmentation fault due to a missing blank in the script
Summary: app-forensics/chkrootkit-0.47 crashes with segmentation fault due to a missin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
: 196493 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-11 15:20 UTC by barbaz
Modified: 2008-10-06 20:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
chkrootkit-0.48-some-overruns-fixes.patch (chkrootkit-0.48-some-overruns-fixes.patch,1.41 KB, patch)
2008-10-06 19:45 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description barbaz 2007-07-11 15:20:54 UTC
in /usr/sbin/chkrootkit (version 0.47) in line 181, a blank is missing in the line "chkutmp()" (should be: "chkutmp ()"). when the interpreter reaches that line, a segmentation fault occurs.

adding the missing blank fixes the problem.

Reproducible: Always

Steps to Reproduce:
1. # emerge =app-forensics/chkrootkit-0.47
2. # chkrootkit
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-20 08:01:16 UTC
*** Bug 196493 has been marked as a duplicate of this bug. ***
Comment 2 Hypnos 2007-10-20 18:16:54 UTC
(In reply to comment #1)
> *** Bug 196493 has been marked as a duplicate of this bug. ***
> 

The duplicate bug contains a patch that fixes the problem.  Something in the code trips a bug with the -O2 gcc optimization flag.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2008-10-06 19:45:23 UTC
Created attachment 167487 [details, diff]
chkrootkit-0.48-some-overruns-fixes.patch

Better show changes as a patch - easier to review.
And, please, attach changes to bugzilla - then we do not loose them.

BTW, could somebody provide test case as this crash is not reproducible on my system?
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-10-06 20:01:31 UTC
Although I failed to reproduce the issue, patch seems to be correct. Applied. Reopen bug if problem is still reproducible in >=chkrootkit-0.48-r1 and attach wtmp files so I could reproduce crash too. Thanks you bazbar for report and  Sourav Mandal for the fix.