Project

General

Profile

Actions

Bug #1955

closed

luajit script init failed

Added by wilson green almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

lua script couldn't initialize,when with setting reassembly with segments.

14/11/2016 -- 18:55:48 - <Info> - enabling script httpKafka.lua
14/11/2016 -- 18:55:48 - <Error> - [ERRCODE: SC_ERR_LUA_ERROR(212)] - couldn't initialize scipt
14/11/2016 -- 18:55:48 - <Error> - [ERRCODE: SC_ERR_INVALID_ARGUMENT(13)] - output module setup failed

reassembly:
    memcap: 58gb
    depth: 512mb                  # reassemble 1mb into a stream
    toserver-chunk-size: 2560
    toclient-chunk-size: 2560
    randomize-chunk-size: yes
    #randomize-chunk-range: 10
    #raw: yes
    #chunk-prealloc: 250
    #segments:
    #  - size: 4
    #    prealloc: 256
    #  - size: 16
    #    prealloc: 512
    #  - size: 112
    #    prealloc: 512
    #  - size: 248
    #    prealloc: 512
    #  - size: 512
    #    prealloc: 512
    #  - size: 768
    #    prealloc: 1024
    #  - size: 1448
    #    prealloc: 1024
    #  - size: 65535
    #    prealloc: 128
    #zero-copy-size: 128
&lt;pre&gt;
    raw: yes
    chunk-prealloc: 20556
    segments:
      - size: 4
        prealloc: 61034
      - size: 16
        prealloc: 315465
      - size: 112
        prealloc: 114251
      - size: 248
        prealloc: 61034
      - size: 512
        prealloc: 30769
      - size: 768
        prealloc: 31793
      - size: 1448
        prealloc: 90470
      - size: 65535
        prealloc: 81342
&lt;/pre&gt;

when comment

 #segments:
    #  - size: 4
    #    prealloc: 61034
    #  - size: 16
    #    prealloc: 315465
    #  - size: 112
    ##    prealloc: 114251
    #  - size: 248
    #    prealloc: 61034
    #  - size: 512
    #    prealloc: 30769
    #  - size: 768
    #    prealloc: 31793
    #  - size: 1448
    #    prealloc: 90470
    #  - size: 65535
    #    prealloc: 81342


the lua script will be ok.


Files

suricata.yaml (67.4 KB) suricata.yaml can initialize wilson green, 11/14/2016 05:10 AM
suricata.yaml.2 (68.6 KB) suricata.yaml.2 couldn't initialize wilson green, 11/14/2016 05:16 AM
Actions

Also available in: Atom PDF