This is the mail archive of the glibc-bugs@sourceware.org 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 stdio/20598] New: fork clobbers file offsets


https://sourceware.org/bugzilla/show_bug.cgi?id=20598

            Bug ID: 20598
           Summary: fork clobbers file offsets
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
                CC: ppluzhnikov at google dot com
            Blocks: 16734
  Target Milestone: ---

Created attachment 9507
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9507&action=edit
Testcase

When a process calls fork while some stdio streams open the underlying file
offsets are modified in the child causing the parent to read from the wrong
offset on the next buffer underflow.  This was broken by commit
18d26750dd8fd328a78cf639fd0ec2494680a2a4.


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=16734
[Bug 16734] fopen calls mmap to allocate its buffer
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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