Bug 4834 - Problems caused by 2 fcloses
Problems caused by 2 fcloses
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-09-01 14:05 EDT by sinnott
Modified: 2008-05-01 11:37 EDT (History)
0 users

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

Attachments (Terms of Use)

  None (edit)
Description sinnott 1999-09-01 14:05:16 EDT
I have software that compiled and ran under sun solaris and
Windows NT (both Intel and Alpha).  It had a bug in that it
opened a text file, read from it and then closed the file
twice.  On a later system call (either a time call or when
the time call was removed a fopen for write) the system got
a segmentation fault.  It seems that this bug is causing
problems in Linux that are not being handled properly.
Comment 1 Jeff Johnson 1999-09-01 17:42:59 EDT
This is a programmer error. Memory in the FILE structure is
dynamically freed on the first fclose causing the 2nd fclose
to segfault.

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