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

examples/gcoap_dtls: Increase stack size #17735

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

maribu
Copy link
Member

@maribu maribu commented Mar 2, 2022

Contribution description

As the title says. The stack size was copied over from tests/pkg_tinydtls_sock_async cargo-cult style. Also some typos in the README were fixed.

Testing procedure

Previously on my Nucleo-F767ZI, the CoAP client triggered the MPU stack guard on sending the DTLS hello. With this, the board no longer crashes.

Issues/PRs references

None

@maribu maribu requested a review from jia200x as a code owner March 2, 2022 14:05
@maribu maribu requested a review from miri64 March 2, 2022 14:05
@maribu maribu added the Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer label Mar 2, 2022
@github-actions github-actions bot added Area: doc Area: Documentation Area: examples Area: Example Applications labels Mar 2, 2022
@maribu maribu added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed Area: doc Area: Documentation Area: examples Area: Example Applications labels Mar 2, 2022
@benpicco
Copy link
Contributor

benpicco commented Mar 5, 2022

looks like Makefile.ci now needs an update

@@ -94,3 +94,4 @@ ifndef CONFIG_KCONFIG_MODULE_GCOAP
GCOAP_RESEND_BUFS_MAX ?= 2
CFLAGS += -DCONFIG_GCOAP_RESEND_BUFS_MAX=$(GCOAP_RESEND_BUFS_MAX)
endif
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(2*THREAD_STACKSIZE_LARGE\)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels a bit overkill - what is ps saying?

@OlegHahm OlegHahm added this to the Release 2022.04 milestone Mar 9, 2022
@benpicco benpicco requested a review from chrysn July 24, 2022 20:36
@benpicco
Copy link
Contributor

I suppose this is still needed, right?

@maribu
Copy link
Member Author

maribu commented Jul 25, 2022

It is also needed with LWIP=1 actually. I wonder if stack usage of the client can be reduced a bit instead. Overflowing a 1.5 KiB stack is a bit surprising.

@maribu
Copy link
Member Author

maribu commented Jan 21, 2023

I'm cleaning up my stale branches currently. I think this is actually still needed. Any change to get this in? (Once someone fixes the surprising amount of stack consumption, this is a change that is trivial to revert.)

@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: examples Area: Example Applications and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 22, 2023
@maribu
Copy link
Member Author

maribu commented Jan 22, 2023

bors merge

bors bot added a commit that referenced this pull request Jan 22, 2023
17735: examples/gcoap_dtls: Increase stack size r=maribu a=maribu

### Contribution description

As the title says. The stack size was copied over from `tests/pkg_tinydtls_sock_async` cargo-cult style. Also some typos in the README were fixed.

### Testing procedure

Previously on my Nucleo-F767ZI, the CoAP client triggered the MPU stack guard on sending the DTLS hello. With this, the board no longer crashes.

### Issues/PRs references

None

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
@maribu
Copy link
Member Author

maribu commented Jan 22, 2023

bors cancel
bors merge

@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

Canceled.

bors bot added a commit that referenced this pull request Jan 22, 2023
17735: examples/gcoap_dtls: Increase stack size r=maribu a=maribu

### Contribution description

As the title says. The stack size was copied over from `tests/pkg_tinydtls_sock_async` cargo-cult style. Also some typos in the README were fixed.

### Testing procedure

Previously on my Nucleo-F767ZI, the CoAP client triggered the MPU stack guard on sending the DTLS hello. With this, the board no longer crashes.

### Issues/PRs references

None

19184: pkg/tinydtls: bump version r=maribu a=benpicco



Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
@maribu
Copy link
Member Author

maribu commented Jan 22, 2023

bors cancel
bors merge

let's see if we can get three PRs into the merge train.

@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

Canceled.

bors bot added a commit that referenced this pull request Jan 22, 2023
17735: examples/gcoap_dtls: Increase stack size r=maribu a=maribu

### Contribution description

As the title says. The stack size was copied over from `tests/pkg_tinydtls_sock_async` cargo-cult style. Also some typos in the README were fixed.

### Testing procedure

Previously on my Nucleo-F767ZI, the CoAP client triggered the MPU stack guard on sending the DTLS hello. With this, the board no longer crashes.

### Issues/PRs references

None

19184: pkg/tinydtls: bump version r=maribu a=benpicco



Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
@maribu
Copy link
Member Author

maribu commented Jan 22, 2023

bors cancel
bors merge

@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

Canceled.

bors bot added a commit that referenced this pull request Jan 22, 2023
17735: examples/gcoap_dtls: Increase stack size r=maribu a=maribu

### Contribution description

As the title says. The stack size was copied over from `tests/pkg_tinydtls_sock_async` cargo-cult style. Also some typos in the README were fixed.

### Testing procedure

Previously on my Nucleo-F767ZI, the CoAP client triggered the MPU stack guard on sending the DTLS hello. With this, the board no longer crashes.

### Issues/PRs references

None

19182: pkg/libfixmath: bump version r=maribu a=benpicco



19184: pkg/tinydtls: bump version r=maribu a=benpicco



Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

Build failed (retrying...):

bors bot added a commit that referenced this pull request Jan 22, 2023
17735: examples/gcoap_dtls: Increase stack size r=maribu a=maribu

### Contribution description

As the title says. The stack size was copied over from `tests/pkg_tinydtls_sock_async` cargo-cult style. Also some typos in the README were fixed.

### Testing procedure

Previously on my Nucleo-F767ZI, the CoAP client triggered the MPU stack guard on sending the DTLS hello. With this, the board no longer crashes.

### Issues/PRs references

None

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

Build failed:

Also fix some typos in the readme.
@maribu maribu force-pushed the examples/gcoap_dtls branch from 08d8d8d to 965b555 Compare January 22, 2023 13:56
@maribu
Copy link
Member Author

maribu commented Jan 22, 2023

rebased and ran the tool to update the Makefile.ci

bors retry

@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@github-actions github-actions bot added the Area: doc Area: Documentation label Jan 22, 2023
@riot-ci
Copy link

riot-ci commented Jan 22, 2023

Murdock results

✔️ PASSED

965b555 examples/gcoap_dtls: Increase stack size

Success Failures Total Runtime
13 0 13 01m:02s

Artifacts

@bors
Copy link
Contributor

bors bot commented Jan 22, 2023

Build succeeded:

@bors bors bot merged commit 36d230e into RIOT-OS:master Jan 22, 2023
@maribu maribu deleted the examples/gcoap_dtls branch January 22, 2023 17:15
@maribu
Copy link
Member Author

maribu commented Jan 22, 2023

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation Area: examples Area: Example Applications CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants