RTEMS | validation: Address -Wclobbered warnings (!808)

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Oct 20 14:33:38 UTC 2025




Kinsey Moore started a new discussion on testsuites/validation/tc-task-delete.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/808#note_135210

 >    longjmp( ctx->thread_dispatch_context, 1 );
 >  }
 >  
 > +static void DeleteAndJumpBack( Context * const ctx )
 > +{
 > +  if ( setjmp( ctx->thread_dispatch_context ) == 0 ) {
 > +    ctx->status = rtems_task_delete( ctx->id );
 > +  } else {
 > +    _Thread_Dispatch_unnest( _Per_CPU_Get() );
 > +  }
 > +}

Does longjmp get called before this function exits? I couldn't easily find the call tree that leads to longjmp in either `ResumeThreadDispatch()` or `Fatal()`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/808#note_135210
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251020/2fd37e03/attachment-0001.htm>


More information about the bugs mailing list