emscripten-core / emscripten-core/emscripten

Long preloaded file not properly read on Windows

オープン
#19,955 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
27.6k
フォーク
3.6k
平均マージ
1日 14時間
マージ済み PR(30日)
125

説明

**Version of emscripten/emsdk:**
```
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.42 (6ede0b8fc1c979bb206148804bfb48b472ccc3da)
clang version 17.0.0 (https://github.com/llvm/llvm-project f3b64887de61020c09404bfee97b2fadd30df10a)
Target: wasm32-unknown-emscripten
Thread model: posix
```

**Bug Description**

In short, if a very long file (in my case, 116363 lines) is preloaded using `--preload-file`, nothing will go wrong when opening the html or js on linux. However on Windows, not all lines are included (in my case, only 112130 lines could be read), no matter using _node_ or a browser.

A reproducing example can be found at https://github.com/hjenryin/wasm_test. How results can be reproduced can be found in the readme file.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている wasm_test reproducer とその README から始め、生成された HTML または JavaScript を Linux と Windows で Node またはブラウザーから実行したときの、事前ロードされたファイルの内容を比較します。ファイルのパッケージ化または読み取りを担う Emscripten の --preload-file パスを追跡します。完了の条件は、Linux と同じように Windows でも 116363 行すべてを利用できることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js, wasm
領域
compilers, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。