-
Notifications
You must be signed in to change notification settings - Fork 605
Segmentation fault when reauth and then m_messageSender->sendMessage(eventRequest); #1742
Comments
Hi there, thanks for reporting this. I was unable to reproduce it myself just now. Could you please attach DEBUG9 logs where you reproduce the problem? Also, can you reproduce this in 1.19.1 or 1.20, or both? |
Hi @caleighatamazon putty_avs_1.20.0_reauth1111_issue.log has attached DEBUG9 logs |
Hi @kuodehai, those do not appear to be DEBUG9 logs for the SDK Sample App -- it's missing all the DEBUG9 logging. When DEBUG9 logs are enabled, you should see a lot of logs with this kind of format: But I don't see any DEBUG9 logs in the file you attached. It may be that you are not starting the Sample App correctly. It looks like this is the way you started the app:
I'm not sure what the |
Hi @caleighatamazon |
Hi @kuodehai, unfortunately I still cannot see the debug logs in your latest response. It looks like that wasn't actually an attachment. I'll need the debug logs to look into this further. Thanks! |
Hi @caleighatamazon |
Hi @kuodehai thanks for sending the logs. We will get back to you on this shortly. |
Hi @kuodehai I was not able to reproduce the issue following the same steps you mentioned. I also tried following the sequence multiple times i -> z -> Y but I couldn't see the same crash reported above. In order to debug further could you please answer the following questions:
Note: To run SampleApp with GDB do the following: paste the output of the backtrace here. |
Hi @mvelegon-amzn
CMAKE_OPTIONS +=-DDIAGNOSTICS=ON 2020-07-03 01:51:30.027 [ 36] 5 SettingEventSender:buildEventJson:eventName=LocalesChanged Program received signal SIGSEGV, Segmentation fault. |
Hi @kuodehai Thanks for the additional information. I notice there is an issue in our code although its not causing a crash, it is something we will fix it in the next release. It looks like the a new diagnostics object is not getting created after you request for reauthorization. In order to test this, could you please make this change in main.cpp and let us know if it fixes the issue you are seeing? move lines 120 to 125 after line 127. In other words your change should look like this in main.cpp:
|
@mvelegon-amzn |
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
Segmentation fault when reauth m_messageSender->sendMessage(eventRequest);
2136c: 91002260 add x0, x19, #0x8
putty_avs_1.20.0_reauth1111_issue.log
I have attached the DEBUG9 logs . please do refer & help us to analyze.
Thanks!
What is the expected behavior?
reauth ,run normal.
What behavior are you observing?
Segmentation fault when reauth m_messageSender->sendMessage(eventRequest);
Provide the steps to reproduce the issue, if applicable:
auth success and then reauth i->z->y
Tell us about your environment:
What version of the AVS Device SDK are you using?
Tell us what hardware you're using:
Tell us about your OS (Type & version):
The text was updated successfully, but these errors were encountered: