I've got a component which executes as a command via main(), after which exported functions may be called as part of an extended lifecycle for the application.
I'm finding that while these executions work correctly, and wasi-logging works correctly, printf only works correctly during the main() function, and after that its output is being entirely swallowed.
Here's a repo demonstrating the case - https://github.com/guybedford/wasi-command-export-printf. It's still a largeish component for Spidermonkey, I could possibly reduce it further, but perhaps the above is enough to track.
I've got a component which executes as a command via
main(), after which exported functions may be called as part of an extended lifecycle for the application.I'm finding that while these executions work correctly, and
wasi-loggingworks correctly,printfonly works correctly during themain()function, and after that its output is being entirely swallowed.Here's a repo demonstrating the case - https://github.com/guybedford/wasi-command-export-printf. It's still a largeish component for Spidermonkey, I could possibly reduce it further, but perhaps the above is enough to track.