ghidra
ghidra copied to clipboard
Demangler GNU> Apply failure
Describe the bug Demangler unable to process some symbols in Code Browser
To Reproduce You'll need a binary with applied metadata, I can send .gar if you need Steps to reproduce the behavior:
- Go to 'Code Browser'
- Click on 'Analysis -> One Shot -> Demangler GNU' (this also present in "full" analysis)
- See error
Expected behavior
Demangled names like bool MethodInfo::System::Array::InternalArray__ICollection_Contains<Photon::Deterministic::DeterministicNetwork::NetworkSend>(Photon::Deterministic::DeterministicNetwork::NetworkSend)
Attachments
INFO (AutoAnalysisManager) Analysis Log Messages
There were too many messages to display.
29887 messages have been truncated.
Demangler GNU> Apply failure (DemangledFunction: IllegalArgumentException: Defined data at address: 027611e8)
_ZN10MethodInfo6System7Runtime16CompilerServices13CallSite_1_T_3__cIN6System7Runtime16CompilerServices13CallSite_1_T_1TEE36_CreateCustomNoMatchDelegate_b__18_0EN6System10Reflection13ParameterInfoE
Demangler GNU> Apply failure (DemangledFunction: IllegalArgumentException: Defined data at address: 03506840)
_ZN10MethodInfo6System9Threading5Tasks8Parallel21__c__DisplayClass17_0IN6System6ObjectEE15_ForWorker_b__1Ev
... a lot of these messages
Demangler GNU> Apply failure (DemangledFunction: IllegalArgumentException: Defined data at address: 02fc4808)
_ZN10MethodInfo6System12ArraySegmentIhE45System_Collections_Generic_ICollection_T__AddEh
Demangler GNU> Apply failure (DemangledFunction: IllegalArgumentException: Defined data at address: 02fc4828)
_ZN10MethodInfo6System11Collections7Generic12HashSet_1_T_10EnumeratorIN6System4Linq11Expressions11Interpreter14LabelScopeInfoEE11get_CurrentEv
INFO (AutoAnalysisManager) -----------------------------------------------------
Demangler GNU - One Time 16.216 secs
-----------------------------------------------------
Total Time 16 secs
-----------------------------------------------------
Environment (please complete the following information):
- OS: Windows 11
- Java Version: 22.0.2
- Ghidra Version: 11.1.2
- Ghidra Origin: GitHub
Additional context
both c++filt
from binutils and ghidra's demangler in from CLI have correct result, perhaps Code Browser can't apply it?