[LLVMbugs] [Bug 16276] New: ASAN: Forward real abort(3) once done handling errors and printing the stack

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 7 14:56:46 PDT 2013


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

            Bug ID: 16276
           Summary: ASAN: Forward real abort(3) once done handling errors
                    and printing the stack
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: dfarler at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On darwin, processes spawned by launchd (launch daemons or agents) that crash
will trigger ReportCrash. This will drop a crash log on the filesystem which
can be automatically symbolicated.

Unfortunately, it looks like programs linked with ASAN won't forward an abort
signal to the operating system, exiting 1 instead. launchd won't trigger crash
reports when processes exit normally with a return code.

Is there some way we can uninstall the signal handler and/or forward an abort
somehow?

Steps to reproduce:

- Create a test C program that triggers an ASAN memcpy range overlap error.
- Run it

Results:

Process returns 1.

-- 
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/20130607/1a43b63f/attachment.html>


More information about the llvm-bugs mailing list