[LLVMbugs] [Bug 21418] longjmp fails if no variable in calling thread in this ugly code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 30 17:36:20 PDT 2014


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The call to longjmp(*environment1, 1) in co2 terminates the execution of co2.
The subsequent call to longjmp(*environment2, 1) in co1 has undefined behavior
because it would jump into a function execution that has already terminated.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141031/7a48c2e0/attachment.html>

More information about the llvm-bugs mailing list