Bug 2089 - gets segv on /dev/ttyS1; clobbers stack; Thinkpad380ED
gets segv on /dev/ttyS1; clobbers stack; Thinkpad380ED
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: rhs-hwdiag (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-09 11:51 EDT by Marty Shannon
Modified: 2014-03-16 22:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-08-09 14:27:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marty Shannon 1999-04-09 11:51:45 EDT
rhs-hwdiag-0.35-2 gets a segmentation violation during/after
checking (the non-existant) /dev/ttyS1 on my IBM ThinkPad
380ED.  It manages to trash the stack (it shows "#0
0xff00ff00 in ?? ()" in a gdb stack trace).  Running it
again (under gdb), it fails again in a similar way, showing
"#0 0xff00ff in ?? ()" in the stack trace.
Comment 1 Cristian Gafton 1999-04-09 14:21:59 EDT
assigned to notting
Comment 2 Bill Nottingham 1999-05-24 11:39:59 EDT
can you rebuild this with debugging symbols and get a stack
trace?
Comment 3 Bill Nottingham 1999-06-23 17:20:59 EDT
closed due to lack of input.
Comment 4 Marty Shannon 1999-08-07 12:43:59 EDT
I just discovered by accident that hwdiag exhibits similar behavior
when run with the ide-scsi module loaded.  I'll track down some more
details & report what I find.  (SMP: dual PII, 768Meg RAM, 3 IDE disk,
1 IDE cdrom, Adaptec 3940 with 1 wide drive)
Comment 5 Marty Shannon 1999-08-07 12:58:59 EDT
Found it.  In lib/devprobe.c line 138, strdup() can be called with
s->fields[i]->value == 0.  If that call to strdup() is made
conditional on the value of s->fields[i]->value, all is happy
(although the CLASS field will be empty for the CDROM).
Comment 6 Bill Nottingham 1999-08-09 14:27:59 EDT
fixed in rhs-hwdiag-0.36-3, which will be in next Raw Hide
release.

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