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)

KDL_DriveSetup_partitioning_USB_stick.txt (5.7 KB ) - added by jonas.kirilla 15 years ago.

Download all attachments as: .zip

Change History (3)

by jonas.kirilla, 15 years ago

comment:1 by stippi, 15 years ago

Owner: changed from axeld to mmlr

From the backtrace, it looks a bit like a problem in USB/EHCI, though the PartitionMapWriter may still be doing something wrong.

comment:2 by mmlr, 15 years ago

Milestone: R1R1/alpha1
Resolution: fixed
Status: newclosed

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.