{"id":15576408,"url":"https://github.com/njsmith/test-link-namespaces","last_synced_at":"2026-07-18T18:01:46.668Z","repository":{"id":145902396,"uuid":"51282031","full_name":"njsmith/test-link-namespaces","owner":"njsmith","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-08T06:10:12.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T17:38:54.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/njsmith.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-08T06:09:09.000Z","updated_at":"2016-02-08T06:10:29.000Z","dependencies_parsed_at":"2023-05-09T16:52:24.536Z","dependency_job_id":null,"html_url":"https://github.com/njsmith/test-link-namespaces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/njsmith/test-link-namespaces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Ftest-link-namespaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Ftest-link-namespaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Ftest-link-namespaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Ftest-link-namespaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njsmith","download_url":"https://codeload.github.com/njsmith/test-link-namespaces/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Ftest-link-namespaces/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35626138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T18:48:47.946Z","updated_at":"2026-07-18T18:01:46.631Z","avatar_url":"https://github.com/njsmith.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Small repo for testing how ``dlopen`` namespaces work in Linux/ELF.\n\n``_regex.so`` is a small Python extension taken from a Debian system,\nthat does not explictly link to ``libpython2.7.so.1``.\n\n``linktest.c`` and ``plugin.c`` together make some programs to check\nhow different ways of linking and running Python extensions work.\n\n::\n\n   $ ./build.sh\n\n   $ ./linktest-with-python\n   Checking for a priori presence of python...\n   FOUND: we were linked with -lpython\n   Using dlopen to load libpython\n   Using dlopen to load a python extension\n   Initializing dlopen'ed python interpreter\n     (hello world from dlopen embedded python!)\n     Address of True is 7fcfa37f49f0\n   Using dlopen'ed python interpreter to load a non-existent module\n   Traceback (most recent call last):\n     File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n   ImportError: No module named nosuchmodule\n   ...failed, as expected\n   Using dlopen'ed python interpreter to load an extension module\n   ...succeeded\n   Running in plugin:\n     (hello world from plugin embedded python!)\n     Address of True is 7fcfa37f49f0\n   Plugin attempting to load a non-existent module\n   Traceback (most recent call last):\n     File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n   ImportError: No module named nosuchmodule\n   ...failed, as expected\n   Plugin attempting to load an extension module\n   ...succeeded\n\n   $ ./linktest-no-python\n   Checking for a priori presence of python...\n   NOT FOUND: we were NOT linked with -lpython\n   Using dlopen to load libpython\n   Using dlopen to load a python extension\n     dlopen error: _regex: ./_regex.so: undefined symbol: _Py_ZeroStruct\n   Initializing dlopen'ed python interpreter\n     (hello world from dlopen embedded python!)\n     Address of True is 7f7f9ef0d9f0\n   Using dlopen'ed python interpreter to load a non-existent module\n   Traceback (most recent call last):\n     File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n   ImportError: No module named nosuchmodule\n   ...failed, as expected\n   Using dlopen'ed python interpreter to load an extension module\n   Traceback (most recent call last):\n     File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n   ImportError: /home/njs/manylinux/link-namespaces/_regex.so: undefined symbol: _Py_ZeroStruct\n   ...failed\n   Running in plugin:\n     (hello world from plugin embedded python!)\n     Address of True is 7f7f9ef0d9f0\n   Plugin attempting to load a non-existent module\n   Traceback (most recent call last):\n     File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n   ImportError: No module named nosuchmodule\n   ...failed, as expected\n   Plugin attempting to load an extension module\n   Traceback (most recent call last):\n     File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n   ImportError: /home/njs/manylinux/link-namespaces/_regex.so: undefined symbol: _Py_ZeroStruct\n   ...failed\n\nIt's also interesting to run these with ``LD_DEBUG=scopes`` to get a\nsense of what's going on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjsmith%2Ftest-link-namespaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjsmith%2Ftest-link-namespaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjsmith%2Ftest-link-namespaces/lists"}