vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

crash telegram0cli when i redirect message with inline buttons #1605

Closed mrTigerFox closed 5 years ago

mrTigerFox commented 5 years ago

telegram-cli: auto/auto-fetch-ds.c:12677: fetch_ds_type_reply_markup: Assertion 0' failed. SIGNAL received h/root/tg/bin/telegram-cli(print_backtrace+0x27)[0x4dc927] /root/tg/bin/telegram-cli(termination_signal_handler+0x81)[0x4dc9c1] linux-gate.so.1(__kernel_sigreturn+0x0)[0xb779ed04] linux-gate.so.1(__kernel_vsyscall+0x9)[0xb779ecf9] /lib/i386-linux-gnu/libc.so.6(gsignal+0xb0)[0xb73afdd0] /lib/i386-linux-gnu/libc.so.6(abort+0x157)[0xb73b1297] /lib/i386-linux-gnu/libc.so.6(+0x24a27)[0xb73a8a27] /lib/i386-linux-gnu/libc.so.6(+0x24aab)[0xb73a8aab] /root/tg/bin/telegram-cli(fetch_ds_type_reply_markup+0x70)[0x696890] /root/tg/bin/telegram-cli(fetch_ds_constructor_message+0x377)[0x6972c7] /root/tg/bin/telegram-cli(fetch_ds_type_message+0x7b)[0x69780b] /root/tg/bin/telegram-cli(fetch_ds_constructor_update_new_message+0x8f)[0x6978ff] /root/tg/bin/telegram-cli(fetch_ds_type_update+0x61b)[0x69ebdb] /root/tg/bin/telegram-cli(fetch_ds_type_any+0x22c5)[0x68c565] /root/tg/bin/telegram-cli(fetch_ds_constructor_vector+0xe7)[0x68cca7] /root/tg/bin/telegram-cli(fetch_ds_type_vector+0x45)[0x68cd65] /root/tg/bin/telegram-cli(fetch_ds_constructor_updates+0xfc)[0x699a5c] /root/tg/bin/telegram-cli(fetch_ds_type_updates+0xfb)[0x69ee5b] /root/tg/bin/telegram-cli(tglu_work_any_updates_buf+0x2d)[0x52626d] /root/tg/bin/telegram-cli(+0x8687c)[0x4ff87c] /root/tg/bin/telegram-cli(+0x86568)[0x4ff568] /root/tg/bin/telegram-cli(+0x87a78)[0x500a78] /root/tg/bin/telegram-cli(+0xae472)[0x527472] /usr/lib/i386-linux-gnu/libevent-2.0.so.5(event_base_loop+0x7d1)[0xb774c681] /root/tg/bin/telegram-cli(net_loop+0xbc)[0x4ddedc] /root/tg/bin/telegram-cli(loop+0x196)[0x4df196] /root/tg/bin/telegram-cli(inner_main+0x17)[0x4dbeb7] /root/tg/bin/telegram-cli(main+0x306)[0x4dafe6] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf6)[0xb739c286] /root/tg/bin/telegram-cli(+0x620eb)[0x4db0eb] root@debian:~/tg/tgl# /root/tg/bin/telegram-cli -I -W -p auto1 -s /root/tg/cw3bot_3b.lua change_user_group: can't find the user telegramd to switch to Telegram-cli version 1.4.1, Copyright (C) 2013-2015 Vitaly Valtman Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details typeshow_license'. This is free software, and you are welcome to redistribute it under certain conditions; type `show_license' for details. Telegram-cli uses libtgl version 2.1.0 I: config dir=[/root/.telegram-cli] 1560353226.982951 Skipped 78 int out of 468 (type updates.Difference) (query type get difference) 1560353226.983006 0x00000000 0x00f49ca0 0x1cb5c415 0x00000002

Restrart telegram-cli faild

SIGNAL received h/root/tg/bin/telegram-cli(print_backtrace+0x27)[0x4f4927] /root/tg/bin/telegram-cli(termination_signal_handler+0x81)[0x4f49c1] linux-gate.so.1(kernel_sigreturn+0x0)[0xb7796d04] linux-gate.so.1(__kernel_vsyscall+0x9)[0xb7796cf9] /lib/i386-linux-gnu/libc.so.6(gsignal+0xb0)[0xb73a7dd0] /lib/i386-linux-gnu/libc.so.6(abort+0x157)[0xb73a9297] /lib/i386-linux-gnu/libc.so.6(+0x24a27)[0xb73a0a27] /lib/i386-linux-gnu/libc.so.6(+0x24aab)[0xb73a0aab] /root/tg/bin/telegram-cli(tglq_query_result+0x46c)[0x520a8c] /root/tg/bin/telegram-cli(+0x865e9)[0x5175e9] /root/tg/bin/telegram-cli(+0x87a78)[0x518a78] /root/tg/bin/telegram-cli(+0xae472)[0x53f472] /usr/lib/i386-linux-gnu/libevent-2.0.so.5(event_base_loop+0x7d1)[0xb7744681] /root/tg/bin/telegram-cli(net_loop+0xbc)[0x4f5edc] /root/tg/bin/telegram-cli(loop+0x196)[0x4f7196] /root/tg/bin/telegram-cli(inner_main+0x17)[0x4f3eb7] /root/tg/bin/telegram-cli(main+0x306)[0x4f2fe6] /lib/i386-linux-gnu/libc.so.6(libc_start_main+0xf6)[0xb7394286] /root/tg/bin/telegram-cli(+0x620eb)[0x4f30eb] root@debian:~/tg/tgl#

mrTigerFox commented 5 years ago

fix is here https://github.com/vysheng/tg/issues/1597