[LLVMbugs] [Bug 14674] New: Address Sanitizer (ASan) is not compatible with Cocoa Garbage Collection (GC)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 20 13:53:11 PST 2012


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

             Bug #: 14674
           Summary: Address Sanitizer (ASan) is not compatible with Cocoa
                    Garbage Collection (GC)
           Product: new-bugs
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9747
  --> http://llvm.org/bugs/attachment.cgi?id=9747
test case

Address Sanitizer (ASan) is not compatible with Cocoa Garbage Collection (GC).

As GC is deprecated, I agree this might not be worth fixing, but maybe it's
something unexpectedly simple, like #13794 was.

With a trivial test case (attached) that just calls NSApplicationLoad() in
main() the OS spews a bunch of these:

a.out(8598,0x7fff7789c960) malloc: reference count underflow for 0x400410660,
break on auto_refcount_underflow_error to debug.
2012-12-13 13:02:34.723 a.out[8598:707] storing a non-GC object 0x109733e48 in
a GC collection, break on CFCollection_non_gc_storage_error to debug.

then asan spews:

==8598== ERROR: AddressSanitizer: attempting free on address which was not
malloc()-ed: 0x00010aab4000

Full output also attached.

-- 
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