You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I missed this the first time around. Thanks to Roman for catching this and
providing a test case.
Fixes#2.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
This appears to be bindgen bug, but not entirely sure that's the case.
On d8c91c3 (from #1 )
with the following patch applied:
fails with:
The trap happens in
wasip3-prototyping/crates/test-programs/src/bin/sockets_0_3_tcp_connect.rs
Lines 32 to 41 in d8c91c3
TcpSocket
at the end of the scope.The issue does not happen if
connect
is not called.Interestingly, the host
drop
is never calledwasip3-prototyping/crates/wasi/src/p3/sockets/host/types/tcp.rs
Lines 462 to 467 in d8c91c3
The host
connect
implementation does not create borrows and eachget_mut
borrow of the store should be dropped at the end of the scopewasip3-prototyping/crates/wasi/src/p3/sockets/host/types/tcp.rs
Lines 104 to 187 in d8c91c3
TcpSocket
once it's done with the method call?connect
is implemented as async in the host, but is used as sync in the guest?One potential scenario could be:
TcpSocket
resource is created to callconnect
on itconnect
is polledThe text was updated successfully, but these errors were encountered: