This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1078] New: simple I/O program cause segfault in fwrite()


find attached a simple program that will cause a segfault in fwrite()

the conditions to reproduce seem to be:
output size > 4096
input size > 4096
fopen a file with w+ mode
write a little
read a little (with a limit >4096)
write a lot (more than 4096)

if any of these steps are omitted, then the test case works fine

tested on debian/x86/unstable with glibc-2.3.2 (debian ver ds1.22) and
gentoo/amd64/unstable with glibc-2.3.5

gcc version did not seem to matter as diff versions of 3.3.x, 3.4.x and 4.0.x
all failed

-- 
           Summary: simple I/O program cause segfault in fwrite()
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: vapier at gentoo dot org
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i386-linux x86_64-linux


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1078

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]