Open
Bug 1455068
Opened 7 years ago
Updated 2 years ago
rustc still generating debug information causing msdia.dll to throw exceptions
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
NEW
People
(Reporter: froydnj, Unassigned)
References
(Blocks 1 open bug)
Details
I am trying to use SymbolSort to analyze some size issues on Windows. Running SymbolSort on a xul.pbd from mozilla-central gives:
$ ./SymbolSort.exe -in xul.pdb -out f.txt
Loading symbols from xul.pdb
Reading section info...
Reading source file info...
Reading global function symbols... 15% complete
Unhandled Exception: System.DivideByZeroException: Attempted to divide by zero.
at Dia2Lib.IDiaSymbol.get_undecoratedName()
at SymbolSort.SymbolSort.ReadSymbolsFromScope(IDiaSymbol parent, SymTagEnum type, SymbolFlags additionalFlags, UInt32 startPercent, UInt32 endPercent, IDiaSession diaSession, List`1 sectionContribs, Dictionary`2 compilandFileMap, List`1 symbols) in C:\Users\froyd\SymbolSort-master\SymbolSort.cs:line 919
at SymbolSort.SymbolSort.ReadSymbolsFromPDB(List`1 symbols, String filename, String searchPath, Options options) in C:\Users\froyd\SymbolSort-master\SymbolSort.cs:line 1188
at SymbolSort.SymbolSort.Main(String[] args) in C:\Users\froyd\SymbolSort-master\SymbolSort.cs:line 1777
which is aggravating. I discovered bug 1343625 worked around this for our own symbol dumping purposes, and https://github.com/rust-lang/rust/pull/42803 was supposed to fix it in upstream Rust, but it seems that the bug is still present in whatever version of Rust we use to compile m-c with.
I think I can work around this in SymbolSort itself, but it would obviously be nicer if this was fixed upstream. Michael, should I file a Rust bug report for you?
Flags: needinfo?(michaelwoerister)
Comment 1•7 years ago
|
||
Thanks for the investigation, Nathan! Yes, please open an issue in the Rust repo.
Flags: needinfo?(michaelwoerister)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•