Skip to content

Panic: Check potential BUG While running with the simulator #26

Open
@eranra

Description

@eranra

0:00 DstNet:15 DstPort:80 DstVlan:0 EgressVrfID:0 Etype:2048 FlowDirection:0 ForwardingStatus:0 FragmentId:0 FragmentOffset:0 HasMPLS:false IPTTL:0 IPTos:0 IPv6FlowLabel:0 IcmpCode:0 IcmpType:0 InIf:0 IngressVrfID:0 MPLS1Label:0 MPLS1TTL:0 MPLS2Label:0 MPLS2TTL:0 MPLS3Label:0 MPLS3TTL:0 MPLSCount:0 MPLSLastLabel:0 MPLSLastTTL:0 NextHop:rMcPAQ== NextHopAS:0 OutIf:0 Packets:803 Proto:6 SamplerAddress:fwAAAQ== SamplingRate:0 SequenceNum:91 SrcAS:43476 SrcAddr:112.10.20.10 SrcMac:00:00:00:00:00:00 SrcNet:2 SrcPort:40 SrcVlan:0 TCPFlags:0 TimeFlowEnd:1.642509669e+09 TimeFlowStart:1.642509669e+09 TimeReceived:1.642509669e+09 Type:2 VlanId:0]"
time="2022-01-18T12:41:29Z" level=debug msg="transformRule = {DstAddr dstIP}"
time="2022-01-18T12:41:29Z" level=debug msg="transformRule = {SrcAddr srcIP}"
time="2022-01-18T12:41:29Z" level=debug msg="transformRule = {Bytes bytes}"
time="2022-01-18T12:41:29Z" level=debug msg="transformRule = {DstPort dstPort}"
time="2022-01-18T12:41:29Z" level=debug msg="transformRule = {Proto proto}"
time="2022-01-18T12:41:29Z" level=debug msg="Transform.GenericMap = map[bytes:987 dstIP:172.30.190.10 dstPort:80 proto:6 srcIP:112.10.20.10]"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x14bfeb4]

goroutine 1 [running]:
github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline/transform.ExecuteTransforms({0xc00041c160, 0x2, 0x290}, 0x16)
/app/pkg/pipeline/transform/transform.go:91 +0x54
github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline.Pipeline.Process({{0x1a77760, 0xc0003cdea0}, {0x1a77680, 0x2771ef0}, {0xc00041c160, 0x2, 0x2}, {0x1a77700, 0xc0003f4ba0}, {0x1a776e0, ...}, ...}, ...)
/app/pkg/pipeline/pipeline.go:156 +0x177
github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline/ingest.(*ingestCollector).processLogLines(0xc0003cdea0, 0xc0004171f0)
/app/pkg/pipeline/ingest/ingest_collector.go:151 +0xf5
github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline/ingest.(*ingestCollector).Ingest(0xc0003cdea0, 0x4)
/app/pkg/pipeline/ingest/ingest_collector.go:100 +0x85
github.ibm.com/MCNM/observability/flowlogs2metrics/pkg/pipeline.(*Pipeline).Run(...)
/app/pkg/pipeline/pipeline.go:145
main.run()
/app/cmd/flowlogs2metrics/main.go:168 +0x167
main.glob..func1(0x272aea0, {0x186b22d, 0x1, 0x1})
/app/cmd/flowlogs2metrics/main.go:47 +0x17
github.com/spf13/cobra.(*Command).execute(0x272aea0, {0xc0000aa010, 0x1, 0x1})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x5f8
github.com/spf13/cobra.(*Command).ExecuteC(0x272aea0)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
main.main()
/app/cmd/flowlogs2metrics/main.go:145 +0x25

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions