Skip to content

java 'binexport tried to access method' when non default settingsdir set in launch.properties #34

Description

@bukowa
class com.google.security.zynamics.BinExport$BinExport2 tried to access method 'com.google.protobuf.LazyStringArrayList com.google.protobuf.LazyStringArrayList.emptyList()' (com.google.security.zynamics.BinExport$BinExport2 and com.google.protobuf.LazyStringArrayList are in unnamed module of loader ghidra.GhidraClassLoader @3aa9e816)
java.lang.IllegalAccessError: class com.google.security.zynamics.BinExport$BinExport2 tried to access method 'com.google.protobuf.LazyStringArrayList com.google.protobuf.LazyStringArrayList.emptyList()' (com.google.security.zynamics.BinExport$BinExport2 and com.google.protobuf.LazyStringArrayList are in unnamed module of loader ghidra.GhidraClassLoader @3aa9e816)
	at com.google.security.zynamics.BinExport$BinExport2.<init>(BinExport.java:19352)
	at com.google.security.zynamics.BinExport$BinExport2.<clinit>(BinExport.java:25089)
	at com.google.security.binexport.BinExport2Builder.<init>(BinExport2Builder.java:81)
	at com.google.security.binexport.BinExportExporter.export(BinExportExporter.java:92)
	at bindiffhelper.BinDiffHelperPlugin.binExportDomainFile(BinDiffHelperPlugin.java:131)
	at bindiffhelper.BinDiffHelperPlugin.lambda$callBinDiff$0(BinDiffHelperPlugin.java:164)
	at java.base/java.lang.Thread.run(Thread.java:1583)

---------------------------------------------------
Build Date: 2025-Feb-05 1536 EST
Ghidra Version: 11.3
Java Home: C:\ghidra\ghidra_11.3\Contrib\jdk-21.0.6+7
JVM Version: Eclipse Adoptium 21.0.6
OS: Windows 10 10.0 amd64

bindiff 8
bindiff 7
ghidra 11.3

I don't know what happened but reverting back to v0.6.1 doesn't help...

Edit: doesn't happen with fresh install of ghidra

Edit: I can reproduce if you change these settings to non defaults (set to any dir but must be full path)

# ghidra_11.3_PUBLIC\support\launch.properties
VMARGS=-Dapplication.settingsdir=
VMARGS=-Dapplication.cachedir=

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions