Skip to content

Different Behaviors from native Linux (original) and WASM (WAMR) #1719

@chaoyu404

Description

@chaoyu404

Hello,
I am trying to merge llhttp into my project in the WASM manner, but getting failed. After deep-dive, I realized that llhttp was working incorrectly. To clarify the issue, I cloned llhttp individually, configurated the testbed and compared llhttp behaviors on native Linux and WAMR respectively.

llhttp can parse the test HTTP message successfully on native OS (Linux). However, if we built llhttp in the WASM manner and executed it on WAMR, it cannot parse the message and return error, such as "wasm operand stack overflow". It surprised me. Maybe something wrong with WAMR or wasi-sdk?

To reproduce this issue quickly, I attached the my test package. The test steps are stated in the README.md. Please help to figure out why llhttp got failed. Thanks.

llhttp_test_package.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions