kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Filesystem and files getting corrupted
@ 2013-06-24 20:08 Daniel Hilst Selli
  2013-06-25 10:28 ` María Soler Heredia
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Daniel Hilst Selli @ 2013-06-24 20:08 UTC (permalink / raw)
  To: kernelnewbies

I'm working on an embedded project based on var-som-am35 from TI. [1]

I experiencing a lot of corruption from files and even the entire 
filesystem... is there any guide on how debug filesystems corruption?

We already tryied vfat and ext3 fs.. changed media, changed machines... 
The filesystem runs on mmc card, or on usb flash drive... There is a 
java aplication running on top of this filesystem, which uses JMS, that 
is very I/O agressive..

Cheers,

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Filesystem and files getting corrupted
  2013-06-24 20:08 Filesystem and files getting corrupted Daniel Hilst Selli
@ 2013-06-25 10:28 ` María Soler Heredia
  2013-06-25 16:02   ` Valdis.Kletnieks at vt.edu
  2013-06-25 14:52 ` Manish Katiyar
  2013-07-04  0:24 ` Peter Teoh
  2 siblings, 1 reply; 6+ messages in thread
From: María Soler Heredia @ 2013-06-25 10:28 UTC (permalink / raw)
  To: kernelnewbies

I'm really newbie and I don't know if this may help at all, but I googled
"corruption of the file system debug" and found
http://linux.die.net/man/8/debugfs

Maybe you can give it a try if you haven't already,
Mar?a.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130625/111771c4/attachment-0001.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Filesystem and files getting corrupted
  2013-06-24 20:08 Filesystem and files getting corrupted Daniel Hilst Selli
  2013-06-25 10:28 ` María Soler Heredia
@ 2013-06-25 14:52 ` Manish Katiyar
  2013-07-04  0:24 ` Peter Teoh
  2 siblings, 0 replies; 6+ messages in thread
From: Manish Katiyar @ 2013-06-25 14:52 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Jun 24, 2013 at 1:08 PM, Daniel Hilst Selli
<danielhilst@gmail.com> wrote:
> I'm working on an embedded project based on var-som-am35 from TI. [1]
>
> I experiencing a lot of corruption from files and even the entire
> filesystem... is there any guide on how debug filesystems corruption?
>
> We already tryied vfat and ext3 fs.. changed media, changed machines...

If both the filesystems are getting corrupted, there is a high chance
that it doesn't have to do anything with filesystem per se. There may
be some random module which is corrupting incore memory/structures,
and debugging that doesn't involve knowing filesystems specifics. To
find the culprit, you may have to identify the interesting things
related to corruption and narrow it down. Some things that can help
are :-

a) Is the corruption always happening at some particular offset of
page or on some specific filesystem metadata
b) What does the corruption look like, do structures get zeroed or get
filled with some value ? If its some particular address you can try
gdb watchpoints
c) What is the size of corruption. How much garbage is there.
Answering this will give you some hint about the structure which is
overwriting


> The filesystem runs on mmc card, or on usb flash drive... There is a
> java aplication running on top of this filesystem, which uses JMS, that
> is very I/O agressive..
>
> Cheers,
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



--
Thanks -
Manish

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Filesystem and files getting corrupted
  2013-06-25 10:28 ` María Soler Heredia
@ 2013-06-25 16:02   ` Valdis.Kletnieks at vt.edu
  0 siblings, 0 replies; 6+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2013-06-25 16:02 UTC (permalink / raw)
  To: kernelnewbies

On Tue, 25 Jun 2013 12:28:15 +0200, meccomaria at gmail.com said:
> I'm really newbie and I don't know if this may help at all, but I googled
> "corruption of the file system debug" and found
> http://linux.die.net/man/8/debugfs

That won't help you debug a filesystem - debugfs is *itself* a pseudo-filesystem
that allows kernel programmers to import/export large amounts of debugging
info from the kernel - it was created because there are some restrictions
in the procfs (for /proc) and sysfs (for /sys) filesystems that make them not
very useful for bulk data.

Most distros mount debugfs at /sys/kernel/debug - so everything under that
is handled by debugfs rather than sysfs.

For Daniel's original question:

> We already tryied vfat and ext3 fs.. changed media, changed machines...
> The filesystem runs on mmc card, or on usb flash drive...

This tends to indicate that the problem is *not* a filesystem issue - you're
just *noticing* corruption of your filesystem by some *other* kernel code.

I'd rebuild the kernel, and turn on every kernel debugging option related to
memory management you can find under the 'Kernel Hacking' menu.  In particular,
you want CONFIG_DEBUG_SLAB and also CONFIG_DEBUG_STACKOVERFLOW.  Also, many
kernel subsystems have debugging code for themselves, you may want to turn
on as many of them as you can.

Also, Manish Katiyar <mkatiyar@gmail.com> had some good suggestions to help
narrow down the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130625/f32122b9/attachment.bin 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Filesystem and files getting corrupted
  2013-06-24 20:08 Filesystem and files getting corrupted Daniel Hilst Selli
  2013-06-25 10:28 ` María Soler Heredia
  2013-06-25 14:52 ` Manish Katiyar
@ 2013-07-04  0:24 ` Peter Teoh
  2013-07-07 22:13   ` Daniel Hilst Selli
  2 siblings, 1 reply; 6+ messages in thread
From: Peter Teoh @ 2013-07-04  0:24 UTC (permalink / raw)
  To: kernelnewbies

any kernel debugging always start with dmesg output, please provide a
snapshot of that.   (preferably posting full listing at pastebin.com).

On Tue, Jun 25, 2013 at 4:08 AM, Daniel Hilst Selli
<danielhilst@gmail.com>wrote:

> I'm working on an embedded project based on var-som-am35 from TI. [1]
>
> I experiencing a lot of corruption from files and even the entire
> filesystem... is there any guide on how debug filesystems corruption?
>
> We already tryied vfat and ext3 fs.. changed media, changed machines...
> The filesystem runs on mmc card, or on usb flash drive... There is a
> java aplication running on top of this filesystem, which uses JMS, that
> is very I/O agressive..
>
> Cheers,
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130704/b38c7d46/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Filesystem and files getting corrupted
  2013-07-04  0:24 ` Peter Teoh
@ 2013-07-07 22:13   ` Daniel Hilst Selli
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Hilst Selli @ 2013-07-07 22:13 UTC (permalink / raw)
  To: kernelnewbies

On 07/04/2013 12:24 AM, Peter Teoh wrote:
> any kernel debugging always start with dmesg output, please provide a 
> snapshot of that.   (preferably posting full listing at pastebin.com 
> <http://pastebin.com>).
>
> On Tue, Jun 25, 2013 at 4:08 AM, Daniel Hilst Selli 
> <danielhilst at gmail.com <mailto:danielhilst@gmail.com>> wrote:
>
>     I'm working on an embedded project based on var-som-am35 from TI. [1]
>
>     I experiencing a lot of corruption from files and even the entire
>     filesystem... is there any guide on how debug filesystems corruption?
>
>     We already tryied vfat and ext3 fs.. changed media, changed
>     machines...
>     The filesystem runs on mmc card, or on usb flash drive... There is a
>     java aplication running on top of this filesystem, which uses JMS,
>     that
>     is very I/O agressive..
>
>     Cheers,
>
>     _______________________________________________
>     Kernelnewbies mailing list
>     Kernelnewbies at kernelnewbies.org
>     <mailto:Kernelnewbies@kernelnewbies.org>
>     http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
>
> -- 
> Regards,
> Peter Teoh 
Was a hardware problem...
dmesg won't show anything .. We know that the file get corrupted because 
why try to exctract the jar file and get an error like (not a valid 
zip/jar file)..

Since we use SoMs, we test the same module(the little board) on another 
hardware (the official development kit) and it works without problems.

Since is not broken, but out of specification.. it works for some time 
then starts to do bad things...

I enabled mmc debug, got a lot of output but no error.. bad CRC or 
something like that.. I think that configuration (since is for embedded 
system) is too silent..

Thanks
Cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130707/aefa2e07/attachment.html 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-07 22:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 20:08 Filesystem and files getting corrupted Daniel Hilst Selli
2013-06-25 10:28 ` María Soler Heredia
2013-06-25 16:02   ` Valdis.Kletnieks at vt.edu
2013-06-25 14:52 ` Manish Katiyar
2013-07-04  0:24 ` Peter Teoh
2013-07-07 22:13   ` Daniel Hilst Selli

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).