Opened 15 years ago
Closed 15 years ago
#4383 closed bug (fixed)
KDL on trying to partition a USB stick using DriveSetup
Reported by: | jonas.kirilla | Owned by: | mmlr |
---|---|---|---|
Priority: | normal | Milestone: | R1/alpha1 |
Component: | System/Kernel | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Haiku crashed on trying to partition a USB stick using DriveSetup.
See backtrace.
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | KDL_DriveSetup_partitioning_USB_stick.txt added |
---|
comment:1 by , 15 years ago
Owner: | changed from | to
---|
comment:2 by , 15 years ago
Milestone: | R1 → R1/alpha1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Nope. The PartitionMapWriter hands in a 512 byte sized partition_table but writes fBlockSize, which in this case happens to be 2048. Though I don't understand why it wouldn't simply write sizeof(partition_table). Why would you want to overwrite the rest of the block? I've therefore taken the liberty to just write the size of the partition_table for now so that it doesn't crash (and only read the size of the partition table so it doesn't corrupt random memory). Fixed in hrev32857.
Note:
See TracTickets
for help on using tickets.
From the backtrace, it looks a bit like a problem in USB/EHCI, though the PartitionMapWriter may still be doing something wrong.