{"id":18046619,"url":"https://github.com/ltla/h5wasm-pthreads-mre","last_synced_at":"2026-01-31T14:03:05.075Z","repository":{"id":82716784,"uuid":"485955826","full_name":"LTLA/h5wasm-pthreads-MRE","owner":"LTLA","description":"A minimum reproducible example of my problem.","archived":false,"fork":false,"pushed_at":"2022-04-27T05:54:01.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T04:04:44.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","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/LTLA.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-26T21:39:58.000Z","updated_at":"2022-04-26T21:40:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e785782-405b-40bb-8154-55c02b8291cd","html_url":"https://github.com/LTLA/h5wasm-pthreads-MRE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LTLA/h5wasm-pthreads-MRE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTLA%2Fh5wasm-pthreads-MRE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTLA%2Fh5wasm-pthreads-MRE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTLA%2Fh5wasm-pthreads-MRE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTLA%2Fh5wasm-pthreads-MRE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LTLA","download_url":"https://codeload.github.com/LTLA/h5wasm-pthreads-MRE/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LTLA%2Fh5wasm-pthreads-MRE/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28944789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T13:02:32.153Z","status":"ssl_error","status_checked_at":"2026-01-31T13:00:07.528Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-30T19:08:13.337Z","updated_at":"2026-01-31T14:03:05.060Z","avatar_url":"https://github.com/LTLA.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal example for HDF5 + Pthreads failure\n\n... even though I'm not actually using HDF5 in any parallel regions.\n\n1. Install and activate the latest Emscripten (3.1.9).\n2. Run `./build.sh` to build the minimal example.\n3. Run `./run.sh` to run through a few hundred iterations of the test code.\n\nOnce every hundred iterations or so, this will give sporadic errors like:\n\n```\nRuntimeError: Aborted(segmentation fault)\n    at abort (file:///Users/luna/Programming/js/h5-mre/build/minimal.js:1506:10)\n    at segfault (file:///Users/luna/Programming/js/h5-mre/build/minimal.js:924:2)\n    at SAFE_HEAP_LOAD_i32_1_U_1 (\u003canonymous\u003e:wasm-function[605]:0x10071)\n    at _emscripten_thread_sync_code (\u003canonymous\u003e:wasm-function[226]:0x51ea)\n    at _emscripten_yield (\u003canonymous\u003e:wasm-function[241]:0x5a52)\n    at emscripten_futex_wait (\u003canonymous\u003e:wasm-function[227]:0x52cd)\n    at __timedwait_cp (\u003canonymous\u003e:wasm-function[284]:0x7291)\n    at __timedwait (\u003canonymous\u003e:wasm-function[285]:0x72f8)\n    at __pthread_mutex_timedlock (\u003canonymous\u003e:wasm-function[310]:0x7d74)\n    at __pthread_mutex_lock (\u003canonymous\u003e:wasm-function[308]:0x7c62)\n```\n\nObservations:\n\n- Failure rate is very low but reproducible; around 1 per 200 runs on my Mac.\n- You may need to increase the number of threads in `minimal.cpp` and the linker flags to get the error to trigger at a reasonable rate.\n  For my Ubuntu machine, I need to bump it up to 8 threads to get the same error rate as the Mac.\n- Doesn't fail with 3.1.8 (tested ~1000 runs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltla%2Fh5wasm-pthreads-mre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltla%2Fh5wasm-pthreads-mre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltla%2Fh5wasm-pthreads-mre/lists"}