Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 104044 - tuxstat SIGSEGV
tuxstat SIGSEGV
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: tux (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ingo Molnar
Brian Brock
: 107057 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2003-09-09 09:19 EDT by Joe Orton
Modified: 2007-11-30 17:06 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-15 17:40:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
/proc/net/tux/stat (2.00 KB, text/plain)
2003-09-09 09:21 EDT, Joe Orton
no flags Details

  None (edit)
Description Joe Orton 2003-09-09 09:19:46 EDT
Just testing tux; tuxstat always crashes for me.

# gdb /usr/sbin/tuxstat
(gdb) run
Starting program: /usr/sbin/tuxstat
Program received signal SIGSEGV, Segmentation fault.
0x004ca1d7 in rawmemchr () from /lib/tls/libc.so.6
(gdb) where
#0  0x004ca1d7 in rawmemchr () from /lib/tls/libc.so.6
#1  0x085c9613 in ?? ()
#2  0x004be200 in _IO_str_init_static_internal () from /lib/tls/libc.so.6
#3  0x004b19e7 in vsscanf () from /lib/tls/libc.so.6
#4  0x004ac8ad in sscanf () from /lib/tls/libc.so.6
#5  0x080486a2 in main (argc=1, argv=0x85c9613) at tuxstat.c:79

sscanf(tmp, "%i\n%n", &objectname_len, &parsed_chars);

at which point tmp = buf + 61 and len = 61 i.e. the sscanf is reading
past the end of the read() dat.

I'll attach my /proc/net/tux/stat.
Comment 1 Joe Orton 2003-09-09 09:21:08 EDT
Created attachment 94324 [details]
Comment 3 Ingo Molnar 2005-09-15 17:41:16 EDT
*** Bug 107057 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.