这是indexloc提供的服务,不要输入任何密码
Skip to content

While closing a connection to a switch, code crashes with a segmentation fault #5

@atinr

Description

@atinr

Error Type: Segmentation fault
Description: In the current implementation of the acceptor pattern, in the nocontrol/ofp-control folder, the code crashes when the connection between the switch and the freeflow controller(nocontrol) is closed by the switch.
Location : freeflow/sys/reactor.ipp, line 40("delete h")
Code Snippet :
inline void
Reactor::remove_handler(Event_handler* h) {
timers_.cancel(h);
handlers_.remove(h);
if (h->has_flags(HANDLER_IS_OWNED)
delete h; // <-- line 40
}
Reason: The handler object has already been deleted in the nocontrol/ofp-control/openflow.cpp:line 60(on calling the on_close method)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions