Skip to content

astron: Fix segfault when handling CLIENTAGENT_ADD_INTEREST and Interest Operation times out #3

Open

Description

@maxrdz

The astron cluster crashes with a segmentation fault when it receives a CLIENTAGENT_ADD_INTEREST message from the AI process. Weird behavior to note: If you send this message with parent ID 0 and zone ID 0, it does not crash the astron daemon. And I have no idea why.

Activity

  1. added
    bug
    help wanted
    on Mar 20, 2023
  2. self-assigned this
    on Mar 20, 2023
  3. maxrdz commented on Mar 20, 2023

    @maxrdz
    OwnerAuthor

    The temporary but very not logical fix for this issue is to comment out all the lines in the InterestOperation::timeout() function @ src/clientagent/Client.cpp.

    void InterestOperation::timeout()
    {
        //lock_guard<recursive_mutex> lock(m_client->m_client_lock);
        //m_client->m_log->warning() << "Interest operation timed out; forcing.\n";
        //finish(true);
    }

    Note: the astrond coredump points the segfault to happen when the mutex is locked, but if you remove only that line it says it happens somewhere in the InterestOperation::timeout() function, but if you remove the m_log->warning() line it will say the segfault happens in InterestOperation::finish(bool timeout)???????

  4. changed the title [-]astron: Fix segfault when handling `CLIENTAGENT_ADD_INTEREST` [/-] [+]astron: Fix segfault when handling `CLIENTAGENT_ADD_INTEREST` and Interest Operation times out[/+] on Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bughelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions