Bug 104044 - tuxstat SIGSEGV
Summary: tuxstat SIGSEGV
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: tux
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ingo Molnar
QA Contact: Brian Brock
URL:
Whiteboard:
: 107057 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-09 13:19 UTC by Joe Orton
Modified: 2007-11-30 22:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-15 21:40:15 UTC
Target Upstream Version:
Embargoed:


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

Description Joe Orton 2003-09-09 13:19:46 UTC
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
(gdb)

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 13:21:08 UTC
Created attachment 94324 [details]
/proc/net/tux/stat

Comment 3 Ingo Molnar 2005-09-15 21:41:16 UTC
*** 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.