Skip to content

CI: [diagnostic, do not merge] Dump gdal313.dll exports / _gdal.pyd imports - #702

Closed
echoix wants to merge 2 commits into
mainfrom
ci-diag/dumpbin-gdal-symbols
Closed

echoix wants to merge 2 commits into
mainfrom
ci-diag/dumpbin-gdal-symbols

Conversation

@echoix

@echoix echoix commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Purpose

Companion to the gdal-3.13.3-1 pin test (see the sibling diagnostic PR).
The OSGeo4W CI job fails with ImportError: DLL load failed while importing _gdal: The specified procedure could not be found since the
gdal OSGeo4W package moved from 3.13.3-1 to 3.13.3-2 on
2026-09-25 (jef-n/OSGeo4W@60c26bff backports OSGeo/gdal#15007, which
touches gcore/gdaldllmain.cpp and removes the exported symbol
GDALIsInGlobalDestructorFromDLLMain).

What this PR does

Adds one temporary step to .github/workflows/osgeo4w.yml, right after
OSGeo4W setup (against the current, unmodified 3.13.3-2 build), that:

  • Locates dumpbin.exe via vswhere (already on the windows-2022
    runner).
  • Dumps gdal313.dll's exports filtered for GlobalDestructor.
  • Dumps _gdal.pyd's dependents and full import table.

This should show directly whether _gdal.pyd is trying to import a
symbol that no longer exists in the rebuilt gdal313.dll, confirming
the exact missing procedure behind the CI failure.

This PR is for CI investigation only and is not meant to be merged.

🤖 Generated with Claude Code

Runs dumpbin on the currently installed gdal313.dll and _gdal.pyd
right after OSGeo4W setup, to find which exported symbol is missing
and causing "DLL load failed... The specified procedure could not be
found" when importing osgeo.gdal, first seen in CI on 2026-09-25
after the gdal package moved from 3.13.3-1 to 3.13.3-2.

Temporary, for CI investigation only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
python3-gdal installs osgeo/_gdal.cp312-win_amd64.pyd (ABI-tagged),
not _gdal.pyd, so the previous filter matched nothing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@echoix echoix closed this Oct 1, 2026
@echoix
echoix deleted the ci-diag/dumpbin-gdal-symbols branch October 1, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant