mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ivan Kalatchev" <ivan.kalatchev@esg.ca>
To: <linux-kernel@vger.kernel.org>
Subject: kernel 2.6.8 bug in fs/locks.c
Date: Fri, 1 Oct 2004 12:24:30 -0400	[thread overview]
Message-ID: <000001c4a7d3$21c62bb0$2e646434@ivans> (raw)


Hi all,

Application I'm developing has a web interface, so user can change
configuration file for this application using IE browser e.g.
I'm using pthreads for each user-application connections. To protect
configuration file from corruption I used file locking mechanism - fcntl
with F_WRLCK/F_RDLCK.
 And at one point after posting web page back immediately after browser
received it, I got this in dmesg:

------------[ cut here ]------------
kernel BUG at fs/locks.c:1726!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: hpac cdc_acm ohci_hcd usbcore e100
CPU:    0
EIP:    0060:[<c01555f1>]    Not tainted
EFLAGS: 00010246   (2.6.8)
EIP is at locks_remove_flock+0x69/0xbc
eax: c113d781   ebx: c34ecf4c   ecx: c34eceb0   edx: c1dbff6c
esi: c126f420   edi: c3fd0a40   ebp: c34eceb0   esp: c35b8f84
ds: 007b   es: 007b   ss: 0068
Process hdas (pid: 6875, threadinfo=c35b8000 task=c113d710)
Stack: c126f420 c126f420 c0142d13 c126f420 c126f420 00000007 00000000
bf5ff914
       c3c9ce60 c0142cdf c01513e9 00000009 00000007 00000009 c35b8000
c0105c4b
       00000009 00000007 bf5ff914 00000007 00000009 bf5ff6f4 000000dd
c010007b
Call Trace:
 [<c0142d13>] __fput+0x33/0x104
 [<c0142cdf>] fput+0x13/0x14
 [<c01513e9>] sys_fcntl64+0x69/0x70
 [<c0105c4b>] syscall_call+0x7/0xb
Code: 0f 0b be 06 de 4a 23 c0 89 d3 8b 13 85 d2 75 c7 ba 00 f0 ff

Configuration file was destroyed of course, as I opened it for writing with
truncation.
I'm changing code now to use pthread mutexes to control access to the
configuration file,
hopefully it will work better. So this message more like bug info, but I
would like
to be CC-ed  all answers/comments posted to the list in response to this
posting.

Regards,

_________________________________________________
Ivan Kalatchev

Senior Software Developer
Engineering Seismology Group Canada Inc.
ISO 9001-2000
1 Hyperion Court, Kingston,
Ontarion, Canada K7K 7G3
phone: (613) 548-8287 ext.247
fax:     (613) 548-8917



             reply	other threads:[~2004-10-01 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01 16:24 Ivan Kalatchev [this message]
2004-10-01 19:23 ` Chris Wright
2004-10-02  0:52   ` [TEST PATCH] " Chris Wright

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001c4a7d3$21c62bb0$2e646434@ivans' \
    --to=ivan.kalatchev@esg.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®