Re: Problems with hfsprogs on G5 Power Macs
On 1/7/19 10:09 PM, Frank Scheiner wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000100034be4 in hfs_swap_HFSBTInternalNode (src=0x7fffffffd3a8, fcb=0x100081898, direction=kSwapBTNodeBigToHost) at hfs_endian.c:883
> 883 hfs_endian.c: No such file or directory.
I think the debugging process would be more verbose if the
debugging was done in-tree of the hfsprogress source code.
> (gdb) p src
> $1 = (BlockDescriptor *) 0x7fffffffd3a8
> (gdb) p srcDesc
> $2 = (BTNodeDescriptor *) 0x7ffff5c91200
> (gdb) p srcOffs
> $3 = (uint16_t *) 0x7ffff5c913fe
> (gdb) p sizeof(UInt16)
> No symbol "UInt16" in current context.
> [...]
> (gdb) p sizeof(uint16_t)
> $4 = 2
> ```
What was the problem again? hfsprogs crashing on 64-bit systems?
My wild guess would be that the code uses C types which have different
lengths on 32- and 64-bit systems where it should really use type with
defined lengths, i.e. "uint32" instead of "int".
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: