[LLVMbugs] [Bug 8690] New: Block that inherits 'self' from enclosing block can get wrong value (ARM)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 24 15:50:34 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=8690

           Summary: Block that inherits 'self' from enclosing block can
                    get wrong value (ARM)
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kevin at sb.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5828)
 --> (http://llvm.org/bugs/attachment.cgi?id=5828)
Testcase

In an obj-c method, when a block creates and calls a nested block, and the
nested block inherits 'self' from its parent, the value of 'self' in the nested
block may be different than the value in the enclosing block. So far this is
only reproducible when compiling for the iPad (e.g. ARM), and unrelated changes
to the surrounding code can cause this bug to appear and disappear. I've
attached a reduced testcase - it's an Xcode project, as it requires installing
onto an iPad to reproduce. ViewController.m contains the relevant source.

This was compiled using Apple clang version 1.6 (tags/Apple/clang-70) and run
on an iPad running iOS 4.2.1.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list