-
Notifications
You must be signed in to change notification settings - Fork 81
bitlbee crashes when logging into a Telegram account #561
Comments
(I can't respond directly on the redhat BugZilla, sorry.) Thank you for the extensive bugreport. You've struck right at the weak spot of libtgl, the underlying library of telegram-purple, and one of the many reasons why I recommend tdlib-purple instead: libtgl was never meant to be used by other people. vysheng wrote it to "work well enough" for his usecase, and apparently it served its purpose. The tree code was written with that in mind: The calls to "random" everywhere serve the purpose of "balancing" the tree well enough so that the data structure becomes a bit more efficient than just a linear scan. It also means libtgl crashes and burns if it ever, for some reason, draws two identical random numbers for things that are in the tree at the same time. At least that's my understanding of the situation. Possible workarounds:
I won't be able to fix the problem. Again, any kind of pull request that fixes the problem is very welcome. |
What would be the be course of action for me as a maintainer of telegram-purple in Fedora? Should I deprecate telegram-purple in favour of tdlib-purple or keep them side-by-side and let the users decide? If tdlib-purple has a complete feature parity is actively maintained, maybe replacing telegram-purple with it is the way to go. |
It doesn't have feature parity yet, so please don't deprecate telegram-purple yet. Also, for context: Telegram-purple crashes maybe once a year on my machine, so the usage pattern really seems to make a difference. Again, being in chats with thousands of people drastically increases the likelihood of this crash. How about this:
The goal should be that users can make an informed choice and know that they have a choice. Currently, both plugins have disadvantages. Fun fact: This issue is actually a problem with And finally: Hi, nice to meet you! :) |
I'm resubmitting an issue that was reported in the downstream Fedora bugzilla:
Description of problem:
bitlbee crashes (SIGSEGV) when logging into a Telegram account.
Version-Release number of selected component (if applicable):
bitlbee-3.6-3.fc33.x86_64
How reproducible:
Always
Steps to Reproduce:
0. setenforce 0 (due to bug 1901888)
account add telegram +CCXXXXXXXXXX
(optionally) account telegram set password-two-factor foobar
account telegram on
Actual results:
bitlbee crashes with SIGSEGV
Expected results:
Telegram account is connected.
More details including backtrace are here: https://bugzilla.redhat.com/show_bug.cgi?id=1901892
The text was updated successfully, but these errors were encountered: