-
Notifications
You must be signed in to change notification settings - Fork 1.6k
SDK v3.4-rc(v3.4) can not work under -DNDEBUG (GIT8266O-652) #1074
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
Comments
Unfortunately, this issue is still present on the v3.4 release.... |
up ,这个问题解决了吗?我也碰到了 |
没有,只能暂时改成别的选项 |
那你现在是改了什么才能跑起来 |
看上面的图,只要不用disable就能跑 |
我这样的话 后面会一直crash。 |
看看core dump,是不是自己代码的问题 |
好的,谢谢你的回复 |
up 有联系方式吗?我有问题想要请教 |
我不是乐鑫的fae呀。。有问题你可以直接issue上提 |
I have similar issue when migrating my project from v3.3 to v3.4, even with assertion level disabled. |
我两台电脑,一台可以,一台不行,NND一样的SDK一样的代码。 |
I bisected the problem with the following result: 28f466d is the first bad commit
|
The following line introduced by the referenced commit is broken because esp_newlib_init() is not executed in NDEBUG builds:
EDIT: There are more similar assertions which swallow code in NDEBUG builds. If the functions are called before the assert(), the bug appears to be fixed. |
Environment
Problem Description
If you try to set the Assertion Level to Disabled(-DNDEBUG) in menuconfig, you will get strange error output when generating the bin and terminate as a result.
Expected Behavior
See above
Actual Behavior
See above
Steps to repropduce
Start with any project. Like examples/get-started/hello_world
Change Assertion Level to

Disabled
Run
idf.py build
. Then see Debug LogsDebug Logs
The text was updated successfully, but these errors were encountered: