I encountered an issue during use and cannot reproduce your results
The firmware tested is US_ AC11V2.0re_ V02.03.01.104_ cn_ TDC01.bin
The test command is sudo/ run.sh /home/2834_ ac11 MIPS:LE:32:default 0x80000000
The environment I have tried is:
ubuntu 18.04
java11
ghidra 9.2.3
Also tried in the Docker image you provided
Whether on my server or in the Docker image
Details:
root@d8f35be856bb:~/findtrace# ./run.sh /home/2834_ac11 MIPS:LE:32:default 0x80000000
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "ghidra.GhidraClassLoader"). To use archived non-system classes, this property must be not be set
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu118.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu118.04, mixed mode, sharing)
INFO Using log config file: jar:file:/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Framework/Generic/lib/Generic.jar!/generic.log4j.xml (LoggingInitialization)
INFO Using log file: /root/.ghidra/.ghidra_9.2.3_PUBLIC/application.log (LoggingInitialization)
INFO Loading user preferences: /root/.ghidra/.ghidra_9.2.3_PUBLIC/preferences (Preferences)
INFO Class search complete (701 ms) (ClassSearcher)
INFO Initializing SSL Context (SSLContextInitializer)
INFO Initializing Random Number Generator... (SecureRandomFactory)
INFO Random Number Generator initialization complete: NativePRNGNonBlocking (SecureRandomFactory)
INFO Trust manager disabled, cacerts have not been set (ApplicationTrustManagerFactory)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/Base/lib/org.apache.felix.framework-6.0.3.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO HEADLESS Script Paths:
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/FunctionID/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/Python/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Processors/PIC/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Processors/DATA/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/Decompiler/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/VersionTracking/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Processors/8051/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/GnuDemangler/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/Base/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/FileFormats/ghidra_scripts
/root/deps/ghidra_9.2.3_PUBLIC/Ghidra/Features/BytePatterns/ghidra_scripts (HeadlessAnalyzer)
INFO HEADLESS: execution starts (HeadlessAnalyzer)
INFO Creating project: /root/ghidra_project/2834_ac11 (HeadlessAnalyzer)
INFO Creating project: /root/ghidra_project/2834_ac11 (DefaultProject)
INFO REPORT: Processing input files: (HeadlessAnalyzer)
INFO project: /root/ghidra_project/2834_ac11 (HeadlessAnalyzer)
INFO IMPORTING: /home/2834_ac11 (HeadlessAnalyzer)
INFO REPORT: Import succeeded with language "MIPS:LE:32:default" and cspec "default" for file: /home/2834_ac11 (HeadlessAnalyzer)
INFO SCRIPT: /root/findtrace/setbase.py (HeadlessAnalyzer)
setbase begin 2834_ac11 - .ProgramDB
Setting ImageBase to 0x80000000
setbase end 2834_ac11 - .ProgramDB
INFO ANALYZING all memory and code: /home/2834_ac11 (HeadlessAnalyzer)
INFO Packed database cache: /tmp/root-Ghidra/packed-db-cache (PackedDatabaseCache)
INFO -----------------------------------------------------
ASCII Strings 0.975 secs
Apply Data Archives 0.338 secs
Call Convention ID 0.036 secs
Call-Fixup Installer 0.166 secs
Create Address Tables 0.379 secs
Create Address Tables - One Time 0.942 secs
Create Function 3.683 secs
Data Reference 0.332 secs
Decompiler Switch Analysis 18.891 secs
Demangler GNU 0.047 secs
Disassemble 12.469 secs
Disassemble Entry Points 0.002 secs
Embedded Media 0.122 secs
External Entry References 0.001 secs
Function Start Search 0.232 secs
Function Start Search delayed - One Time 0.002 secs
MIPS Constant Reference Analyzer 30.161 secs
MIPS Symbol 0.004 secs
MIPS UnAlligned Instruction Fix 0.452 secs
Non-Returning Functions - Discovered 2.217 secs
Reference 2.277 secs
Shared Return Calls 0.794 secs
Stack 26.251 secs
Subroutine References 1.876 secs
Subroutine References - One Time 0.000 secs
-----------------------------------------------------
Total Time 102 secs
-----------------------------------------------------
(AutoAnalysisManager)
INFO REPORT: Analysis succeeded for file: /home/2834_ac11 (HeadlessAnalyzer)
INFO SCRIPT: /root/findtrace/findtrace.py (HeadlessAnalyzer)
No simresult found
findtrace start 2834_ac11 - .ProgramDB
source_funcs: []
sink_funcs: []
All done, time: 2.399000(0m 2.399000s)
Summary: find 0 call_traces
summary file has been saved in /root/findtrace/findtrace_output/2834_ac11_result/summary
findtrace end 2834_ac11 - .ProgramDB
INFO ANALYZING changes made by post scripts: /home/2834_ac11 (HeadlessAnalyzer)
INFO REPORT: Post-analysis succeeded for file: /home/2834_ac11 (HeadlessAnalyzer)
INFO REPORT: Save succeeded for file: /2834_ac11 (HeadlessAnalyzer)
root@d8f35be856bb:~/findtrace# ls findtrace_output/2834_ac11_result/
summary summary.json
root@d8f35be856bb:~/findtrace# cat findtrace_output/2834_ac11_result/summary
Summary: find 0 call_traces
Analysis time: 2.399000(0m 2.399000s)
root@d8f35be856bb:~/findtrace# cat findtrace_output/2834_ac11_result/summary.json
{
"all_trace_sum_num": 0,
"all_source_num": 0,
"source_xrefs_count": 0,
"source_pcode_num_1st": 0,
"sink_xrefs_count": 0,
"source_convey_trace_num": 0,
"convey_sink_trace_num": 0,
"source_pcode_trace_num_1st": 0,
"source_pcode_num_2st_convey_sink": 0,
"call_tree_info": [],
"cost_time": 2.3989999294281006,
"all_func_num": 8553,
"source_pcode_trace_num_2st_convey_sink": 0,
"source_sink_trace_num": 0,
"call_tree_num": 0
}
root@d8f35be856bb:~/findtrace#
I encountered an issue during use and cannot reproduce your results
The firmware tested is US_ AC11V2.0re_ V02.03.01.104_ cn_ TDC01.bin
The test command is sudo/ run.sh /home/2834_ ac11 MIPS:LE:32:default 0x80000000
The environment I have tried is:
Also tried in the Docker image you provided
Whether on my server or in the Docker image
Details: