Running Eclipse or compilers or any application that sets file locks in a view causes Linux Kernel Panic

Technote (troubleshooting)


Problem(Abstract)

This technote explains why attempts to run any application that sets file locks in a version 2003.06.00 IBM Rational ClearCase view and VOB context causes Red Hat® Linux® with kernel 2.6.9-42 to panic.

Symptom

While running on Red Hat Enterprise Linux 4 (RHEL4) on kernel 2.6.9-22 and -34 applications that sets file locks in a VOB/View context worked as expected. After upgrading to 2.6.9-42 these same applications caused a kernel panic.

The following are examples of the output from a resulting crash:


Call Trace:

nfs_lock+0x0/0xc7 [nfs]
locks_remove_posix+0x8f/0x137
__fput+0x41/0x100
filp_close+0x59/0x5f
mvop_linux_close_kernel+0x18/0x1f [vnode]
mvop_linux_close+0x81/0xc9 [vnode]
mvfs_closev_ctx+0x15d/0x230 [mvfs]
vnode_fop_release+0x62/0x7d [vnode]
__fput+0x55/0x100
filp_close+0x59/0x5f
put_files_struct+0x57/0xc0
do_exit+0x245/0x404
sys_exit_group+0x0/0xd
get_signal_to_deliver+0x31e/0x346
do_signal+0x55/0xd9
autoremove_wake_function+0x0/0x2d
pipe_readv+0x225/0x29e
pipe_read+0x1c/0x20
vfs_read+0xb6/0xe2
sys_read+0x3c/0x62
do_notify_resume+0x28/0x38

OR

[ffffffff8018ca5a]  locks_remove_flock+125
[ffffffffa01cfb79]  lockd:nlmclnt_locks_release_private+33
[ffffffff8018c9d3]  locks_remove_posix+374
[ffffffffa02b06cb]  nfs:nfs_commit_inode+79
[ffffffff8017878d]  __fput+73
[ffffffff801773e8]  filp_close+103
[ffffffff80177471]  sys_close+130
[ffffffff801101c6]  system_call+126

Cause

The cause is a combination of two issues:

  1. Kernel Related Problem from Red Hat (kernel bug):

    http://rhn.redhat.com/errata/RHBA-2007-0791.html

    RIT117294-NFS randomly returns EINTR on lock removal and causes a panic condition within the Kernel.

    This issue has been confirmed by Red Hat to be a kernel bug caused by issues with the file system not handling file locking correctly.

    There is a current bug against this issue with Red Hat, #1361130.

  2. ClearCase Related Problem with MVFS: Defect APAR PK25224 was submitted to address the issue.

Resolving the problem

  1. Contact Red Hat to obtain a fix for the NFS kernel bug.

    This issue has been confirmed by RedHat to be a kernel bug caused by issues with the file system not handling file locking correctly. Refer to following errata kernel notes for more information concerning the bug:

    http://rhn.redhat.com/errata/RHBA-2007-0791.html

    ***IMPORTANT NOTE***
    Before you apply the above errata (or later erratas for RedHat Enterprise 4 U6, or later kernels beyond U6) to a ClearCase system with MVFS installed, you will be required to apply a fix to resolve the issue reported in APAR PK61579. Refer to technote 1296516 for further information.

  2. Apply the patches which resolve defect APAR PK25224. Review technote 1240506 for more details.


IMPORTANT: Both of the above fixes (Red Hat kernel and ClearCase MVFS) will be necessary to fully resolve this issue.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational ClearCase
VOB

Software version:

7.0

Operating system(s):

Linux

Reference #:

1257686

Modified date:

2013-07-22

Translate my page

Machine Translation

Content navigation