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

            Bug ID: 42754
           Summary: llvm-addr2line does not exit when passed a
                    non-existent file
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-symbolizer
          Assignee: unassignedb...@nondot.org
          Reporter: arichardson....@gmail.com
                CC: llvm-bugs@lists.llvm.org

GNU addr2line and FreeBSD addr2line exit immediately when passed an invalid
file with -e:
$ addr2line -fi -e /bad/file
addr2line: /bad/file: No such file or directory

However, llvm-addr2line does not exit and waits for input on stdin.
This causes compiler-rt/test/asan/TestCases/Posix/asan-symbolize-bad-path.cc to
block forever if -DLLVM_INSTALL_BINUTILS_SYMLINKS=ON is enabled.
In that case the addr2line found in the path will be llvm-addr2line and then
the test waits forever.

I wonder if we want to change llvm-addr2line (and possibly also
llvm-symbolizer) to behave in the same way as GNU?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to