とある雑記

powerd by GitHub Pages.

bsdtar bug?

compressing a directory including 1million (30GB in total) files using tar command (bsdtar), a fatal error occurs.
I googled, however, no related information found.

$ tar -cv --cd ~/path -f - .
tar(84564,0x1db241ec0) malloc: Incorrect checksum for freed object 0x1262041a8: probably modified after being freed.
Corrupt value: 0x77779982e39f81e3
tar(84564,0x1db241ec0) malloc: *** set a breakpoint in malloc_error_break to debug

try another version of tar (GNU-tar), no error occured.

$ brew install gnu-tar
$ (cd ~/path/; gtar -cv -f - .)

Environment

M1 Mac Mini 2020
macOS Sonoma 14.1(23B74)
bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.0.5 bz2lib/1.0.8

記事一覧