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

Problem with luaext from ndless-sdk #287

Open
mael53 opened this issue May 13, 2021 · 5 comments
Open

Problem with luaext from ndless-sdk #287

mael53 opened this issue May 13, 2021 · 5 comments

Comments

@mael53
Copy link

mael53 commented May 13, 2021

Hello,
Adriweb from tiplanet told me to send you this message because i have a problem when running runluaextdemo from ndless-sdk. I have a ti nspire cx cas os 4.5.*.
The others examples seems to launch correctly.
There is a probably an error in sdless-sdk or i make a mistake but i don't know where...
Can you do something ?
Thanks

@Vogtinator
Copy link
Contributor

This is actually not OS specific, but was introduced with #263. On exit, it performs more cleanup, so after returning from main calling certain functions from the C library like printf caused crashes because those rely on the deinitialized data.

#288 makes it possible to skip that cleanup (previously that was even done when using _exit) and fixes luaextdemo. All resident programs (including lua extensions) need to call _exit instead of returning from main.

@mael53
Copy link
Author

mael53 commented May 15, 2021 via email

@adriweb
Copy link
Contributor

adriweb commented May 15, 2021 via email

@mael53
Copy link
Author

mael53 commented May 15, 2021

Thank you for your answer.
Ok for the patch/bugfix system.
But the example i joined does'nt works too...
Is there something i don't understand ?
Thanks

@Vogtinator
Copy link
Contributor

For the fix in luaextdemo to work you need the other part of #288 as well. Without that, the change does nothing.

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