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

posix signal use #11532

Closed
xiaotailang opened this issue Jan 12, 2024 · 4 comments
Closed

posix signal use #11532

xiaotailang opened this issue Jan 12, 2024 · 4 comments

Comments

@xiaotailang
Copy link

I am trying to use the posix signal interface on the stm32. After opening the configuration items SIG_DEFAULT and CONFIG_SIG_SIGKILL_ACTION, the system will be stuck at the memcpy((uint32_t *)regs[REG_R1], regulators, XCPTCONTEXT_SIZE); in the up_svcall function of the up_svcall.c file during system startup. Is there an additional configuration item that I have missed if I want to support signal?

@alandeassis
Copy link

@xiaotailang depeding when you are trying to use it, the POSIX functions are not initialized yet and will not work. Could you please show some generic example to let us to test it? If you can try also in the SIMulator, it will be easier to reproduce

@xiaotailang
Copy link
Author

during debugging, I discovered that the issue was caused by a conflict between a custom signal I defined and the system's native signals. After modifying my custom signal, everything works as expected.

@alandeassis
Copy link

Hi @xiaotailang please give more details, it could help other people facing similar issue in the future. Maybe it could be in our documentation, in FAQ or even Guide.

@xiaotailang
Copy link
Author

Hi@alandeassis,The values of the two signals sig_usr1 and sig_usr2. I made a mistake in writing one of them, which caused a problem. I tested using the system default values and there was no problem.

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