Skip to content

Core dumped when attempted to uncompress a file using a dictionary #76

Open
@scottchiefbaker

Description

@scottchiefbaker

In the supplied example.tar.gz I can uncompress the text file with the CLI no problem:

$ zstd -d -D dict test.txt.zst
test.txt.zst        : 10829 bytes

$ md5sum test.txt
58834ab4da8f93dc8f9864e9d9fdfb86  test.txt

When I attempt to decompress it with PHP I get a core dump

$zst  = file_get_contents("/var/tmp/test.txt.zst");
$dict = file_get_contents("/var/tmp/dict");
$txt  = zstd_uncompress_dict($zst, $dict);

Log output:

[11-Apr-2025 20:04:10] WARNING: [pool www] child 870081 exited on signal 6 (SIGABRT - core dumped) after 518.524306 seconds from start
[11-Apr-2025 20:04:10] NOTICE: [pool www] child 870526 started

I'm running v0.14.0 of the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions