-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash: new-delete-type-mismatch #1128
Comments
BTW the above ASAN trace could be "normal". We don't really know if it has any relationship with the crash we are observing. The core dump of the crash is always useless since it's about memory corruption so trace is useless. But still I suspect that the crash culprit maybe that mediasoup change indicated in the description. |
If it is heap that is corrupted, dump may not be that useless, right? |
With libasan enabled maybe not, without it they are terribly useless. And with libasan enabled there is no crash since it overrides malloc system ¯_(ツ)_/¯ |
I'm not using DataChannel. But it seems sctp has it's own thread, and the So #1114 does not work. |
Nope. We use usrsctp lib in single thread mode. That cannot be the problem. And we don't even know if the problem is related to this Destroying() thing/change. We have no idea yet plus we are using (in our app testing server) and old version of jemalloc which replaced malloc, so absolutely no idea yet. |
I guess that this is simply because the type that performs new and the type that delete are completely different.
Since it is a C language type, there is no real harm. To turn it off use malloc/free or cast to the https://learn.microsoft.com/en-us/cpp/sanitizers/error-new-delete-type-mismatch?view=msvc-170 |
Thanks @satoren, I'll write a PR doing those casts. |
Fixes #1128 Ensure we call `delete xxxx` with same type than `new xxxx`.
Bug Report
Crash trace with libasan enabled:
Your environment
Info
It "could" be related to this change introduced in version 3.12.6: #1114 (not sure).
The text was updated successfully, but these errors were encountered: