Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit-test failed with '-march=core2' #413

Open
datao2001 opened this issue Sep 6, 2023 · 1 comment
Open

unit-test failed with '-march=core2' #413

datao2001 opened this issue Sep 6, 2023 · 1 comment

Comments

@datao2001
Copy link

datao2001 commented Sep 6, 2023

Hi,I want to compare the performance between AVX2 and SSE by Hyperscan。
And I replace all "-march=xxx" to "-march=core2" in ./CMakeListst.txt , it will build success but run unit-hyperscan failed.
企业微信截图_16939834072680
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

@datao2001
Copy link
Author

And I tested this on two different machines with the same compiler gcc 11.4 and ubuntu 22.04 i9 12900K and R9 7950X,they had the same problem.
More detailed message

[==========] Running 4130 tests from 33 test cases.
[----------] Global test environment set-up.
[----------] 9 tests from CustomAllocator
[ RUN      ] CustomAllocator.DatabaseInfoBadAlloc
[       OK ] CustomAllocator.DatabaseInfoBadAlloc (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedCompile
[       OK ] CustomAllocator.TwoAlignedCompile (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedCompileError
[       OK ] CustomAllocator.TwoAlignedCompileError (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedDatabaseInfo
[       OK ] CustomAllocator.TwoAlignedDatabaseInfo (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedSerialize
[       OK ] CustomAllocator.TwoAlignedSerialize (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedDeserialize
/home/huyuantao/workspace/hyperscan/unit/hyperscan/allocators.cpp:150: Failure
Value of: err
  Actual: -6
Expected: (-9)
Which is: -9
[  FAILED  ] CustomAllocator.TwoAlignedDeserialize (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedAllocScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/allocators.cpp:160: Failure
Value of: db != nullptr
  Actual: false
Expected: true
[  FAILED  ] CustomAllocator.TwoAlignedAllocScratch (0 ms)
[ RUN      ] CustomAllocator.NullMallocExpressionInfo
[       OK ] CustomAllocator.NullMallocExpressionInfo (0 ms)
[ RUN      ] CustomAllocator.TwoAlignedExpressionInfo
[       OK ] CustomAllocator.TwoAlignedExpressionInfo (0 ms)
[----------] 9 tests from CustomAllocator (0 ms total)

[----------] 141 tests from HyperscanArgChecks
[ RUN      ] HyperscanArgChecks.ValidPlatform
[       OK ] HyperscanArgChecks.ValidPlatform (0 ms)
[ RUN      ] HyperscanArgChecks.Version
[       OK ] HyperscanArgChecks.Version (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileBlockNoPattern
[       OK ] HyperscanArgChecks.SingleCompileBlockNoPattern (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileStreamingNoPattern
[       OK ] HyperscanArgChecks.SingleCompileStreamingNoPattern (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileBlockNoDatabase
[       OK ] HyperscanArgChecks.SingleCompileBlockNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileStreamingNoDatabase
[       OK ] HyperscanArgChecks.SingleCompileStreamingNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileNoMode
[       OK ] HyperscanArgChecks.SingleCompileNoMode (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileSeveralModes1
[       OK ] HyperscanArgChecks.SingleCompileSeveralModes1 (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileBogusFlags
[       OK ] HyperscanArgChecks.SingleCompileBogusFlags (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileBogusMode1
[       OK ] HyperscanArgChecks.SingleCompileBogusMode1 (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileBadTune
[       OK ] HyperscanArgChecks.SingleCompileBadTune (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileBadFeatures
[       OK ] HyperscanArgChecks.SingleCompileBadFeatures (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileSOMFlag
[       OK ] HyperscanArgChecks.SingleCompileSOMFlag (0 ms)
[ RUN      ] HyperscanArgChecks.SingleCompileSOMModes
[       OK ] HyperscanArgChecks.SingleCompileSOMModes (0 ms)
[ RUN      ] HyperscanArgChecks.MultiCompileBlockNoPattern
[       OK ] HyperscanArgChecks.MultiCompileBlockNoPattern (0 ms)
[ RUN      ] HyperscanArgChecks.MultiCompileStreamingNoPattern
[       OK ] HyperscanArgChecks.MultiCompileStreamingNoPattern (0 ms)
[ RUN      ] HyperscanArgChecks.MultiCompileZeroPatterns
[       OK ] HyperscanArgChecks.MultiCompileZeroPatterns (0 ms)
[ RUN      ] HyperscanArgChecks.MultiCompileBlockNoDatabase
[       OK ] HyperscanArgChecks.MultiCompileBlockNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.MultiCompileStreamingNoDatabase
[       OK ] HyperscanArgChecks.MultiCompileStreamingNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.OpenStreamNoDatabase
[       OK ] HyperscanArgChecks.OpenStreamNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.OpenStreamNoStreamId
[       OK ] HyperscanArgChecks.OpenStreamNoStreamId (0 ms)
[ RUN      ] HyperscanArgChecks.OpenStreamWithBlockDatabase
[       OK ] HyperscanArgChecks.OpenStreamWithBlockDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.OpenStreamWithBrokenDatabaseBytecode
[       OK ] HyperscanArgChecks.OpenStreamWithBrokenDatabaseBytecode (0 ms)
[ RUN      ] HyperscanArgChecks.ScanStreamNoStreamID
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:407: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanStreamNoStreamID (0 ms)
[ RUN      ] HyperscanArgChecks.ScanStreamNoData
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:430: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanStreamNoData (0 ms)
[ RUN      ] HyperscanArgChecks.ScanStreamNoScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:459: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanStreamNoScratch (0 ms)
[ RUN      ] HyperscanArgChecks.CloseStreamNoStream
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:488: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.CloseStreamNoStream (0 ms)
[ RUN      ] HyperscanArgChecks.CloseStreamNoScratch
[       OK ] HyperscanArgChecks.CloseStreamNoScratch (0 ms)
[ RUN      ] HyperscanArgChecks.CloseStreamNoScratchNoCallback
[       OK ] HyperscanArgChecks.CloseStreamNoScratchNoCallback (0 ms)
[ RUN      ] HyperscanArgChecks.CloseStreamNoMatchNoStream
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:555: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.CloseStreamNoMatchNoStream (0 ms)
[ RUN      ] HyperscanArgChecks.ChangeStreamContext
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:578: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ChangeStreamContext (0 ms)
[ RUN      ] HyperscanArgChecks.ResetStreamNoId
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:621: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetStreamNoId (0 ms)
[ RUN      ] HyperscanArgChecks.ResetStreamNoScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:649: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetStreamNoScratch (1 ms)
[ RUN      ] HyperscanArgChecks.CopyStreamNoFromId
[       OK ] HyperscanArgChecks.CopyStreamNoFromId (0 ms)
[ RUN      ] HyperscanArgChecks.CopyStreamNoToId
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:682: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.CopyStreamNoToId (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndCopyStreamNoToId
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:700: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetAndCopyStreamNoToId (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndCopyStreamNoFromId
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:726: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetAndCopyStreamNoFromId (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndCopyStreamSameToId
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:752: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetAndCopyStreamSameToId (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndCopyStreamNoCallbackOrScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:781: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetAndCopyStreamNoCallbackOrScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndCopyStreamNoScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:814: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetAndCopyStreamNoScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndCopyStreamDiffDb
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:850: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetAndCopyStreamDiffDb (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockNoDatabase
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:884: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockBrokenDatabaseMagic
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:906: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockBrokenDatabaseMagic (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockBrokenDatabaseVersion
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:931: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockBrokenDatabaseVersion (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockBrokenDatabaseBytecode
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:956: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockBrokenDatabaseBytecode (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockStreamingDatabase
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:981: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockStreamingDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockVectoredDatabase
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1002: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockVectoredDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockNoData
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1025: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockNoData (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockNoScratch
[       OK ] HyperscanArgChecks.ScanBlockNoScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBlockNoHandler
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1063: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanBlockNoHandler (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorNoDatabase
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1085: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorBrokenDatabaseMagic
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1109: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorBrokenDatabaseMagic (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorBrokenDatabaseVersion
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1136: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorBrokenDatabaseVersion (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorBrokenDatabaseBytecode
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1163: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorBrokenDatabaseBytecode (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorStreamingDatabase
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1190: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorStreamingDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorBlockDatabase
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1213: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorBlockDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorNoDataArray
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1237: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorNoDataArray (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorNoDataBlock
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1260: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorNoDataBlock (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorNoLenArray
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1284: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorNoLenArray (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorNoScratch
[       OK ] HyperscanArgChecks.ScanVectorNoScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorNoHandler
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1326: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanVectorNoHandler (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchNoDatabase
[       OK ] HyperscanArgChecks.AllocScratchNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchNullScratchPtr
[       OK ] HyperscanArgChecks.AllocScratchNullScratchPtr (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchBogusScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1376: Failure
Value of: err
  Actual: -6
Expected: (-1)
Which is: -1
[  FAILED  ] HyperscanArgChecks.AllocScratchBogusScratch (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchBadDatabaseMagic
[       OK ] HyperscanArgChecks.AllocScratchBadDatabaseMagic (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchBadDatabaseVersion
[       OK ] HyperscanArgChecks.AllocScratchBadDatabaseVersion (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchBadDatabasePlatform
[       OK ] HyperscanArgChecks.AllocScratchBadDatabasePlatform (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchBadDatabaseBytecode
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1453: Failure
Value of: err
  Actual: -6
Expected: (-1)
Which is: -1
[  FAILED  ] HyperscanArgChecks.AllocScratchBadDatabaseBytecode (0 ms)
[ RUN      ] HyperscanArgChecks.AllocScratchBadDatabaseCRC
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:1476: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.AllocScratchBadDatabaseCRC (0 ms)
[ RUN      ] HyperscanArgChecks.CloneScratchNoSource
[       OK ] HyperscanArgChecks.CloneScratchNoSource (0 ms)
[ RUN      ] HyperscanArgChecks.SerializeNoDatabase
[       OK ] HyperscanArgChecks.SerializeNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.SerializeNoBuffer
[       OK ] HyperscanArgChecks.SerializeNoBuffer (0 ms)
[ RUN      ] HyperscanArgChecks.SerializeNoLength
[       OK ] HyperscanArgChecks.SerializeNoLength (0 ms)
[ RUN      ] HyperscanArgChecks.StreamSizeNoDatabase
[       OK ] HyperscanArgChecks.StreamSizeNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.StreamSizeBogusDatabase
[       OK ] HyperscanArgChecks.StreamSizeBogusDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.StreamSizeBlockDatabase
[       OK ] HyperscanArgChecks.StreamSizeBlockDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.StreamSizeVectoredDatabase
[       OK ] HyperscanArgChecks.StreamSizeVectoredDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.OpenStreamBlockDatabase
[       OK ] HyperscanArgChecks.OpenStreamBlockDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.OpenStreamVectoredDatabase
[       OK ] HyperscanArgChecks.OpenStreamVectoredDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.StreamSizeRealDatabase
[       OK ] HyperscanArgChecks.StreamSizeRealDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.StreamSizeNoSize
[       OK ] HyperscanArgChecks.StreamSizeNoSize (0 ms)
[ RUN      ] HyperscanArgChecks.DatabaseSizeNoDatabase
[       OK ] HyperscanArgChecks.DatabaseSizeNoDatabase (0 ms)
[ RUN      ] HyperscanArgChecks.DatabaseSizeNoSize
[       OK ] HyperscanArgChecks.DatabaseSizeNoSize (0 ms)
[ RUN      ] HyperscanArgChecks.DatabaseSizeBadDb
[       OK ] HyperscanArgChecks.DatabaseSizeBadDb (0 ms)
[ RUN      ] HyperscanArgChecks.DatabaseInfoBadDb
[       OK ] HyperscanArgChecks.DatabaseInfoBadDb (0 ms)
[ RUN      ] HyperscanArgChecks.DatabaseInfoNullDb
[       OK ] HyperscanArgChecks.DatabaseInfoNullDb (0 ms)
[ RUN      ] HyperscanArgChecks.DatabaseInfoNullInfo
[       OK ] HyperscanArgChecks.DatabaseInfoNullInfo (1 ms)
[ RUN      ] HyperscanArgChecks.SerializedDatabaseSizeBadLen
[       OK ] HyperscanArgChecks.SerializedDatabaseSizeBadLen (0 ms)
[ RUN      ] HyperscanArgChecks.SerializedDatabaseSizeNoSize
[       OK ] HyperscanArgChecks.SerializedDatabaseSizeNoSize (1 ms)
[ RUN      ] HyperscanArgChecks.SerializedDatabaseSizeNoBytes
[       OK ] HyperscanArgChecks.SerializedDatabaseSizeNoBytes (0 ms)
[ RUN      ] HyperscanArgChecks.SerializedDatabaseInfoBadLen
[       OK ] HyperscanArgChecks.SerializedDatabaseInfoBadLen (0 ms)
[ RUN      ] HyperscanArgChecks.SerializedDatabaseInfoNoInfo
[       OK ] HyperscanArgChecks.SerializedDatabaseInfoNoInfo (1 ms)
[ RUN      ] HyperscanArgChecks.SerializedDatabaseInfoNoBytes
[       OK ] HyperscanArgChecks.SerializedDatabaseInfoNoBytes (0 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseNoBytes
[       OK ] HyperscanArgChecks.DeserializeDatabaseNoBytes (0 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseAtNoBytes
[       OK ] HyperscanArgChecks.DeserializeDatabaseAtNoBytes (0 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseNoDb
[       OK ] HyperscanArgChecks.DeserializeDatabaseNoDb (1 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseBadLen
[       OK ] HyperscanArgChecks.DeserializeDatabaseBadLen (0 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseBadLen2
[       OK ] HyperscanArgChecks.DeserializeDatabaseBadLen2 (1 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseBadBytes
[       OK ] HyperscanArgChecks.DeserializeDatabaseBadBytes (1 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseBadBytes2
[       OK ] HyperscanArgChecks.DeserializeDatabaseBadBytes2 (0 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseAtNoDb
[       OK ] HyperscanArgChecks.DeserializeDatabaseAtNoDb (1 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseAtBadLen
[       OK ] HyperscanArgChecks.DeserializeDatabaseAtBadLen (1 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseAtBadLen2
[       OK ] HyperscanArgChecks.DeserializeDatabaseAtBadLen2 (1 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseAtBadBytes
[       OK ] HyperscanArgChecks.DeserializeDatabaseAtBadBytes (0 ms)
[ RUN      ] HyperscanArgChecks.DeserializeDatabaseAtBadBytes2
[       OK ] HyperscanArgChecks.DeserializeDatabaseAtBadBytes2 (1 ms)
[ RUN      ] HyperscanArgChecks.ScratchSizeNoSize
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:2010: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScratchSizeNoSize (0 ms)
[ RUN      ] HyperscanArgChecks.ScratchSizeNoScratch
[       OK ] HyperscanArgChecks.ScratchSizeNoScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ScratchSizeBadScratch
[       OK ] HyperscanArgChecks.ScratchSizeBadScratch (0 ms)
[ RUN      ] HyperscanArgChecks.CloneBadScratch
[       OK ] HyperscanArgChecks.CloneBadScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ScanBadScratch
[       OK ] HyperscanArgChecks.ScanBadScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ScanStreamBadScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:2096: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ScanStreamBadScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ResetStreamBadScratch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/arg_checks.cpp:2132: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanArgChecks.ResetStreamBadScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ScanVectorBadScratch
[       OK ] HyperscanArgChecks.ScanVectorBadScratch (0 ms)
[ RUN      ] HyperscanArgChecks.ExprInfoNullExpression
[       OK ] HyperscanArgChecks.ExprInfoNullExpression (0 ms)
[ RUN      ] HyperscanArgChecks.ExprInfoNullInfoPtr
[       OK ] HyperscanArgChecks.ExprInfoNullInfoPtr (0 ms)
[ RUN      ] HyperscanArgChecks.ExprInfoNullErrPtr
[       OK ] HyperscanArgChecks.ExprInfoNullErrPtr (0 ms)
[ RUN      ] HyperscanArgChecks.ExprExtInfoNullExpression
[       OK ] HyperscanArgChecks.ExprExtInfoNullExpression (0 ms)
[ RUN      ] HyperscanArgChecks.ExprExtInfoNullInfoPtr
[       OK ] HyperscanArgChecks.ExprExtInfoNullInfoPtr (0 ms)
[ RUN      ] HyperscanArgChecks.ExprExtInfoNullErrPtr
[       OK ] HyperscanArgChecks.ExprExtInfoNullErrPtr (0 ms)
[ RUN      ] HyperscanArgChecks.hs_free_database_null
[       OK ] HyperscanArgChecks.hs_free_database_null (0 ms)
[ RUN      ] HyperscanArgChecks.hs_free_database_garbage
[       OK ] HyperscanArgChecks.hs_free_database_garbage (0 ms)
[ RUN      ] HyperscanArgChecks.hs_free_scratch_null
[       OK ] HyperscanArgChecks.hs_free_scratch_null (0 ms)
[ RUN      ] HyperscanArgChecks.hs_free_scratch_garbage
[       OK ] HyperscanArgChecks.hs_free_scratch_garbage (0 ms)
[ RUN      ] HyperscanArgChecks.hs_free_compile_error_null
[       OK ] HyperscanArgChecks.hs_free_compile_error_null (0 ms)
[ RUN      ] HyperscanArgChecks.multicompile_mix_highlander_1
[       OK ] HyperscanArgChecks.multicompile_mix_highlander_1 (1 ms)
[ RUN      ] HyperscanArgChecks.multicompile_mix_highlander_2
[       OK ] HyperscanArgChecks.multicompile_mix_highlander_2 (0 ms)
[ RUN      ] HyperscanArgChecks.multicompile_nomix_highlander_1
[       OK ] HyperscanArgChecks.multicompile_nomix_highlander_1 (0 ms)
[ RUN      ] HyperscanArgChecks.multicompile_nomix_highlander_2
[       OK ] HyperscanArgChecks.multicompile_nomix_highlander_2 (1 ms)
[ RUN      ] HyperscanArgChecks.hs_populate_platform_null
[       OK ] HyperscanArgChecks.hs_populate_platform_null (0 ms)
[ RUN      ] HyperscanArgChecks.CompressStreamNoStream
[       OK ] HyperscanArgChecks.CompressStreamNoStream (0 ms)
[ RUN      ] HyperscanArgChecks.CompressStreamNoUsed
[       OK ] HyperscanArgChecks.CompressStreamNoUsed (0 ms)
[ RUN      ] HyperscanArgChecks.CompressStreamNoBuf
[       OK ] HyperscanArgChecks.CompressStreamNoBuf (1 ms)
[ RUN      ] HyperscanArgChecks.CompressStreamSmallBuff
[       OK ] HyperscanArgChecks.CompressStreamSmallBuff (0 ms)
[ RUN      ] HyperscanArgChecks.ExpandNoDb
[       OK ] HyperscanArgChecks.ExpandNoDb (1 ms)
[ RUN      ] HyperscanArgChecks.ExpandNoTo
[       OK ] HyperscanArgChecks.ExpandNoTo (0 ms)
[ RUN      ] HyperscanArgChecks.ExpandNoBuf
[       OK ] HyperscanArgChecks.ExpandNoBuf (1 ms)
[ RUN      ] HyperscanArgChecks.ExpandSmallBuf
[       OK ] HyperscanArgChecks.ExpandSmallBuf (1 ms)
[ RUN      ] HyperscanArgChecks.ResetAndExpandNoStream
[       OK ] HyperscanArgChecks.ResetAndExpandNoStream (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndExpandNoBuf
[       OK ] HyperscanArgChecks.ResetAndExpandNoBuf (1 ms)
[ RUN      ] HyperscanArgChecks.ResetAndExpandSmallBuf
[       OK ] HyperscanArgChecks.ResetAndExpandSmallBuf (0 ms)
[ RUN      ] HyperscanArgChecks.ResetAndExpandNoScratch
[       OK ] HyperscanArgChecks.ResetAndExpandNoScratch (1 ms)
[----------] 141 tests from HyperscanArgChecks (19 ms total)

[----------] 3 tests from ResourceLimits
[ RUN      ] ResourceLimits.longPattern
[       OK ] ResourceLimits.longPattern (0 ms)
[ RUN      ] ResourceLimits.longPatternInfo
[       OK ] ResourceLimits.longPatternInfo (0 ms)
[ RUN      ] ResourceLimits.longLiteral
[       OK ] ResourceLimits.longLiteral (0 ms)
[----------] 3 tests from ResourceLimits (0 ms total)

[----------] 19 tests from HyperscanTestBehaviour
[ RUN      ] HyperscanTestBehaviour.ScanSeveralGigabytesNoMatch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:101: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.ScanSeveralGigabytesNoMatch (1 ms)
[ RUN      ] HyperscanTestBehaviour.StreamingThereCanBeOnlyOne
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:333: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.StreamingThereCanBeOnlyOne (0 ms)
[ RUN      ] HyperscanTestBehaviour.BlockThereCanBeOnlyOne
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:377: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.BlockThereCanBeOnlyOne (0 ms)
[ RUN      ] HyperscanTestBehaviour.SerializedDogfood1
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:634: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.SerializedDogfood1 (0 ms)
[ RUN      ] HyperscanTestBehaviour.SerializedDogfood2
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:717: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.SerializedDogfood2 (4 ms)
[ RUN      ] HyperscanTestBehaviour.SerializedDogfood3
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:798: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.SerializedDogfood3 (0 ms)
[ RUN      ] HyperscanTestBehaviour.CloseStreamMatch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:836: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.CloseStreamMatch (1 ms)
[ RUN      ] HyperscanTestBehaviour.NoMainCB
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:873: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.NoMainCB (0 ms)
[ RUN      ] HyperscanTestBehaviour.CloseStreamNoMatch
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:911: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.CloseStreamNoMatch (0 ms)
[ RUN      ] HyperscanTestBehaviour.CloseStreamAfterTermination
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:947: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.CloseStreamAfterTermination (1 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored1
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:983: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored1 (0 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored2
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1012: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored2 (0 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored3
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1041: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored3 (1 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored4
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1070: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored4 (0 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored5
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1099: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored5 (0 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored6
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1128: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored6 (0 ms)
[ RUN      ] HyperscanTestBehaviour.Vectored7
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1157: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.Vectored7 (0 ms)
[ RUN      ] HyperscanTestBehaviour.MultiStream1
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1185: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.MultiStream1 (1 ms)
[ RUN      ] HyperscanTestBehaviour.MultiStream2
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1235: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] HyperscanTestBehaviour.MultiStream2 (0 ms)
[----------] 19 tests from HyperscanTestBehaviour (9 ms total)

[----------] 8 tests from regression
[ RUN      ] regression.UE_1005
/home/huyuantao/workspace/hyperscan/unit/hyperscan/behaviour.cpp:1289: Failure
Value of: err
  Actual: -6
Expected: 0
[  FAILED  ] regression.UE_1005 (0 ms)
[ RUN      ] regression.UE_2425
[       OK ] regression.UE_2425 (70 ms)
[ RUN      ] regression.UE_2485
[       OK ] regression.UE_2485 (4680 ms)
[ RUN      ] regression.UE_2452
[       OK ] regression.UE_2452 (103 ms)
[ RUN      ] regression.UE_2595

hyperscan/build$ cmake .. -DCMAKE_C_FLAGS="-v" -DCMAKE_CXX_FLAGS="-v""
to show build message
part of them are

COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/11/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-I' '/home/huyuantao/workspace/hyperscan/build' '-I' '/home/huyuantao/workspace/hyperscan' '-I' '/home/huyuantao/workspace/hyperscan/src' '-isystem' '/home/huyuantao/workspace/hyperscan/include' '-v' '-O3' '-std=c99' '-Wall' '-Wextra' '-Wshadow' '-Wcast-qual' '-fno-strict-aliasing' '-D' 'NDEBUG' '-Wno-array-bounds' '-Wno-maybe-uninitialized' '-Wno-abi' '-fno-omit-frame-pointer' '-fvisibility=hidden' '-Wvla' '-Wpointer-arith' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wstringop-overflow=0' '-g' '-D' 'NDEBUG' '-march=core2' '-MD' '-MT' 'CMakeFiles/hs_exec_core2.dir/src/fdr/teddy.c.o' '-MF' 'CMakeFiles/hs_exec_core2.dir/src/fdr/teddy.c.o.d' '-o' 'CMakeFiles/hs_exec_core2.dir/src/fdr/teddy.c.o' '-c' '-dumpdir' 'CMakeFiles/hs_exec_core2.dir/src/fdr/teddy.c.'
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 
COLLECT_GCC_OPTIONS='-I' '/home/huyuantao/workspace/hyperscan/build' '-I' '/home/huyuantao/workspace/hyperscan' '-I' '/home/huyuantao/workspace/hyperscan/src' '-isystem' '/home/huyuantao/workspace/hyperscan/include' '-v' '-O3' '-std=c99' '-Wall' '-Wextra' '-Wshadow' '-Wcast-qual' '-fno-strict-aliasing' '-D' 'NDEBUG' '-Wno-array-bounds' '-Wno-maybe-uninitialized' '-Wno-abi' '-fno-omit-frame-pointer' '-fvisibility=hidden' '-Wvla' '-Wpointer-arith' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wstringop-overflow=0' '-g' '-D' 'NDEBUG' '-march=core2' '-MD' '-MT' 'CMakeFiles/hs_exec_core2.dir/src/hwlm/hwlm.c.o' '-MF' 'CMakeFiles/hs_exec_core2.dir/src/hwlm/hwlm.c.o.d' '-o' 'CMakeFiles/hs_exec_core2.dir/src/hwlm/hwlm.c.o' '-c' '-dumpdir' 'CMakeFiles/hs_exec_core2.dir/src/hwlm/'
 /usr/lib/gcc/x86_64-linux-gnu/11/cc1 -quiet -v -I /home/huyuantao/workspace/hyperscan/build -I /home/huyuantao/workspace/hyperscan -I /home/huyuantao/workspace/hyperscan/src -imultiarch x86_64-linux-gnu -MD CMakeFiles/hs_exec_core2.dir/src/hwlm/hwlm.c.d -MF CMakeFiles/hs_exec_core2.dir/src/hwlm/hwlm.c.o.d -MT CMakeFiles/hs_exec_core2.dir/src/hwlm/hwlm.c.o -D NDEBUG -D NDEBUG -isystem /home/huyuantao/workspace/hyperscan/include /home/huyuantao/workspace/hyperscan/src/hwlm/hwlm.c -quiet -dumpdir CMakeFiles/hs_exec_core2.dir/src/hwlm/ -dumpbase hwlm.c.c -dumpbase-ext .c -march=core2 -g -O3 -Wall -Wextra -Wshadow -Wcast-qual -Wno-array-bounds -Wno-maybe-uninitialized -Wno-abi -Wvla -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wstringop-overflow=0 -std=c99 -version -fno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden -fasynchronous-unwind-tables -fstack-protector-strong -Wformat-security -fstack-clash-protection -fcf-protection -o /tmp/ccNwrJW9.s
GNU C99 (Ubuntu 11.4.0-1ubuntu1~22.04) version 11.4.0 (x86_64-linux-gnu)
	compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant