Deallocation hangs -- regression moving from `0.9.1` to `0.10.*`
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- rust
- Domaine
- operating-systems
Piste de recherche
Start with src/hole.rs, especially Cursor::try_insert_after at line 547 and the deallocate paths at lines 679 and 438 shown in the backtrace. Compare behavior between linked_list_allocator 0.9.1 and 0.10.1–0.10.3 using the Theseus configuration and Rust nightly 1.64. Done means identifying a reproducible failure condition and resolving or clearly isolating the deallocation hang.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
We just ran into a strange issue in Theseus OS where the deallocation path hangs. I'm not yet 100% sure what the precise failure condition is, but I wanted to post this issue sooner rather than later in case anyone else has run across this.
So far it only occurs in an OS execution path that causes more heap allocations than what we normally do, so it could be related to heavy heap usage. Also not sure if it's related to the pending issue #66, which alludes to an issue with fragmentation (?).
Relevant details
Theseus uses linked_list_allocator as its early heap allocator. Through bisection, I've confirmed that this issue only occurred after upgrading from linked_list_allocator 0.9.1 to 0.10.3 (https://github.com/theseus-os/Theseus/pull/646), and I confirmed that the problem is present in both 0.10.1 and 0.10.2 as well. If it's relevant, we're using linked_list_allocator as such:
[dependencies.linked_list_allocator]
version = "0.10.3"
default-features = false
features = [ "const_mut_refs" ]
Using Rust nightly 1.64
$ rustc --version
rustc 1.64.0-nightly (f8588549c 2022-07-18)
Backtrace
I have a partial backtrace from GDB but it isn't complete; will work on improving it as I narrow down the exact cause.
#0 0xffffffff8011e916 in linked_list_allocator::hole::Cursor::try_insert_after (node=..., self=<optimized out>) at src/hole.rs:547
#1 linked_list_allocator::hole::deallocate (list=<optimized out>, addr=0xfffffe80004d1700 "\000", size=4096) at src/hole.rs:679
#2 linked_list_allocator::hole::HoleList::deallocate (self=<optimized out>, ptr=..., layout=...) at src/hole.rs:438
I can also add steps to repro this behavior in Theseus but it probably wouldn't be useful until I can more specifically determine the exact failure condition.
- Langage dominant
- Rust
- Étoiles
- 242
- Forks
- 56
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de rust-osdev/linked-list-allocator
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
-
Support for reallocationsOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
rust-osdev/linked-list-allocator#86 · 3 réactions ·
-
Integer overflow in deallocationOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
help wanted
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
rust-osdev/linked-list-allocator#83 · 2 commentaires ·
Toutes les issues de rust-osdev/linked-list-allocator
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
swc-project/swc-next#1165 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Alive24/shea-symphony#574 ·
-
[ko] Translate /team into KoreanOuvertedocumentation good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
dev-five-git/devup-ui#879 ·
Les mainteneurs répondent en général sous 11 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
farion1231/cc-switch#9038 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
FalkorDB/FalkorDB#3597 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours