This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/20598] New: fork clobbers file offsets
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 12 Sep 2016 10:12:55 +0000
- Subject: [Bug stdio/20598] New: fork clobbers file offsets
- Auto-submitted: auto-generated
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.