Skip to content
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

Check iotivity-lite stack init before processing requests #527

Merged

Conversation

jkralik
Copy link
Member

@jkralik jkralik commented Sep 13, 2023

check if the iotivity-lite stack is initialized before processing new requests during shutdown.

#0  0x00007f5052dfa213 in ...
#1  0x00007f505306325f in ...
#2  0x00007f50527d1935 in oc_core_device_handler () from target:/lib/libiotivity-lite-client-server.so.2
#3  0x00007f50527e0fb1 in oc_ri_invoke_coap_entity_handler () from target:/lib/libiotivity-lite-client-server.so.2
#4  0x00007f50527eb799 in coap_receive () from target:/lib/libiotivity-lite-client-server.so.2
#5  0x00007f50527ec5b1 in process_thread_g_coap_engine () from target:/lib/libiotivity-lite-client-server.so.2
#6  0x00007f50527c8bb4 in call_process () from target:/lib/libiotivity-lite-client-server.so.2
#7  0x00007f50527c8f16 in do_event () from target:/lib/libiotivity-lite-client-server.so.2
#8  0x00007f50527c8f36 in oc_process_run () from target:/lib/libiotivity-lite-client-server.so.2
#9  0x00007f50527d8c96 in oc_main_poll () from target:/lib/libiotivity-lite-client-server.so.2
#10 0x00007f50527e26dc in oc_ri_shutdown () from target:/lib/libiotivity-lite-client-server.so.2
#11 0x00007f50527d8cc7 in oc_main_shutdown () from target:/lib/libiotivity-lite-client-server.so.2

@ocf-conformance-test-tool
Copy link

🎉 Thank you for your code contribution! To guarantee the change/addition is conformant to the OCF Specification, we would like to ask you to execute OCF Conformance Testing of your change ☝️ when your work is ready to be reviewed.


ℹ️ To verify your latest change (54ceed3), label this PR with OCF Conformance Testing.

⚠️ Label is removed with every code change.

@jkralik jkralik added the OCF Conformance Testing OCF Conformance Testing required label Sep 13, 2023
@ocf-conformance-test-tool ocf-conformance-test-tool bot removed the OCF Conformance Testing OCF Conformance Testing required label Sep 19, 2023
jkralik and others added 2 commits September 19, 2023 13:59
check if the iotivity-lite stack is initialized before
processing new requests during shutdown.
@Danielius1922 Danielius1922 force-pushed the jkralik/fix/dont-porcess-requests-during-shutdown branch from 8a6f816 to d9f7f6b Compare September 19, 2023 11:59
@sonarcloud
Copy link

sonarcloud bot commented Sep 19, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

78.9% 78.9% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@Danielius1922 Danielius1922 merged commit 44d8643 into master Sep 19, 2023
116 of 117 checks passed
@Danielius1922 Danielius1922 deleted the jkralik/fix/dont-porcess-requests-during-shutdown branch September 19, 2023 14:14
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants