[llvm-bugs] [Bug 31544] New: BPF target: More meaningful error messages from BPF backend

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 5 03:01:38 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31544

            Bug ID: 31544
           Summary: BPF target: More meaningful error messages from BPF
                    backend
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: daniel at iogearbox.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The below compile error happens when a BPF program passes a constant NULL
pointer into a function and dereferences a member from it.

fatal error: error in backend: Cannot select: 0x47508a0: ch,glue = BPFISD::CALL
0x48e0380, TargetExternalSymbol:i64'abort'
 0x4884ec0: i64 = TargetExternalSymbol'abort'
In function: handle_policy
clang-3.8: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.8.1 (tags/RELEASE_381/final)
Target: bpf
Thread model: posix
InstalledDir: /usr/local/clang/bin

Would be great if this has something more intuitive to the user.

-- 
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/20170105/2d2983a8/attachment.html>


More information about the llvm-bugs mailing list