Opened 10 years ago

Closed 10 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:
Has a Patch: no 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 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by jonas.kirilla

comment:1 Changed 10 years ago by stippi

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 Changed 10 years ago by mmlr

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.