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

Deadlock happens when running 'List Trace Sessions' service and there are many active trace sessions #8151

Closed
hvlad opened this issue Jun 5, 2024 · 2 comments

Comments

@hvlad
Copy link
Member

hvlad commented Jun 5, 2024

The bug was found when few instances of QA tests was running concurrently.

The stack trace is attached, look at threads 7 and 2

The problem happens when textual representation for list of trace sessions takes more than 1KB (internal size of service output buffer) and service working thread runs faster than service start thread fire EVENT_SERVICE_START.

@hvlad hvlad self-assigned this Jun 5, 2024
@hvlad hvlad added the type: bug label Jun 5, 2024
@hvlad hvlad changed the title Deadlock happens when one process run 'List Trace Sessions' service and there are many active trace sessions Deadlock happens when run 'List Trace Sessions' service and there are many active trace sessions Jun 5, 2024
hvlad added a commit that referenced this issue Jun 5, 2024
…vice and there are many active trace sessions
@Noremos
Copy link
Contributor

Noremos commented Jun 7, 2024

Hello. I've noticed the findSession method does not check check if the slot is alive (used > 0) or not. Is it by design?

@hvlad
Copy link
Member Author

hvlad commented Jun 7, 2024

Hello. I've noticed the findSession method does not check check if the slot is alive (used > 0) or not. Is it by design?

Yes, by design. This is low-level routine that implements binary search, no more.
The caller intentions is not known here.

hvlad added a commit that referenced this issue Jun 8, 2024
… tracing own start as shown by failed QA tests:

tests\bugs\core_3168_test.py
tests\bugs\core_3658_test.py
tests\functional\services\test_role_in_service_attachment.py
hvlad added a commit that referenced this issue Jun 9, 2024
…vice and there are many active trace sessions
hvlad added a commit that referenced this issue Jun 9, 2024
…vice and there are many active trace sessions
hvlad added a commit that referenced this issue Jun 13, 2024
…e Sessions' service and there are many active trace sessions
@hvlad hvlad closed this as completed Jun 13, 2024
@mrotteveel mrotteveel changed the title Deadlock happens when run 'List Trace Sessions' service and there are many active trace sessions Deadlock happens when running 'List Trace Sessions' service and there are many active trace sessions Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants