linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fredrik Andersson <nablaman@gmail.com>
To: linux-ext4@vger.kernel.org
Subject: Fwd: Ext4 bug with f
Date: Sun, 18 Oct 2009 17:47:25 +0200	[thread overview]
Message-ID: <a125a870910180847s5f3eaf6cxfe58e6ceb26419c6@mail.gmail.com> (raw)
In-Reply-To: <a125a870910180836i66781e1ey8113e7f8569f1fad@mail.gmail.com>

Hi, I'd like to report what I'm fairly certain is an ext4 bug. I hope
this is the right place to do so.

My program creates a big file (around 30 GB) with posix_fallocate (to
utilize extents), fills it with data and uses ftruncate to crop it to
its final size (usually somewhere between 20 and 25 GB).
The problem is that in around 5% of the cases, the program locks up
completely in a syscall. The process can thus not be killed even with
kill -9, and a reboot is all that will do.

Here is the contents of my /proc/PID/syscall:
76 0xee4a80 0x486d6aaf8 0x36390113f8 0x7fffc63cd350 0xecc050
0x7fffc63cd3f0 0x7fffc63cd5c8 0x36380e0cc7

Syscall 76 is as far as I can tell getrlimit, which I do not call. It
must have been called somewhere from ftruncate.

The file is on a software raid 0 mount with two disks, handled by
mdadm. I have reported the problem to the md people but they insist
it's an ext4 problem.

I have also tried closing the file and opening it again prior to the
ftruncate. No change.

There are no other strange phenomena whatsoever with ext4. This
problem only arises in this particular situation.

I'm running Fedora on an x86_64 system.
I have tried this on several kernel versions, the last one 2.6.31.1.
It has persisted all the way since the kernel that originally shipped
with Fedora 11.

Is this a bug/known problem? Thankful for any insights!

/Fredrik

       reply	other threads:[~2009-10-18 15:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a125a870910180836i66781e1ey8113e7f8569f1fad@mail.gmail.com>
2009-10-18 15:47 ` Fredrik Andersson [this message]
2009-10-18 15:57   ` Fwd: Ext4 bug with fallocate Eric Sandeen
2009-10-19  9:49     ` Fredrik Andersson
2009-10-20 16:49       ` Fredrik Andersson
2009-10-21  0:24         ` Mingming
2009-10-22  7:37           ` Fredrik Andersson
2009-10-26 10:43             ` Fredrik Andersson
2009-10-21  2:20       ` Eric Sandeen
2009-10-21  9:08         ` Fredrik Andersson
2009-10-27  4:42   ` Eric Sandeen
2009-10-27  8:17     ` Fredrik Andersson
2009-10-27 13:56       ` Eric Sandeen
2009-10-27 15:29         ` Fredrik Andersson
2009-10-27 15:37           ` Eric Sandeen

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=a125a870910180847s5f3eaf6cxfe58e6ceb26419c6@mail.gmail.com \
    --to=nablaman@gmail.com \
    --cc=linux-ext4@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;
as well as URLs for NNTP newsgroup(s).