d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
524 stars 40 forks source link

Segmentation Fault on start up #221

Closed artur-shaik closed 2 months ago

artur-shaik commented 2 months ago

Description: nchat starts to crash on statup with segmentation fault

here is stacktrace:

unexpected termination 11
callstack:
/usr/local/lib/libncutil.so(_ZN7AppUtil13SignalHandlerEi+0x54)[0x7ff6001f71b4]
/lib64/libc.so.6(+0x3f190)[0x7ff5ff83f190]
/lib64/libc.so.6(+0x168e95)[0x7ff5ff968e95]
/usr/local/bin/../lib/libtgchat.so(_ZN6TgChat4Impl15GetMsgReactionsERN2td2tl10unique_ptrINS1_6td_api22messageInteractionInfoEEER9Reactions+0x100)[0x7ff5fea99130]
/usr/local/bin/../lib/libtgchat.so(+0x2b28dd)[0x7ff5feab28dd]
/usr/local/bin/../lib/libtgchat.so(+0x2b2c91)[0x7ff5feab2c91]
/usr/local/bin/../lib/libtgchat.so(_ZN6TgChat4Impl15ProcessResponseEN2td6Client8ResponseE+0x9c)[0x7ff5feab251c]
/usr/local/bin/../lib/libtgchat.so(_ZN6TgChat4Impl14ProcessServiceEv+0x63)[0x7ff5feab25d3]
/lib64/libstdc++.so.6(+0xe89d3)[0x7ff5ffce89d3]

How to reproduce it: happens only if I subscrined on particular channel (can drop link to personal email)

Environment:

d99kris commented 2 months ago

Hi @artur-shaik - thanks for reporting a bug and providing the stacktrace. I believe the crash should be fixed by above commit. Please let me know if you're still encountering the issue.

artur-shaik commented 2 months ago

Fixed. Thank you.