this post was submitted on 23 Dec 2023
9 points (90.9% liked)

Programming

17444 readers
200 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

Hi. I'm working on a project that compiles Rust code to WASM, and uses WASI in Node.js to execute it. After some development, I encountered a segmentation fault happening in the wasi.start() function. Considering that I'm kinda new to Node I was only able to understand that it was happening after the call to the exported WASM method returned.

This happened almost two months ago, and while I thought about reporting this to the node devs (WASI's also experimental), I was going to move soon and a lot has gone on.

Yesterday I tried to reproduce the bug on my laptop (that is not my usual development environment, which I don't have access to right now) but I wasn't able to.

I had to start fresh and install all the necessary tools from zero, so my theory is that there was something wrong in the previous environment. I'm also on Gentoo now, while I was running Arch previously.

Unfortunately I don't have the means to check on other environments. I tried to reproduce the old environment, installing the same versions of node and rust, with no luck. I also tested this with the latest versions and everything works fine.

This situation is upsetting. I don't know what's changed that caused the problem to "disappear", so i feel uncomfortable considering this solved. What would be the best approach in this situation?

EDIT: I also just tested it on Debian live, and I still wasn't able to reproduce the segfault

top 4 comments
sorted by: hot top controversial new old
[–] eluvatar@programming.dev 7 points 11 months ago (1 children)

I'd keep going until you see it again and try to solve it then. I wouldn't report an issue that you can't reproduce, some projects refuse to accept issues without a repro. Sometimes something weird happens and you don't know why and you'll never know, you just need to move on and keep building, if it's a real problem it'll come back.

[–] orsetto@lemmy.dbzer0.com 0 points 11 months ago

i think i'll submit a report with the exact info of the other environment, when i'll get back at it. for now i'll keep going.

as another comment is saying, if it's not useful they'll just ignore it.

[–] ExperimentalGuy@programming.dev 2 points 11 months ago (1 children)

I would say probably submit a bug report that says what you were using as ur dev env at the time. If they patched it, they'll delete your report and if they haven't patched it, you've given them some great info. Either way it doesn't hurt to leave a report

[–] orsetto@lemmy.dbzer0.com 1 points 11 months ago

yeah i'll probably do this, as soon as i get back to the other environment. thank you :)