TelegramMessenger / MTProxy

4.97k stars 822 forks source link

mt proto is not compatible with wsl (windows syb systems for linux) #408

Open mr-459 opened 4 years ago

mr-459 commented 4 years ago

hi i have installed ubuntu under wsl to run mtroto ubuntu works well but on mtproto i got errores:

a@****:~/MTProxy/objs/bin$ sudo ./mtproto-proxy -u nobody -p 8888 -H 443 -S $sece --aes-pwd proxy-secret proxy-multi.conf -M 1
[20322][2020-06-01 06:39:59.433354 local] Invoking engine mtproxy-0.01 compiled at Jun  1 2020 06:22:49 by gcc 7.5.0 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b
[20322][2020-06-01 06:39:59.435194 local] config_filename = 'proxy-multi.conf'
[20322][2020-06-01 06:39:59.469423 local] creating 1 workers
[20323][2020-06-01 06:39:59.493325 local] Started as [*****]
[20322][2020-06-01 06:39:59.495341 local] Started as [*****]
[20323][2020-06-01 06:39:59.497854 local] configuration file proxy-multi.conf re-read successfully (752 bytes parsed), new configuration active
[20323][2020-06-01 06:39:59.498983 local] main loop
[20322][2020-06-01 06:39:59.500238 local] configuration file proxy-multi.conf re-read successfully (752 bytes parsed), new configuration active
[20322][2020-06-01 06:39:59.501178 local] main loop
mtproto-proxy: net/net-crypto-aes.c:267: aes_create_keys: Assertion `client_ip' failed.
mtproto-proxy: net/net-crypto-aes.c:267: aes_create_keys: Assertion `client_ip' failed.
[pid 20323] [time 1591018799]
------- Stack Backtrace -------
[pid 20322] [time 1591018799]
------- Stack Backtrace -------
./mtproto-proxy(print_backtrace+0x2c)[0x7ff86064f34c]
./mtproto-proxy(print_backtrace+0x2c)[0x7ff86064f34c]
./mtproto-proxy(extended_debug_handler+0x10)[0x7ff86064f4d0]
./mtproto-proxy(extended_debug_handler+0x10)[0x7ff86064f4d0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7ff85f572890]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7ff85f572890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7ff85f19ee97]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7ff85f19ee97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7ff85f1a0801]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7ff85f1a0801]
/lib/x86_64-linux-gnu/libc.so.6(+0x3039a)[0x7ff85f19039a]
/lib/x86_64-linux-gnu/libc.so.6(+0x3039a)[0x7ff85f19039a]
/lib/x86_64-linux-gnu/libc.so.6(+0x30412)[0x7ff85f190412]
/lib/x86_64-linux-gnu/libc.so.6(+0x30412)[0x7ff85f190412]
./mtproto-proxy(+0x305fb)[0x7ff8606305fb]
./mtproto-proxy(+0x305fb)[0x7ff8606305fb]
./mtproto-proxy(tcp_rpcc_start_crypto+0x103)[0x7ff860640923]
./mtproto-proxy(tcp_rpcc_start_crypto+0x103)[0x7ff860640923]
./mtproto-proxy(+0x4047a)[0x7ff86064047a]
./mtproto-proxy(+0x4047a)[0x7ff86064047a]
./mtproto-proxy(tcp_rpcc_parse_execute+0x45b)[0x7ff86064135b]
./mtproto-proxy(tcp_rpcc_parse_execute+0x45b)[0x7ff86064135b]
./mtproto-proxy(cpu_tcp_server_reader+0x186)[0x7ff86063ef06]
./mtproto-proxy(cpu_tcp_server_reader+0x186)[0x7ff86063ef06]
./mtproto-proxy(cpu_server_read_write+0xb)[0x7ff86063195b]
./mtproto-proxy(cpu_server_read_write+0xb)[0x7ff86063195b]
./mtproto-proxy(do_connection_job+0x77)[0x7ff860634927]
./mtproto-proxy(do_connection_job+0x77)[0x7ff860634927]
./mtproto-proxy(unlock_job+0x2dd)[0x7ff860623dbd]
./mtproto-proxy(unlock_job+0x2dd)[0x7ff860623dbd]
./mtproto-proxy(run_pending_main_jobs+0x62)[0x7ff860624a02]
./mtproto-proxy(run_pending_main_jobs+0x62)[0x7ff860624a02]
./mtproto-proxy(default_engine_server_start+0x157)[0x7ff860649f77]
./mtproto-proxy(default_engine_server_start+0x157)[0x7ff860649f77]
./mtproto-proxy(default_main+0x1b3)[0x7ff86064a613]
./mtproto-proxy(default_main+0x1b3)[0x7ff86064a613]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7ff85f181b97] 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7ff85f181b97]
./mtproto-proxy(_start+0x2a)[0x7ff86061182a]
./mtproto-proxy(_start+0x2a)[0x7ff86061182a]
[pid 20323] [time 1591018799] -------------------------------
[pid 20322] [time 1591018799] -------------------------------
[pid 20323] [time 1591018799] mtproxy-0.01 compiled at Jun  1 2020 06:22:49 by gcc 7.5.0 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b[pid 20322] [time 1591018799] mtproxy-0.01 compiled at Jun  1 2020 06:22:49 by gcc 7.5.0 64-bit after commit dc0c7f3de40530053189c572936ae4fd1567269b[pid 20323] [time 1591018799]
[pid 20322] [time 1591018799]

imusing windows server 2019 and a vps