Comments (5)
This sounds a lot like a duplicate of #49, so I suggest closing this issue.
from tgl.
How is it a duplicate? The backtrace looks very different.
(I haven't noticed this issue lately, mostly because the few times i did use telegram-purple it was inside valgrind, where I just ignored any errors that weren't my fault)
from tgl.
Keep in mind that the upper stacktrace doesn't crash at the point of fault.
So we're looking at the lower stacktrace, which says:
==4104== Invalid read of size 8
==4104== at 0x1242EA1A: alarm_query (queries.c:94)
==4104== by 0x1242EDA4: alarm_query_gateway (queries.c:142)
==4104== by 0x1240F77B: timer_alarm (tgp-timers.c:34)
alarm_query Invalid read of size 8
is exactly what I was looking at when I was investigating this bug, which mostly manifests as a use-after-free (freed after the first execution, then the second alarm triggers and accesses free'd memory).
And I just noticed: Since this bug report is older, ideally this would be marked as the original, and the other one as the duplicate. However, #49 contains a lot of background information explaining why and what happens.
Anyway, it is resolved on the test
branch, so when @vysheng does another merge into master it'll become public.
from tgl.
Fair enough. Also I'm fine with this one being the duplicate since it's less detailed. Thanks for your work debugging this!
from tgl.
This seems like a bug that has been fixed a long time ago. It was caused by certain timers not being freed properly when going offline. It didn't cause any issues when using libtgl with libevent, but it did cause issues when using it with purpe_timer.
I'd suggest closing this issue, it is already resolved.
from tgl.
Related Issues (20)
- Command line msg command with secure chats HOT 1
- abrupt abort via spectrum/telegram-purple on arm7l HOT 16
- Strange "was online" time when changing status from online
- 2ASHIII
- Escape " and ' in channel_names
- Could you add layers description in Readme
- Compilation error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’ HOT 10
- force add contact does not work
- view last channel post without join channel
- How to implement method for add new contact or import Contact in golang( or any other language)
- nullptr derefence in the source .\tgl-master\queries.c HOT 1
- FLOOD_WAIT_* not handled well
- eventlib issues HOT 1
- compile error: queries.c: In function ‘_tgl_do_send_photo’ HOT 5
- tgl/queries.c:470: tglq_query_result: Assertion `0' failed on Downloading AUDIO FILES HOT 1
- Problem secret chat message to Iphone
- tgl/queries.c:470: tglq_query_result: Assertion `0' failed HOT 8
- New release tag?
- tl-parser/tl-parser.c:1907:9: note: 'sprintf' output between 2 and 21 bytes into a destination of size 20 HOT 1
- tgl/crypto/rsa_pem_openssl.c:49:37: error: invalid use of incomplete typedef ‘RSA’ {aka ‘struct rsa_st’} HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tgl.