Segmentation fault in asio "compensating_work_started" function

Open
#1,093 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
cpp
Domain
networking

Research direction

The reported entry point is scheduler::compensating_work_started(); begin by reproducing the SIGSEGV and inspecting the provided GDB backtrace and thread_call_stack context. Determine why the dereferenced thread state is invalid, then verify the fix with a regression test for the reported scenario.

Written by the indexing model from the issue text.

Description

I encountered a SIGSEGV error when using the asio library. I checked the backtrace with GDB and found that the error occurred in the compensating_work_started function.

void scheduler::compensating_work_started()
{
    thread_info_base* this_thread = thread_call_stack::contains(this);
    ++static_cast<thread_info*>(this_thread)->private_outstanding_work;
}

Dominant language
HTML
Stars
8.6k
Forks
2k
Avg merge
9h 35m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/boost

All issues in boostorg/boost

Similar issues

More Networking issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.