Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException while disassembling #8

Open
grishka opened this issue Aug 16, 2020 · 0 comments
Open

NullPointerException while disassembling #8

grishka opened this issue Aug 16, 2020 · 0 comments

Comments

@grishka
Copy link

grishka commented Aug 16, 2020

An unexpected error occurred while processing the command: Disassemble
java.lang.NullPointerException
	at ghidra.program.database.symbol.SymbolManager.getPrimarySymbol(SymbolManager.java:1100)
	at ghidra.program.database.function.FunctionManagerDB.getFunctionAt(FunctionManagerDB.java:631)
	at ghidra.program.disassemble.Disassembler.isNoReturnCall(Disassembler.java:1332)
	at ghidra.program.disassemble.Disassembler.processInstructionFlows(Disassembler.java:1195)
	at ghidra.program.disassemble.Disassembler.processInstruction(Disassembler.java:1156)
	at ghidra.program.disassemble.Disassembler.disassembleInstructionBlock(Disassembler.java:1028)
	at ghidra.program.disassemble.Disassembler.disassembleNextInstructionSet(Disassembler.java:662)
	at ghidra.program.disassemble.Disassembler.disassemble(Disassembler.java:602)
	at ghidra.program.disassemble.Disassembler.disassemble(Disassembler.java:473)
	at ghidra.app.cmd.disassemble.DisassembleCommand.doDisassembly(DisassembleCommand.java:223)
	at ghidra.app.cmd.disassemble.DisassembleCommand.applyTo(DisassembleCommand.java:157)
	at ghidra.framework.plugintool.mgr.BackgroundCommandTask.run(BackgroundCommandTask.java:101)
	at ghidra.framework.plugintool.mgr.ToolTaskManager.run(ToolTaskManager.java:315)
	at java.base/java.lang.Thread.run(Thread.java:830)

---------------------------------------------------
Build Date: 2019-Dec-18 1306 EST
Ghidra Version: 9.1.1
Java Home: /Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home
JVM Version: Oracle Corporation 13.0.2
OS: Mac OS X 10.14.6 x86_64
Workstation: 10.37.129.2

To reproduce:

  1. Download and unpack this
  2. Open it in Ghidra, specify 0x800000 for base address
  3. Disassemble at offset 0, it will yield a jmps instruction
  4. Follow the jump
  5. Try disassembling at the jump location and fail with the above exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant