If microsocks is running via mirrord the pod and context will be initialized correctly and proxy will start to run. The problem is that on the first network call using the proxy, microsocks and mirrord will crash. The segmentation fault is attached.
Microsocks invoked without mirrord works ok.
Script and brew installs have been tested for both microsocks and mirrord.
Steps to Reproduce
mirrord exec microsocks
curl --socks5 127.0.0.1:1080 google.com
segfault is produced
Backtrace
#0 0x00007fb3a7a902a7 in bincode::varint::decode_unsigned::deserialize_varint_cold_u64 () from /tmp/15951570164723079394-libmirrord_layer.so
#1 0x00007fb3a7a8f146 in bincode::varint::decode_unsigned::varint_decode_u64 () from /tmp/15951570164723079394-libmirrord_layer.so
#2 0x00007fb3a7a8e04b in bincode::de::impls::<impl bincode::de::Decode for u64>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#3 0x00007fb3a7a8cc8b in bincode::de::decode_slice_len () from /tmp/15951570164723079394-libmirrord_layer.so
#4 0x00007fb3a7a918ab in bincode::features::impl_alloc::<impl bincode::de::Decode for alloc::vec::Vec<T>>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#5 0x00007fb3a7b303db in <mirrord_protocol::dns::DnsLookup as bincode::de::Decode>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#6 0x00007fb3a7b99e56 in bincode::de::impls::<impl bincode::de::Decode for core::result::Result<T,U>>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#7 0x00007fb3a7b31a5e in <mirrord_protocol::dns::GetAddrInfoResponse as bincode::de::Decode>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#8 0x00007fb3a7a9905b in <mirrord_intproxy_protocol::ProxyToLayerMessage as bincode::de::Decode>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#9 0x00007fb3a7a9a4cf in <mirrord_intproxy_protocol::LocalMessage<T> as bincode::de::Decode>::decode () from /tmp/15951570164723079394-libmirrord_layer.so
#10 0x00007fb3a7a8ca40 in bincode::decode_from_slice () from /tmp/15951570164723079394-libmirrord_layer.so
#11 0x00007fb3a7a94d4d in mirrord_intproxy_protocol::codec::SyncDecoder<T,R>::receive () from /tmp/15951570164723079394-libmirrord_layer.so
#12 0x00007fb3a7aff828 in mirrord_layer::proxy_connection::ResponseManager::receive () from /tmp/15951570164723079394-libmirrord_layer.so
#13 0x00007fb3a7aff64c in mirrord_layer::proxy_connection::ProxyConnection::receive () from /tmp/15951570164723079394-libmirrord_layer.so
#14 0x00007fb3a7b19764 in mirrord_layer::proxy_connection::ProxyConnection::make_request_with_response::{{closure}} () from /tmp/15951570164723079394-libmirrord_layer.so
#15 0x00007fb3a7b11fe0 in mirrord_layer::proxy_connection::ProxyConnection::make_request_with_response () from /tmp/15951570164723079394-libmirrord_layer.so
#16 0x00007fb3a7b56e87 in mirrord_layer::common::make_proxy_request_with_response () from /tmp/15951570164723079394-libmirrord_layer.so
#17 0x00007fb3a7a3808d in mirrord_layer::socket::ops::remote_getaddrinfo::{{closure}} () from /tmp/15951570164723079394-libmirrord_layer.so
#18 0x00007fb3a7a36b18 in mirrord_layer::socket::ops::remote_getaddrinfo () from /tmp/15951570164723079394-libmirrord_layer.so
#19 0x00007fb3a7a3a561 in mirrord_layer::socket::ops::getaddrinfo::{{closure}} () from /tmp/15951570164723079394-libmirrord_layer.so
#20 0x00007fb3a7a38901 in mirrord_layer::socket::ops::getaddrinfo () from /tmp/15951570164723079394-libmirrord_layer.so
#21 0x00007fb3a7b5da20 in mirrord_layer::socket::hooks::getaddrinfo_detour () from /tmp/15951570164723079394-libmirrord_layer.so
#22 0x00007fb3a8ef4713 in ?? ()
#23 0x0000000000000001 in ?? ()
#24 0x0000000000000001 in ?? ()
#25 0x0000000000000000 in ?? ()
Bug Description
As discussed with support over discord on 2024/04/04 is not possible to run microsocks with mirrord to follow the steps of Web Browsing tutorial.
If microsocks is running via mirrord the pod and context will be initialized correctly and proxy will start to run. The problem is that on the first network call using the proxy, microsocks and mirrord will crash. The segmentation fault is attached.
Microsocks invoked without mirrord works ok.
Script and brew installs have been tested for both microsocks and mirrord.
Steps to Reproduce
Backtrace
Relevant Logs
Your operating system and version
Ubuntu 22.04.3
Local process
microsocks
Local process version
1.0.1-2
Additional Info
No response