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

zephy-pigweed integration demo app generates incorrect target build output that segfaults #8

Open
shaju-mv opened this issue Mar 28, 2023 · 2 comments

Comments

@shaju-mv
Copy link
Collaborator

(.venv) shaju@platformgrinder-sp:~/pigweed-zephyr3/zds2023$ west build -p -b native_posix app

[180/180] Linking CXX executable zephyr/zephyr.elf

(.venv) shaju@platformgrinder-sp:~/pigweed-zephyr3/zds2023$ file build/zephyr/zephyr.exe
build/zephyr/zephyr.exe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped

(.venv) shaju@platformgrinder-sp:~/pigweed-zephyr3/zds2023$ ./build/zephyr/zephyr.exe
Segmentation fault

(.venv) shaju@platformgrinder-sp:~/pigweed-zephyr3/zds2023$ uname -a
Linux platformgrinder-sp.c.googlers.com 5.19.11-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1 (2022-10-31) x86_64 GNU/Linux

@yperess
Copy link
Owner

yperess commented Apr 5, 2023

You should try it with https://pigweed-review.git.corp.google.com/c/pigweed/pigweed/+/136310 cherry-picked. I believe it might resolve the issue. I think that one of the static threads was not allocated correctly so having the pw_thread backend set up might be the issue. I think this is the case because there was no stack at the time of the segfault.

@aeremin
Copy link

aeremin commented May 2, 2023

FYI, crash is not because of the wrong build output, it's some permissions problem, running with sudo fixes the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants