micro-editor / micro-editor/micro

FUTEX_WAIT_PRIVATE on Linux

Open
#2,380 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description of the problem or steps to reproduce

Sometimes micro gets stuck when trying to open a file (nothing get displayed, just a blank screen), even with a small file (in latest case 983 bytes).

strace shows it stuck on futex(ADDRESS, FUTEX_WAIT_PRIVATE, 0, NULL)

In any case where micro is stuck like this, nano has no problem opening the file.

When micro failed today, chromium froze too but was fine on restarting the browser, whereas I don't know how to unstuck micro, usually I restart the OS but this time it worked fine 20 minutes later..

This problem may be similar to #1818 .

Specifications

Version: 2.0.10
Commit hash: b9763856
Compiled on August 27, 2021
OS: Arch Linux, 5.16.11
Terminal: Konsole

Thank you!

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 reproducing the blank-screen hang while opening a small file on the reported micro version and Arch Linux environment, using strace to confirm the FUTEX_WAIT_PRIVATE wait. Compare the symptoms with issue #1818 and determine what distinguishes micro from nano; done means the hang is explained and no longer occurs in the reported scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, linux
Domain
cli, operating-systems
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.