Skip to content

Concurrency problem in remote profiler communication mechanism #8639

Open
@asfernandes

Description

@asfernandes

The communication mechanism used in remote profiling is susceptible to race condition if the client abandon the read of a message.

That may happen if a RDB$PROFILER query is cancelled.

In that case, it will unlock the shared memory mutex while the server is processing a command. As soon the server is read to write the response, it will write things to the buffer, but as the client already unlocked the mutex, another client may already had taken the mutex and have written a new command to the same buffer.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions