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

StringIndexOutOfBoundsException on 1.3.10+ #357

Closed
xinyuan-liu opened this issue Aug 15, 2018 · 0 comments
Closed

StringIndexOutOfBoundsException on 1.3.10+ #357

xinyuan-liu opened this issue Aug 15, 2018 · 0 comments

Comments

@xinyuan-liu
Copy link

When running AllLines.java in samples with BTrace 1.3.10+ the program will raise a StringIndexOutOfBoundsException. This problem does not exist in 1.3.9.

Debug Infomation:

btrace DEBUG: initial script is ./AllLines.class
btrace INFO: Redirecting output to ./a.txt
btrace DEBUG: loading BTrace class
btrace DEBUG: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at com.sun.btrace.runtime.OnMethod.setMethod(OnMethod.java:146)
at com.sun.btrace.runtime.BTraceProbePersisted.readOnMethods(BTraceProbePersisted.java:182)
at com.sun.btrace.runtime.BTraceProbePersisted.read_1(BTraceProbePersisted.java:147)
at com.sun.btrace.runtime.BTraceProbePersisted.read(BTraceProbePersisted.java:130)
at com.sun.btrace.runtime.BTraceProbeFactory.createProbe(BTraceProbeFactory.java:91)
at com.sun.btrace.agent.Client.load(Client.java:423)
at com.sun.btrace.agent.Client.loadClass(Client.java:280)
at com.sun.btrace.agent.FileClient.init(FileClient.java:62)
at com.sun.btrace.agent.FileClient.(FileClient.java:71)
at com.sun.btrace.agent.Main.loadBTraceScript(Main.java:614)
at com.sun.btrace.agent.Main.startScripts(Main.java:244)
at com.sun.btrace.agent.Main.main(Main.java:112)
at com.sun.btrace.agent.Main.premain(Main.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)

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