You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The simple_compression demo in examples fails with SIGSEGV,using a special set of use caces.
To Reproduce
enter examples directory, ~/zstd-1.5.5/examples
generate data
#include <stdio.h>
#include "common.h"
int main()
{
char cBuff[8192];
int i = 0;
for ( i = 0; i < 8192; i++)
{
cBuff[i] = (char)i % 16;
}
size_t cSize = 8192;
saveFile_orDie("./test_data", cBuff, cSize);
return 0;
}
Run simple_compression in examples. ./simple_compression test_data
Expected behavior
will coredump
stack
#0 0x000000000046dda3 in FSE_buildCTable_wksp () #1 0x000000000041461b in ZSTD_buildCTable () #2 0x0000000000406fa3 in ZSTD_buildSequencesStatistics () #3 0x0000000000407aae in ZSTD_entropyCompressSeqStore.clone.1 () #4 0x000000000040b882 in ZSTD_compressBlock_internal () #5 0x000000000040bc51 in ZSTD_compressContinue_internal () #6 0x0000000000411258 in ZSTD_compressEnd_public () #7 0x0000000000412886 in ZSTD_compress () #8 0x0000000000401007 in compress_orDie () #9 0x00000000004011f0 in main ()
Environment
OS: CentOS Linux release 6.2 (Final)
Version:libc-2.12.so
Compiler: gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-4)
Build system:Makefile
zstd versions tested: 1.5.4 and 1.5.5
Flags: default
Additional context
zstd 1.5.2 version can run normally
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
The simple_compression demo in examples fails with SIGSEGV,using a special set of use caces.
To Reproduce
~/zstd-1.5.5/examples
./simple_compression test_data
Expected behavior
will coredump
stack
#0 0x000000000046dda3 in FSE_buildCTable_wksp ()
#1 0x000000000041461b in ZSTD_buildCTable ()
#2 0x0000000000406fa3 in ZSTD_buildSequencesStatistics ()
#3 0x0000000000407aae in ZSTD_entropyCompressSeqStore.clone.1 ()
#4 0x000000000040b882 in ZSTD_compressBlock_internal ()
#5 0x000000000040bc51 in ZSTD_compressContinue_internal ()
#6 0x0000000000411258 in ZSTD_compressEnd_public ()
#7 0x0000000000412886 in ZSTD_compress ()
#8 0x0000000000401007 in compress_orDie ()
#9 0x00000000004011f0 in main ()
Environment
Additional context
zstd 1.5.2 version can run normally
The text was updated successfully, but these errors were encountered: