All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Cryptooctoploid <cryptooctoploid@gmail.com>
Cc: Theodore Tso <tytso@mit.edu>, Roc Valles <vallesroc@gmail.com>,
	linux-ext4@vger.kernel.org
Subject: Re: data corruption with ext4 (from 2.6.27.4) exposed by rtorrent
Date: Wed, 05 Nov 2008 10:16:49 -0600	[thread overview]
Message-ID: <4911C6F1.5090107@redhat.com> (raw)
In-Reply-To: <319012f0811050534i27b7dce1t8120b3a343844adc@mail.gmail.com>

Cryptooctoploid wrote:
> On Mon, Nov 3, 2008 at 2:40 PM, Theodore Tso <tytso@mit.edu> wrote:
>> On Mon, Nov 03, 2008 at 12:42:11PM +0000, Roc Valles wrote:
>>> Some person already reported this. I'm having the same problem.
>>> http://marc.info/?l=linux-ext4&m=122557056518246&w=2
>>>
>>> rtorrent is a bittorrent client that makes heavy use of mmap instead
>>> of read/write to avoid needless duplication of data. It has exposed
>>> other bugs in the past (mmap bug in 2.6.19).
>>> http://libtorrent.rakshasa.no
>>> Downloading a big torrent (>2GB) with rtorrent triggers it more times
>>> than not. The bigger the torrent, the higher the likeliness of
>>> failure. When the torrent is finished, if a hash check is forced by
>>> pressing control-r on the torrent, some blocks will fail.
>> Can both of you send the output of "dumpe2fs -h /dev/<disk device>" of
>> the filesystem in question?  The thing which I'm most interested in is
>> whether the extents feature was enabled or not.  (i.e., was this a
>> freshly made ext4 filesystem, or a ext3 filesystem mounted under ext4,
>> and with which features eanbled?)
>>
> 
> I tested this further and it turned out that this bug is not extents
> related. I get the same hash failures on a partition formatted with:
> -O "^extent".

Thanks, that's good information.

> Besides the torrent failures,  ext4 also managed to corrupt two
> dspam sqlite3 databases on my system. (After the corruption I
> get the following error:
> *** glibc detected *** dspam: free(): invalid pointer: 0x0000000001e71c58 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x7fcd1f941af6]
> /lib/libc.so.6(cfree+0xbd)[0x7fcd1f942f3d]
> /usr/lib64/dspam/libsqlite3_drv.so(_ds_setall_spamrecords+0x395)[0x7fcd1ea03075]
> /usr/lib/libdspam.so.7(_ds_operate+0x400)[0x7fcd1fc3c710]
> /usr/lib/libdspam.so.7(dspam_process+0x1d9)[0x7fcd1fc3cf49]
> dspam(process_message+0xb49)[0x408579]
> dspam(process_users+0x57d)[0x40902d]
> dspam(main+0x2c2)[0x409832]
> /lib/libc.so.6(__libc_start_main+0xfd)[0x7fcd1f8e848d]
> dspam[0x402f79
> and the only solution is to restore the database from ext3 backup)

I think this would more likely indicate a userspace bug, though, not
something related to ext4.

-Eric

> My conclusion is that ext4 is not yet ready for prime time.
> I moved all my data back to ext3.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2008-11-05 16:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 12:42 data corruption with ext4 (from 2.6.27.4) exposed by rtorrent Roc Valles
2008-11-03 13:40 ` Theodore Tso
2008-11-03 13:47   ` Cryptooctoploid
2008-11-03 14:09   ` Roc Valles
2008-11-03 15:34   ` Cryptooctoploid
2008-11-03 15:51     ` Jindrich Makovicka
2008-11-05 19:44       ` Solofo.Ramangalahy
2008-11-05 19:57         ` Theodore Tso
2008-11-05 20:09           ` Solofo.Ramangalahy
2008-11-05 20:21             ` Solofo.Ramangalahy
2008-11-05 20:42               ` Theodore Tso
2008-11-05 20:52                 ` Solofo.Ramangalahy
2008-11-06 10:15                 ` Aneesh Kumar K.V
2008-11-06 10:36                   ` Solofo.Ramangalahy
2008-11-06 13:47                     ` Solofo.Ramangalahy
2008-11-06 13:59         ` Aneesh Kumar K.V
2008-11-05 13:34   ` Cryptooctoploid
2008-11-05 16:16     ` Eric Sandeen [this message]
2008-11-05 17:25     ` Theodore Tso
2008-11-05 20:13       ` Cryptooctoploid
2008-11-06  9:00       ` Roc Valles
2008-11-06  9:31       ` Cryptooctoploid

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=4911C6F1.5090107@redhat.com \
    --to=sandeen@redhat.com \
    --cc=cryptooctoploid@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    --cc=vallesroc@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.