[mimalloc-redirect] Redirect fails on Win11

Offen
#1,175 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
c

Rechercherichtung

Beginne damit, den Fehler im gemeldeten Windows-11-Build mit mimalloc-redirect und dem gezeigten Befehl minject.exe --force --inplace zu reproduzieren. Untersuche das Redirect-Verhalten und die verfügbaren Diagnosen rund um die gemeldete Warnung „standard malloc is not redirected“; abgeschlossen ist die Aufgabe, wenn die Windows-spezifische Ursache identifiziert und eine Fehlerbehebung verifiziert oder die erforderlichen Bedingungen dokumentiert wurden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
C
Sterne
13.6k
Forks
1.2k
Ø Merge
18 Std. 12 Min.
Gemergte PRs (30 T.)
20

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/mimalloc

Alle Issues in microsoft/mimalloc

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.