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

Bug 87585

Summary: Gnu System accounting tools produces dummy output
Product: Gentoo Linux Reporter: Jakub Drwal <kubel>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jakub Drwal 2005-04-01 10:16:41 UTC
twincept jdr # uname -a
Linux twincept 2.6.11-gentoo-r4-jdr1 #1 SMP Fri Mar 18 22:47:54 CET 2005 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz GenuineIntel GNU/Linux

twincept jdr # emerge -pv acct

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-process/acct-6.3.5  0 kB

Total size of downloads: 0 kB

twincept jdr # /etc/init.d/acct start
 * Starting accounting...                                             [ ok ]

...

twincept ~ # lastcomm |head -20
head: `-20' option is obsolete; use `-n 20' since this will be removed in the future
s9                      root     ??         0.60 secs Thu Feb 16 05:17
s9                      root     ??         0.60 secs Thu Feb 16 05:17
s9                      root     ??         0.60 secs Thu Feb 16 05:17
s9                      root     ??         0.60 secs Thu Feb 16 05:17
s9                      root     ??         0.60 secs Thu Feb 16 05:17
?$                      34816    ??         0.00 secs Thu Jan  1 01:00
?$                      34816    ??         0.00 secs Thu Jan  1 01:00
X?                      34816    ??         0.00 secs Thu Jan  1 01:00
?$                      34816    ??         0.00 secs Thu Jan  1 01:00
?$                      34816    ??         0.00 secs Thu Jan  1 01:00
?$                      34816    ??         0.00 secs Thu Jan  1 01:00
??                      34816    ??         0.00 secs Thu Jan  1 01:00
?$                      34816    ??         0.00 secs Thu Jan  1 01:00
??                      34816    ??         0.00 secs Thu Jan  1 01:00
??                      34816    ??         0.00 secs Thu Jan  1 01:00
u$                      34816    ??         0.00 secs Thu Jan  1 01:00
??                      34816    ??         0.00 secs Thu Jan  1 01:00
u$                      34816    ??         0.00 secs Thu Jan  1 01:00
u$                      34816    ??         0.00 secs Thu Jan  1 01:00
u$                      34816    ??         0.00 secs Thu Jan  1 01:00

What's this? I figured out, that on x86 works fine.

Reproducible: Always
Steps to Reproduce:
Just turn on accounting, enter a few commands, and try lastcomm ;-)


Expected Results:  
It should give me list of issued commands.

# emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-
r0, 2.6.11-gentoo-r4-jdr1 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4-jdr1 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 15 2005, 
16:43:25)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -msse -m3dnow -msse2 -m64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share
/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -msse -m3dnow -msse2 -m64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sfperms userpriv"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl http://src.gentoo.pl 
http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acpi berkdb bitmap-fonts crypt curl font-server fortran gdbm gif 
gpm imagemagick ipv6 jp2 jpeg ldap lzw lzw-tiff mp3 mysql ncurses nls opengl 
oss pam perl png postgres python readline snmp ssl tcpd tiff truetype truetype-
fonts type1-fonts usb userlocales xml2 xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-01 11:38:05 UTC
could you please try sys-process/acct-6.3.5-r1 to be certain?
it contains support for the new v3 accounting format in newer kernels.
Comment 2 Jakub Drwal 2005-04-01 12:13:20 UTC
Works great, thanks! I've also checked acct changelog, and noticed, that there was previously bug report on this issue.

*** This bug has been marked as a duplicate of 79665 ***