mattn / mattn/mruby-uv

Threading segfaults

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
92
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Are threads supposed to work?

This code triggers a segmentation fault:

t1 = UV::Thread.new do
  puts "Thread 1"
end

t2 = UV::Thread.new do
  puts "Thread 2"
end

t1.join
t2.join

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by running the reported Ruby example using UV::Thread and capture the segmentation fault. Trace the threading implementation and verify that both threads can be created, joined, and print their messages without crashing; the issue names no source files or tests to inspect.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, ruby
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.