Skip to content

segfault after trying to include a previous deleted policy #170

@ghost

Description

pktvisor is generating segfault and also error if you delete an policy and try to add the same deleted again.

Logs

[2022-01-07 10:09:52.112] [visor] [info] policy [default]: stopping
[2022-01-07 10:09:52.113] [visor] [info] policy [default]: stopping input instance: default-default
[2022-01-07 10:09:53.894] [visor] [info] policy [default]: stopping handler instance: default-net
[2022-01-07 10:09:53.894] [visor] [info] policy [default]: stopping handler instance: default-dhcp
[2022-01-07 10:09:53.894] [visor] [info] policy [default]: stopping handler instance: default-dns
[2022-01-07 10:09:53.894] [visor] [info] policy [default]: stopping handler instance: default-pcap_stats
[2022-01-07 10:09:53.894] [visor] [info] REQUEST: DELETE /api/v1/policies/default 200
[2022-01-07 10:10:05.365] [visor] [info] policy [default]: parsing
[2022-01-07 10:10:05.365] [visor] [info] policy [default]: instantiating Tap: default
[2022-01-07 10:10:05.366] [visor] [info] policy [default]: instantiating Handler net of type net
[2022-01-07 10:10:05.376] [visor] [info] policy [default]: instantiating Handler dhcp of type dhcp
[2022-01-07 10:10:05.383] [visor] [info] policy [default]: instantiating Handler dns of type dns
[2022-01-07 10:10:05.405] [visor] [info] policy [default]: instantiating Handler pcap_stats of type pcap
[2022-01-07 10:10:05.408] [visor] [info] policy [default]: starting
[2022-01-07 10:10:05.408] [visor] [info] policy [default]: starting input instance: default-default
[2022-01-07 10:10:05.450] [visor] [info] policy [default]: starting handler instance: default-net
[2022-01-07 10:10:05.450] [visor] [info] policy [default]: starting handler instance: default-dhcp
[2022-01-07 10:10:05.450] [visor] [info] policy [default]: starting handler instance: default-dns
[2022-01-07 10:10:05.450] [visor] [info] policy [default]: starting handler instance: default-pcap_stats
[2022-01-07 10:10:05.450] [visor] [info] REQUEST: POST /api/v1/policies 500
[2022-01-07 10:10:05.451] [visor] [error] {"error":"policy [default] creation failed (input): module name 'default-default' already exists"}
Segmentation fault

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