ValveSoftware / ValveSoftware/wine

LMDB fails to initialize due to`NtMapViewOfSection` returning `EAccess` error.

Open
#339 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

Compatibility Report

We're in the process of integrating LMDB (https://github.com/LMDB ) into our game and we're discovering that it fails to initialize under Proton.

System Information

  • Proton version: tried on multiple proton versions, including 10.0 and Experimental

I confirm:

  • that I haven't found an existing compatibility report for this game.
  • that I have checked whether there are updates for my system available.

Symptoms

LMDB internally calls NtMapViewOfSection which is loaded directly from ntdll, but the call reports a permission denied error (EAccess). I'm not sure if it's a proton issue or a wine issue, but I'm not sure where to report wine issues, so I decided to report it here.

Reproduction

Try to open an LMDB environment with a call:

const auto error = mdb_env_open(env.get(), location.c_str(), MDB_NOMETASYNC, 0644)

Observe that it returns permission denied.

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 failure with LMDB's mdb_env_open call under Proton, then trace Wine's handling of the NtMapViewOfSection call and its EAccess result. Done means the LMDB environment opens successfully instead of returning permission denied; no specific source file or test is named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
databases, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.