Bug 814056 - sync() can't work and will hang up
Summary: sync() can't work and will hang up
Keywords:
Status: CLOSED DUPLICATE of bug 812588
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 17
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-19 06:59 UTC by Zhouping Liu
Modified: 2014-01-13 00:01 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-04-19 07:38:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zhouping Liu 2012-04-19 06:59:28 UTC
Description of problem:
when I did ltp test, there were some cases  blocked, at least I found sync() make the mistakes, and also it couldn't use 'Ctrl-C' or 'kill -9' to kill the process.

Version-Release number of selected component (if applicable):
[zliu@ZhoupingLiu mtest06]$ uname -ri
3.3.2-1.fc17.x86_64 x86_64
[zliu@ZhoupingLiu mtest06]$ rpm -q coreutils
coreutils-8.15-6.fc17.x86_6

How reproducible:
100%

Steps to Reproduce:
[zliu@ZhoupingLiu ~]$ cat test.c 
#include <unistd.h>
#include <stdio.h>

int main()
{
	printf("test sync()\n");

	sync();
	return 0;
}
[zliu@ZhoupingLiu zliu]# ./test 
test sync()


^C^C^

as the above, can't endup the process

Or you can directly run sync command to reproduce the issue:
[root@ZhoupingLiu zliu]# sync

^C^C^

Actual results:
the sync hang up

Expected results:
sync work fine

Additional info:
couldn't find the issue in RHEL7 Alpha and RHEL6.

Comment 1 Kamil Dudka 2012-04-19 07:38:11 UTC

*** This bug has been marked as a duplicate of bug 812588 ***


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