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

ghidra.util.exception.ClosedException: File is closed when loading any file #9

Open
docfate111 opened this issue Apr 16, 2022 · 0 comments

Comments

@docfate111
Copy link

I checked and the file exists in the correct path. I don't know why I'm getting this error.

>>> kc = Kext(Obj)
Traceback (most recent call last):
  File "python", line 1, in <module>
  File "/Users/thelshell/hacking/ghidra_kernelcache/utils/kext.py", line 17, in __init__
    kernelCache.__init__(self,objects,macOS=True)
  File "/Users/thelshell/hacking/ghidra_kernelcache/utils/ios_kc.py", line 21, in __init__
    namespace = self.symbolTable.getNamespace("OSMetaClassBase",None)
	at db.buffers.BufferMgr.getCachedBufferNode(BufferMgr.java:885)
	at db.buffers.BufferMgr.getBufferNode(BufferMgr.java:794)
	at db.buffers.BufferMgr.getBuffer(BufferMgr.java:958)
	at db.NodeMgr.getFixedKeyNode(NodeMgr.java:292)
	at db.Table.getFieldKeyNode(Table.java:164)
	at db.Table$FieldKeyIterator2.initialize(Table.java:3823)
	at db.Table$FieldKeyIterator2.<init>(Table.java:3797)
	at db.Table$FieldKeyIterator.<init>(Table.java:3356)
	at db.Table.fieldKeyIterator(Table.java:2000)
	at db.FieldIndexTable$PrimaryKeyIterator.<init>(FieldIndexTable.java:493)
	at db.FieldIndexTable.keyIterator(FieldIndexTable.java:410)
	at db.Table.indexIterator(Table.java:1564)
	at ghidra.program.database.symbol.SymbolDatabaseAdapterV3.getSymbolsByNameAndNamespace(SymbolDatabaseAdapterV3.java:278)
	at ghidra.program.database.symbol.SymbolManager.getSymbols(SymbolManager.java:983)
	at ghidra.program.database.symbol.SymbolManager.getNamespace(SymbolManager.java:1081)
	at jdk.internal.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
ghidra.framework.model.DomainObjectException: ghidra.framework.model.DomainObjectException caused by: ghidra.util.exception.ClosedException: File is closed
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