[mimalloc-redirect] Redirect fails on Win11

Ouverte
#1,175 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
À clarifier
Activité
À l'abandon
Stack technique
c

Piste de recherche

Commencez par reproduire l’échec sur le build Windows 11 signalé avec mimalloc-redirect et la commande indiquée minject.exe --force --inplace. Examinez le comportement de la redirection et les diagnostics disponibles autour de l’avertissement signalé « standard malloc is not redirected » ; la tâche sera considérée comme terminée lorsque la cause spécifique à Windows aura été identifiée et qu’un correctif aura été vérifié, ou que les conditions requises auront été documentées.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Hey!

I seem to have found an issue on a Windows 11 machine where mimalloc-redirect fails.
For many other systems it works just fine, perhaps a recent Windows update is the cause?

  • Is there a way I can provide more information about the reason mimalloc-redirect fails?
  • "minject.exe" --force --inplace is called to reorder mimalloc dlls for the executable

mimalloc git hash: 754a98de5e2912fddbeaf24830f982b4540992f1bab4a0a8796ee118e0752bda
Operating System: Windows 11 Pro 64-bit (10.0, Build 26200) (26100.ge_release.240331-1435)

# mimalloc conan msvc.profile
settings
  arch: x86_64
  build_type: Release
  compiler: msvc
  compiler.cppstd: 23
  compiler.runtime: dynamic
  compiler.runtime_type: Release
  compiler.version: 194
  os: Windows
options
  guarded: False
  override: True
  secure: False
  shared: True
  win_redirect: True
Mimalloc version: 224
Is redirected: NO
Memory state: 1
Disable env var: 1
Verbose env var: 3
Options enabled: show_errors=ON, verbose=ON, show_stats=ON
  
mimalloc: v2.2.4, release (built on Nov 17 2025, 09:39:13)
mimalloc: option 'show_errors': 0 
mimalloc: option 'show_stats': 0 
mimalloc: option 'verbose': 3 
mimalloc: option 'eager_commit': 1 
mimalloc: option 'arena_eager_commit': 2 
mimalloc: option 'purge_decommits': 1 
mimalloc: option 'allow_large_os_pages': 0 
mimalloc: option 'reserve_huge_os_pages': 0 
mimalloc: option 'reserve_huge_os_pages_at': -1 
mimalloc: option 'reserve_os_memory': 0 KiB
mimalloc: option 'deprecated_segment_cache': 0 
mimalloc: option 'deprecated_page_reset': 0 
mimalloc: option 'abandoned_page_purge': 0 
mimalloc: option 'deprecated_segment_reset': 0 
mimalloc: option 'eager_commit_delay': 1 
mimalloc: option 'purge_delay': 10 
mimalloc: option 'use_numa_nodes': 0 
mimalloc: option 'disallow_os_alloc': 0 
mimalloc: option 'os_tag': 100 
mimalloc: option 'max_errors': 32 
mimalloc: option 'max_warnings': 32 
mimalloc: option 'max_segment_reclaim': 10 
mimalloc: option 'destroy_on_exit': 0 
mimalloc: option 'arena_reserve': 1048576 KiB
mimalloc: option 'arena_purge_mult': 10 
mimalloc: option 'purge_extend_delay': 1 
mimalloc: option 'abandoned_reclaim_on_free': 0 
mimalloc: option 'disallow_arena_alloc': 0 
mimalloc: option 'retry_on_oom': 400 
mimalloc: option 'visit_abandoned': 0 
mimalloc: option 'guarded_min': 0 
mimalloc: option 'guarded_max': 1073741824 
mimalloc: option 'guarded_precise': 0 
mimalloc: option 'guarded_sample_rate': 0 
mimalloc: option 'guarded_sample_seed': 0 
mimalloc: option 'target_segments_per_thread': 0 
mimalloc: option 'generic_collect': 10000 
mimalloc: debug level : 0
mimalloc: secure level: 0
mimalloc: mem tracking: none
mimalloc: process init: 0x2221D9C000
mimalloc-redirect: warning: standard malloc is _not_ redirected! -- using regular malloc/free. (v1.3.3)
mimalloc: using 1 numa regions
mimalloc: reserved 1048576 KiB memory
Langage dominant
C
Étoiles
13.6k
Forks
1.2k
Merge moyen
18 h 12 min
PR mergées (30 j)
20

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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoft/mimalloc

Toutes les issues de microsoft/mimalloc

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.