Opened 8 years ago

Last modified 7 years ago

#7918 new bug

Assert Failed when copying to FAT

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: R1
Component: File Systems/FAT Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is hrev42466 gcc2hybrid.

I have these KDLs quite regularly. Now I had a camera ready to take a picture. I hope it's not to blurry at the edges...

After rebooting I find none of the new files I copied, but files I have deleted the last time. Though these files seem to be corrupted. Emptying Trash results in another KDL, see #7003.

It's a really annoying bug, as I keep having to format my USB stick to FAT32 (for which I have to boot into Ubuntu...). Also it keeps me from accessing backup HDs with music etc...

Is this related to #5362?

Attachments (6)

FileCopyKDL.jpg (701.9 KB ) - added by humdinger 8 years ago.
The KDL
FileCopyBacktrace.jpg (1.1 MB ) - added by humdinger 8 years ago.
The backtrace
KDL-copy-to-FAT32-USB.txt (8.6 KB ) - added by humdinger 8 years ago.
syslog
DoublyLinkedList.JPG (1.8 MB ) - added by beos_zealot 8 years ago.
DoublyLinkedList-515-line.JPG (1.2 MB ) - added by beos_zealot 8 years ago.
IMG_0013.JPG (3.5 MB ) - added by diver 7 years ago.

Change History (13)

by humdinger, 8 years ago

Attachment: FileCopyKDL.jpg added

The KDL

by humdinger, 8 years ago

Attachment: FileCopyBacktrace.jpg added

The backtrace

comment:1 by axeld, 8 years ago

I don't think so, it more looks like #2690 again, or a new variation of that one. Since it's reproducible for you, is that a configuration that can be brought to the next BeGeistert?

comment:2 by axeld, 8 years ago

BTW, there is the "mkdos" command in Haiku (not sure it's part of the image) that can initialize FAT32 as well. Someone just needs to convert it into an add-on to make it available in DriveSetup.

in reply to:  1 comment:3 by humdinger, 8 years ago

Replying to axeld:

I don't think so, it more looks like #2690 again, or a new variation of that one. Since it's reproducible for you, is that a configuration that can be brought to the next BeGeistert?

You bet! I'll be pestering you about that in about 10 weeks then... :)
mkdos is in the image and does even work, thanks for the hint.

comment:4 by humdinger, 8 years ago

I attach another syslog after recovering from KDL. It shows what happened when copying many files to a fat32 formatted USB stick after a short time. Before and after the KDL, I get many alerts "Error copying "{some-file}: File or directory already exists"; all with a freshly mkdos'ed USB stick.

by humdinger, 8 years ago

Attachment: KDL-copy-to-FAT32-USB.txt added

syslog

comment:5 by beos_zealot, 8 years ago

Same problem. Assert in the same place (attached pic: DoublyLinkedList.JPG).

by beos_zealot, 8 years ago

Attachment: DoublyLinkedList.JPG added

comment:6 by beos_zealot, 8 years ago

Seems like KDL for same reason, but assert is few lines under - DoublyLinkedList.h:515 (attached pic: DoublyLinkedList-515-line.JPG)

I can reproduce this bug in this way:

  1. i often copy a few large files (~1,5GB each) to USB stick
  2. i allways copy them one by one
  3. copy first file to USB stick (i was using tracker's context menu -> copy to)
  4. tracker status window disappears, means copying is done, but really file is still copying, because LED on USB stick is still blinking
  5. copy second file to USB stick without waiting while LED stops blinking on stick from first file copying
  6. by repeating steps 3/4/5 and copying third or fourth file i eventually get KDL.

!!! But if i wait while LED on USB stick stops blinking from previuos file copying and only then copy next file i can fill whole USB stick space (8GB) without KDL. !!!

Additional info:

  • FAT32 formated USB flash stick
  • Sandisk Cruzer Contour 8GB, write speed:18MB/sec, read speed:25MB/sec
  • self built HAIKU hrev43167 gcc4
  • swap ON, default swap file size (PC has 2GB RAM)

P.S. Would it help if i test same steps on slower USB stick (write:3MB/sec, read:10MB/sec) or disable swap (or any other combinations)? Would this kind of additional information be useful?

by beos_zealot, 8 years ago

by diver, 7 years ago

Attachment: IMG_0013.JPG added

comment:7 by diver, 7 years ago

I just ran into this problem in hrev45179, no FAT32 involved, though. I just started a couple of bundled apps, the last two were Magnify and Mail.

Note: See TracTickets for help on using tickets.