{"id":20667020,"url":"https://github.com/lu-zero/testcase-wasi-alloc","last_synced_at":"2026-04-23T10:32:45.670Z","repository":{"id":139398649,"uuid":"238657847","full_name":"lu-zero/testcase-wasi-alloc","owner":"lu-zero","description":"Testcase for a strange allocation problem","archived":false,"fork":false,"pushed_at":"2020-02-06T10:30:20.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T15:17:14.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/lu-zero.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":"2020-02-06T10:02:00.000Z","updated_at":"2020-06-22T15:21:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"e66d5bfa-465b-4e3c-8044-c175bff2789a","html_url":"https://github.com/lu-zero/testcase-wasi-alloc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lu-zero/testcase-wasi-alloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Ftestcase-wasi-alloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Ftestcase-wasi-alloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Ftestcase-wasi-alloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Ftestcase-wasi-alloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lu-zero","download_url":"https://codeload.github.com/lu-zero/testcase-wasi-alloc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zero%2Ftestcase-wasi-alloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32176568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-11-16T19:42:37.727Z","updated_at":"2026-04-23T10:32:45.652Z","avatar_url":"https://github.com/lu-zero.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strange allocation/addressing failure\n\nAny alignment above 3 (64bit) fails even if `v128` should require 128 bit alignment.\n\n``` sh\n$ rustup target add wasm32-wasi\n$ cargo build --target wasm32-wasi\n```\n\n``` sh\n$ wasmtime target/wasm32-wasi/debug/testcase.wasm -- 5\n...\nindex at 131070 len 307200\nindex at 131071 len 307200\nindex at 131072 len 307200\nSegmentation fault\n```\n\n``` sh\n$ wasmtime target/wasm32-wasi/debug/testcase.wasm -- 4\n...\nindex at 131070 len 307200\nindex at 131071 len 307200\nindex at 131072 len 307200\nError: failed to run main module `target/wasm32-wasi/debug/testcase.wasm`\n\nCaused by:\n    0: failed to invoke `_start`\n    1: wasm trap: out of bounds memory access, source location: @6999\n       wasm backtrace:\n         0: \u003cunknown\u003e!testcase::PlaneData::new::hdfb5845c549bf326\n```\n\n``` sh\n$ wavm run --abi=wasi target/wasm32-wasi/debug/testcase.wasm ${align}\n...\nindex at 131072 len 307200\nRuntime exception: wavm.outOfBoundsMemoryAccess(+1703936)\nCall stack:\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN8testcase9PlaneData3new17h2664eb193e5f086dE+379\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN8testcase4main17h4820968c490e6e56E+58\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h1b5cf38201ff41a0E+20\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h51b9f3fe0bfdc5cdE+3\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN3std9panicking3try7do_call17hcce8bad532002067E+7\n  wasm!target/wasm32-wasi/debug/testcase.wasm!__rust_maybe_catch_panic+2\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN3std2rt19lang_start_internal17h7161fc5134e0d17aE+93\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_ZN3std2rt10lang_start17hd0cc83fd85c32f30E+47\n  wasm!target/wasm32-wasi/debug/testcase.wasm!__original_main+7\n  wasm!target/wasm32-wasi/debug/testcase.wasm!_start+1\n  thnk!C to WASM thunk!()-\u003e()+0\n  host!wavm+12617510\n  host!wavm+13695445\n  host!wavm+13799219\n  host!wavm+11656926\n  host!wavm+11646680\n  host!wavm+11637813\n  \u003c2 redundant frames omitted\u003e\n  host!wavm+11636211\n  host!wavm+11545749\n  host!/lib64/libc.so.6!__libc_start_main+237\n  host!wavm+11481128\n\nAborted\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zero%2Ftestcase-wasi-alloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flu-zero%2Ftestcase-wasi-alloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zero%2Ftestcase-wasi-alloc/lists"}