-
Notifications
You must be signed in to change notification settings - Fork 318
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 occurs in closePeerConnection #995
Comments
@liutuzhao this is not the stock application and the issue is not actionable without debug symbols and local variables. We will only look at crashes with stock samples. Please debug this further on your own. Please pull us in if you can pinpoint the actual crash in the SDK or the stock sample applications. As the stack trace does not correspond to the sample application, I am not sure what's causing the crash. Removing "bug" tags. |
Any updates? Have you been able to reproduce this with stock samples? |
Sounds good. I a not sure if any of this will fix a crash. Try to get the stock applications running in parallel on your platform to get wider coverage. Try running under the gdb and have the symbols ready to be loaded if a crash happens |
We encountered another similar crash. @MushMal @codingspirit (gdb) thread apply 1 bt Thread 1 (LWP 6105): |
Do you have the symbols? |
I am uploading the gdb, coredump and sysmbol files together with the executable file before strip. bak8-crash-lwsCompleteSync.003.zip |
pCallInfo->pSignalingClient->lwsSerializerLock is NULL while pCallInfo->pSignalingClient is not. Hi @MushMal any clue from your side?
|
None that I can think of. If you are within the LwsApiCalls.c then you should have succeeded creating the entire signaling client object successfully. Perhaps a stale public header file with the latest codebase that could have shifted the internal structure fields? Sorry, I haven't had any time to look at the attached log files. |
Similar issue in the same position: #0 0x003318e4 in lws_callback_on_writable () |
Can you please try the latest commit on master and see if it resolves your issue? |
@hassanctech Still reproducible on Windows, would be nice if someone on the AWS side to replicate the Windows scenario. |
@suggestedfixes this thread is getting stale very quickly. I have requested a dump with symbols + info whether you've made any changes. We do have Windows runs in Travis CI which don't crash. It's hard to for us to try to reproduce something that we have no understanding on.
|
Updates please? |
I am resolving this as we have no symbolic info and there is nothing actionable here. Please use the latest commit which removes the auto-ICE refresh for the crash stack with ICE refresh in signaling. There is very little to work with on the other crash stack related to the connection removal |
Logging
crash-in-closePeerConnection.zip
Describe the bug
Doing two livestreming session at the same time . When 1 session detected broken in callbak "onConnectionStateChange" and the "terminateFlag" set as true. Another thread will check each session status and then free this broken session, found crash in SDK function "closePeerConnection ". Back trace as follows:
(gdb) where
#0 0x00504fa4 in pthread_mutex_lock ()
#1 0x00319500 in socketConnectionClosed ()
#2 0x0030f92c in connectionListenerRemoveAllConnection ()
#3 0x003108a0 in iceAgentShutdown ()
#4 0x002d163c in closePeerConnection ()
#5 0x0005a1ac in freeSampleStreamingSession ()
#6 0x00048a10 in CWebRTCClientMaster::SessionCleanupCheck(CQVMessageT*, unsigned int, unsigned int&) ()
#7 0x002ab82c in CQVThreadWorker::OnPolling(unsigned int&) ()
#8 0x002ac954 in CQVThreadWorker::OnThread() ()
#9 0x002aba58 in CQVThread::ThreadProc(void*) ()
#10 0x00503904 in start_thread ()
#11 0x0051cd20 in clone ()
SDK version number
V1.4.0
Open source building
default config in SDK
The text was updated successfully, but these errors were encountered: