Bug 489672

Summary: flock segfaults when file name is not given
Product: [Fedora] Fedora Reporter: Milos Malik <mmalik>
Component: util-linux-ngAssignee: Karel Zak <kzak>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: kzak, msusta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.14.1-3.3.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 513369 (view as bug list) Environment:
Last Closed: 2009-06-19 13:38:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 513369    
Attachments:
Description Flags
output of strace when running flock -s
none
output of ltrace when running flock -s none

Description Milos Malik 2009-03-11 10:47:04 UTC
Description of problem:
Running flock with an option which requires a file name leads to segfault.

Version-Release number of selected component (if applicable):
util-linux-ng-2.14.1-3.2.fc10

How reproducible:
always

Steps to Reproduce:
$ flock -s
Segmentation fault
$ flock -x
Segmentation fault
$ flock -u
Segmentation fault
$ flock -n
Segmentation fault
$ flock -o
Segmentation fault
  
Actual results:
a lot of segfaults

Expected results:
no segfaults

Additional info:

Comment 1 Milos Malik 2009-03-11 10:52:36 UTC
Created attachment 334776 [details]
output of strace when running flock -s

Comment 2 Milos Malik 2009-03-11 10:53:39 UTC
Created attachment 334777 [details]
output of ltrace when running flock -s

Comment 3 Milos Malik 2009-03-11 10:56:32 UTC
util-linux-2.13-0.47.el5 in RHEL-5.3 is also affected.

Comment 4 Karel Zak 2009-03-13 10:11:56 UTC
Good catch. Thanks. Fixed in upstream tree.

Comment 5 Karel Zak 2009-03-19 09:25:28 UTC
Fixed in rawhide.

Comment 7 Fedora Update System 2009-06-01 12:08:09 UTC
util-linux-ng-2.14.1-3.3.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/util-linux-ng-2.14.1-3.3.fc10

Comment 8 Fedora Update System 2009-06-02 14:29:35 UTC
util-linux-ng-2.14.1-3.3.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update util-linux-ng'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-5775

Comment 9 Fedora Update System 2009-06-19 13:38:32 UTC
util-linux-ng-2.14.1-3.3.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.