darlinghq / darling-dmg

FUSE module for .dmg files (containing an HFS+ filesystem)
http://www.darlinghq.org
GNU General Public License v3.0
272 stars 45 forks source link

Cannot attach visionOS_1_beta_Simulator_Runtime.dmg and other images #103

Open 1div0 opened 1 year ago

1div0 commented 1 year ago

There must be something new and weird in these DMG files:

Darling [/Volumes/SystemRoot/2TB/Downloads/Apple]$ ls Command_Line_Tools_for_Xcode_15_beta_2.dmg Xcode_15_beta_2.xcdownloadmanifest iOS_17_beta_2_Simulator_Runtime.dmg visionOS_1_beta_Simulator_Runtime.dmg Font_Tools_for_Xcode_15_beta.dmg Xcode_15_beta_2.xip tvOS_17_beta_2_Simulator_Runtime.dmg watchOS_10_beta_2_Simulator_Runtime.dmg Darling [/Volumes/SystemRoot/2TB/Downloads/Apple]$ hdiutil attach iOS_17_beta_2_Simulator_Runtime.dmg Will pass /2TB/home/peter.kovar/.darling/Volumes/iOS_17_beta_2_Simulator_Runtime Error: No suitable partition found in file

Possible reasons: 1) The file is corrupt. 2) The file is not really a DMG file, although it resembles one. 3) There is a bug in darling-dmg. Darling [/Volumes/SystemRoot/2TB/Downloads/Apple]$ hdiutil attach tvOS_17_beta_2_Simulator_Runtime.dmg Will pass /2TB/home/peter.kovar/.darling/Volumes/tvOS_17_beta_2_Simulator_Runtime Error: No suitable partition found in file

Possible reasons: 1) The file is corrupt. 2) The file is not really a DMG file, although it resembles one. 3) There is a bug in darling-dmg. Darling [/Volumes/SystemRoot/2TB/Downloads/Apple]$ hdiutil attach visionOS_1_beta_Simulator_Runtime.dmg Will pass /2TB/home/peter.kovar/.darling/Volumes/visionOS_1_beta_Simulator_Runtime Error: No suitable partition found in file

Possible reasons: 1) The file is corrupt. 2) The file is not really a DMG file, although it resembles one. 3) There is a bug in darling-dmg. Darling [/Volumes/SystemRoot/2TB/Downloads/Apple]$ hdiutil attach watchOS_10_beta_2_Simulator_Runtime.dmg Will pass /2TB/home/peter.kovar/.darling/Volumes/watchOS_10_beta_2_Simulator_Runtime Error: No suitable partition found in file

Possible reasons: 1) The file is corrupt. 2) The file is not really a DMG file, although it resembles one. 3) There is a bug in darling-dmg.

1div0 commented 1 year ago

Additional trace:

Darling [/Volumes/SystemRoot/2TB/Downloads/Apple]$ xtrace hdiutil attach visionOS_1_beta_Simulator_Runtime.dmg [1215] _kernelrpc_mach_vm_map_trap(...) [1215] mmap(0x1000, 1048576, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0) -> 0x7F0540804000 [1215] munmap(0x7F0540804000, 1048576) -> 0 [1215] mmap(0x1000, 2097152, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0) -> 0x7F0540704000 [1215] munmap(0x7F0540704000, 1032192) -> 0 [1215] munmap(0x7F0540900000, 16384) -> 0 [1215] _kernelrpc_mach_vm_map_trap() -> KERN_SUCCESS [1215] stat64("/usr/share/icu/icudt66l/cnvalias.icu", 0x7FFFFFDFC958) -> ENOENT [1215] _kernelrpc_mach_vm_map_trap(...) [1215] mmap(0x1000, 8388608, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0) -> 0x7F0540000000 [1215] _kernelrpc_mach_vm_map_trap() -> KERN_SUCCESS [1215] stat64("/usr/share/icu/icudt66l.dat", 0x7FFFFFDFC878) -> 0 [1215] open("/usr/share/icu/icudt66l.dat", O_RDONLY, 0) -> 3 [1215] mmap(NULL, 29074368, PROT_READ, MAP_SHARED, 3, 0) -> 0x7F053E445000 [1215] close(3) -> 0 [1215] access("visionOS_1_beta_Simulator_Runtime.dmg", 4) -> 0 [1215] mkdir("/Volumes/visionOS_1_beta_Simulator_Runtime", 511) -> EEXIST [1215] getentropy(0x7FFFFFDFE040, 8) -> 0 [1215] getentropy(0x7FFFFFDFE040, 8) -> 0 [1215] getentropy(0x7FFFFFDFE040, 8) -> 0 [1215] getentropy(0x7FFFFFDFE040, 8) -> 0 [1215] getentropy(0x7FFFFFDFE040, 8) -> 0 [1215] getentropy(0x7FFFFFDFE040, 8) -> 0 [1215] fstatat64(-2, "/tmp", 0x7FFFFFDFE0B0, 0) -> 0 [1215] openat_nocancel(-2, "/tmp/hdiutil4LLsG4", O_RDWR|O_CREAT|O_EXCL, 384) -> 3 [1215] dup2(2, 255) -> 255 [1215] close(2) -> 0 [1215] dup2(3, 2) -> 2 [1215] getrlimit(4104, 0x7FFFFFDFE058) -> 0 [1215] write_nocancel(2, 0x10004FF23, 10) -> 10 [1215] write_nocancel(2, 0x7FFFFFDFE9E0, 72) -> 72 [1215] write_nocancel(2, 0x7FFFFFDFE49B, 1) -> 1 [1215] open("visionOS_1_beta_Simulator_Runtime.dmg", O_RDONLY, 0) -> 4 [1215] lseek(4, 0, 2) -> 7354535384 [1215] pread(4, 0x7FFFFFDFE1C4, 4, -1235399720) -> 4 [1215] lseek(4, 0, 2) -> 7354535384 [1215] pread(4, 0x7F054203D340, 512, -1235399720) -> 512 [1215] _kernelrpc_mach_vm_map_trap(...) [1215] mmap(0x1000, 134217728, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0) -> 0x7F0536445000 [1215] munmap(0x7F0536445000, 134217728) -> 0 [1215] mmap(0x1000, 268435456, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0) -> 0x7F052E445000 [1215] munmap(0x7F052E445000, 29077504) -> 0 [1215] munmap(0x7F0538000000, 105140224) -> 0 [1215] _kernelrpc_mach_vm_map_trap() -> KERN_SUCCESS [1215] pread(4, 0x7F0530008000, 253486, -1235658042) -> 253486 [1215] gettimeofday(0x7FFFFFDFDC30, NULL, NULL) -> 0 [1215] _kernelrpc_mach_vm_map_trap(...) [1215] mmap(0x1000, 134217728, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0) -> 0x7F0528000000 [1215] _kernelrpc_mach_vm_map_trap() -> KERN_SUCCESS [1215] write_nocancel(2, 0x10004FB1B, 7) -> 7 [1215] write_nocancel(2, 0x7F0540805248, 35) -> 35 [1215] write_nocancel(2, 0x7FFFFFDFE2CB, 1) -> 1 [1215] write_nocancel(2, 0x7FFFFFDFE2CB, 1) -> 1 [1215] write_nocancel(2, 0x10004FB23, 141) -> 141 [1215] close(2) -> 0 [1215] dup2(255, 2) -> 2 [1215] lseek(3, 0, 0) -> 0 [1215] read(3, 0x7FFFFFDFE7E0, 512) -> 268 [1215] write(2, 0x7FFFFFDFE7E0, 268)Will pass /2TB/home/peter.kovar/.darling/Volumes/visionOS_1_beta_Simulator_Runtime Error: No suitable partition found in file

Possible reasons: 1) The file is corrupt. 2) The file is not really a DMG file, although it resembles one. 3) There is a bug in darling-dmg. -> 268 [1215] read(3, 0x7FFFFFDFE7E0, 512) -> 0 [1215] close(3) -> 0 [1215] unlink("/tmp/hdiutil4LLsG4") -> 0 [1215] close(4) -> 0 [1215] exit(1)

TheRedXD commented 11 months ago

Likely related to https://github.com/darlinghq/darling-dmg/issues/39