mesonbuild / mesonbuild/meson

gnome.generate_gir uses improper shared-library with executable and ASAN

Open
#4,541 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.6k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
33

Description

If you pass an executable() to gnome.generate_gir() and -Db_sanitize=address is enabled, you can end up with a .gir file that has shared-library="libasan.so.5" or similar.

This causes a problem at runtime as GObject Introspection will fail to locate the proper symbols.

Contributor guide

Open the contributing guide

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 tracing the implementation of gnome.generate_gir and how it determines the shared-library value when an executable is used with -Db_sanitize=address. Reproduce the issue and inspect the generated .gir file. Done means the GIR file names the proper library rather than libasan.so.5, and GObject Introspection can locate the expected symbols.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.