This is an archive of the discontinued LLVM Phabricator instance.

[llvm-symbolizer] Omit stderr output when symbolizing a stacktrace
ClosedPublic

Authored by aganea on Dec 14 2018, 2:40 PM.

Details

Summary

As discussed previously, don't print errors when symbolizing a stack trace:

LLVMSymbolizer: error reading file: 'ucrtbased.pdb': no such file or directory
LLVMSymbolizer: error reading file: 'kernel32.pdb': no such file or directory
LLVMSymbolizer: error reading file: 'ntdll.pdb': no such file or directory
#0 0x00007ff71c62501c HandleAbort f:\svn\llvm\lib\support\windows\signals.inc:409:0
#1 0x00007ffe6510bba1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6bba1)
#2 0x00007ffe6510d7f9 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6d7f9)

...now shows:

#0 0x00007ff71c62501c HandleAbort f:\svn\llvm\lib\support\windows\signals.inc:409:0
#1 0x00007ffe6510bba1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6bba1)
#2 0x00007ffe6510d7f9 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6d7f9)

I've also aligned the count at the begining of the line (I can commit two separate patches if you wish):

 #0 0x00007ff7e7004fbc HandleAbort f:\svn\llvm\lib\support\windows\signals.inc:409:0
 #1 0x00007ffe674fbba1 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0x6bba1)
                        (...)
 #9 0x00007ff7e720b3c1 <lambda_0a1b45eabab73a8e6866a119e7429fe9>::operator() f:\svn\lld\coff\pdb.cpp:1227:0
#10 0x00007ff7e71f1b4e llvm::codeview::forEachCodeViewRecord f:\svn\llvm\include\llvm\debuginfo\codeview\cvrecord.h:77:0
#11 0x00007ff7e71d7ea3 `anonymous namespace'::PDBLinker::mergeSymbolRecords f:\svn\lld\coff\pdb.cpp:1197:0

Diff Detail

Repository
rL LLVM

Event Timeline

aganea created this revision.Dec 14 2018, 2:40 PM
rnk accepted this revision.Dec 14 2018, 2:46 PM

lgtm

Thanks for dealing with this, it has been annoying me for years at this point.

This revision is now accepted and ready to land.Dec 14 2018, 2:46 PM
This revision was automatically updated to reflect the committed changes.