Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database segfault #463

Closed
nordlander opened this issue Jan 13, 2022 · 2 comments
Closed

Database segfault #463

nordlander opened this issue Jan 13, 2022 · 2 comments
Labels
bug Something isn't working DB Related to the backend database
Milestone

Comments

@nordlander
Copy link
Contributor

I'm getting a segfault in the db client code when I try to run 'make test_db_app' in the test directory. It happens consistently during bootstrapping, in fact while committing the very first actor (env_actor) to the database.

I've determined the call chain to be

remote_commit_txn
    close_client_txn
        get_client_txn_state
            skiplist_search
                list->cmp

And the last call probably crashes because its first argument (x->forward[i]->key) is NULL.

I haven't tried hunting this down any further because I suspect the error might be something related to my environment -- after all, the main branch has passed the CI tests and 'make test_db_app' is one of them!

So it's definitely a local problem on my laptop and I'm mostly curious about what a NULL key in the scenario above might be caused by. @aagapi: any idea?

@plajjan plajjan added bug Something isn't working DB Related to the backend database labels Jan 13, 2022
@plajjan plajjan added this to the DDB1 milestone Jan 13, 2022
@plajjan
Copy link
Contributor

plajjan commented Jan 18, 2022

FWIW, we are seeing intermittent failure on MacOS in the CI tests. The application dies with a segfault but I think it usually progresses a fair bit, like it doesn't die while committing the first stuff to the DB but rather runs some continuations etc. Could be related, or not at all related 🤷

@plajjan
Copy link
Contributor

plajjan commented Jan 26, 2022

Fixed through #488. Closing.

@plajjan plajjan closed this as completed Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DB Related to the backend database
Projects
None yet
Development

No branches or pull requests

2 participants