CV-Bowen commented on code in PR #7875:
URL: https://github.com/apache/nuttx/pull/7875#discussion_r1053426179


##########
sched/misc/assert.c:
##########
@@ -174,7 +473,20 @@ void _assert(FAR const char *filename, int linenum)
 
   syslog_flush();
 
-  up_assert(filename, linenum);
+  /* Show back trace */
+
+#ifdef CONFIG_SCHED_BACKTRACE
+  sched_dumpstack(running_task()->pid);
+#endif
+
+  up_assert();

Review Comment:
   Seems wrong here, the dumped stack in showstacks() is different to the stack 
when register dumped in up_assert() due the function call and exit, which 
causes the stack changed. @xiaoxiang781216 @zyfeier



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to