You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "realprocrastinator (via GitHub)" <gi...@apache.org> on 2024/10/12 07:10:31 UTC

[PR] setjmp: fix setjmp returns 0 when calling longjmp with 0 as the secon… [nuttx]

realprocrastinator opened a new pull request, #14152:
URL: https://github.com/apache/nuttx/pull/14152

   ## Summary
   
   According to POSIX semantics https://pubs.opengroup.org/onlinepubs/009604599/functions/longjmp.html. The `setjmp` should return `1` instead of `0` when calling `longjmp` with 0 as the second argument.
   
   ## Impact
   
   The correct behaviour of the `setjmp` on some architectures.
   
   ## Testing
   
   The testing code lives int the nuttx apps repository as a seperate patch.
   
   
   


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] setjmp: fix setjmp returns 0 when calling longjmp with 0 as the secon… [nuttx]

Posted by "realprocrastinator (via GitHub)" <gi...@apache.org>.
realprocrastinator commented on PR #14152:
URL: https://github.com/apache/nuttx/pull/14152#issuecomment-2412937919

   > @realprocrastinator please resubmit your apps side change.
   
   Gottcha. Thx for reminding.


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] setjmp: fix setjmp returns 0 when calling longjmp with 0 as the secon… [nuttx]

Posted by "realprocrastinator (via GitHub)" <gi...@apache.org>.
realprocrastinator commented on PR #14152:
URL: https://github.com/apache/nuttx/pull/14152#issuecomment-2412949274

   @xiaoxiang781216 Hi Xiaoxiang, I've just resubmitted the test code for nuttx-app repo. Pls check the link [https://github.com/apache/nuttx-apps/pull/2725](https://github.com/apache/nuttx-apps/pull/2725). Thx.


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] setjmp: fix setjmp returns 0 when calling longjmp with 0 as the secon… [nuttx]

Posted by "nuttxpr (via GitHub)" <gi...@apache.org>.
nuttxpr commented on PR #14152:
URL: https://github.com/apache/nuttx/pull/14152#issuecomment-2408437784

   [**\[Experimental Bot, please feedback here\]**](https://github.com/search?q=repo%3Aapache%2Fnuttx+13552&type=issues)
   
   
   
   This PR description is **missing crucial information** and does not fully meet the NuttX requirements. Here's a breakdown:
   
   **Missing Information:**
   
   * **What functional part of the code is being changed?**  Be specific. Which files, functions, or modules are modified to correct the `setjmp` behavior? 
   * **How does the change exactly work?**  Explain the technical implementation details of the fix.  
   * **Impact on user:** Will any existing applications relying on the incorrect behavior break? How should they adapt?
   * **Impact on hardware:**  While the description mentions "some architectures", it doesn't specify which ones.  List the affected architectures explicitly.
   * **Testing:**
       * **Incomplete:** "Testing code lives in the nuttx apps repository" is not sufficient. Include relevant snippets of the testing logs demonstrating the issue before and the fix after the change.
       * **Unclear:**  "as a separate patch" is confusing. Is the testing part of this PR or a separate one? If separate, provide a link.
   * **Links:** Include links to the related NuttX issue and the testing patch in the  NuttX Apps repository.
   
   **Recommendations:**
   
   1. **Expand the Summary:** Provide specific details about the code changes and their mechanism.
   2. **Clarify Impact:**  Clearly state the affected architectures and potential user impact (if any). 
   3. **Complete Testing Section:** Include relevant testing log snippets directly in the PR description. If the testing is a separate patch, provide a link to it. 
   4. **Add Links:** Include links to the related NuttX and NuttX Apps issues/PRs. 
   
   By addressing these points, you'll make your PR much stronger and easier for reviewers to understand and approve. 
   


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] setjmp: fix setjmp returns 0 when calling longjmp with 0 as the secon… [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on PR #14152:
URL: https://github.com/apache/nuttx/pull/14152#issuecomment-2412879372

   @realprocrastinator please resubmit your apps side change.


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [PR] setjmp: fix setjmp returns 0 when calling longjmp with 0 as the secon… [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #14152:
URL: https://github.com/apache/nuttx/pull/14152


-- 
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-unsubscribe@nuttx.apache.org

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