All Questions
103 questions
2
votes
1
answer
66
views
Java native access violation is not triggering the windows jit debugger
I created a null dereference in C++ code that is called from java exe. AeDebug registry key is set with notepad (for testing.) However, the app crash does not launch notepad.
Attached windbg and found ...
0
votes
1
answer
722
views
JVM Crashing few minutes after application starts
JVM is getting crashed few minutes after the application starts. This application is working fine in other machines. This application uses javax.print apis. Could the faulty printer dlls be culprit? ...
0
votes
1
answer
257
views
How to modify bytecode on class load JVM no args
I have an exe that is starting a JVM and loading java classes into memory. I was successfully able to dump these classes with a -javaagent from the running JVM by attaching it to the process and ...
1
vote
2
answers
3k
views
How to dump classes loaded into memory? Java
I am trying to access a java package loaded into memory and dump it to a file. Here is how the security works: there is an exe packed with Themida that contains the java main class code to be loaded. ...
0
votes
1
answer
524
views
OpenJDK 8 interpreter debug
I want to see how the JVM interpreter works. Can I track function calls using NetBeans or GDB? And how will it be more convenient to do this? I'm interested in starting HelloWorld with the -Xint ...
2
votes
0
answers
336
views
Inspect Operand Stack and Local Variable Array of a JVM Frame using JDB
Is there a way in JDB to inspect the operand stack and local variable array of the current frame? The help command says that there's a locals command that can be used to list the local variables but ...
3
votes
1
answer
813
views
Retrieve ID of instance, like Eclipse's debugger does
Eclipse has a convenient feature when you're paused in the debugger that shows an ID for every instance. They appear to be sequential and based on when an instance was allocated:
I find these ...
0
votes
1
answer
1k
views
How to set a breakpoint in Java code with instrumentation?
So, opcode 202 (1100 1010) is reserved for a breakpoint event according to the Java specification. I tried inserting a breakpoint opcode in a Java method with the help of the ASM library:
...
0
votes
1
answer
388
views
How to intercept memory accesses/changes in the Hotspot JVM?
I'd like to develop some kind of reverse debugger for Java(where you can step back during execution). To do this, I have to know the initial state of the JVM(which can be easily got by a core dump). ...
0
votes
1
answer
4k
views
How to access JVM internal data structures using the Hotspot Dynamic Attach Mechanism?
According to the OpenJDK's website, it is possible to attach a thread to Hotspot (Dynamic Attach API) which can collect information about it. I couldn't find any material on the internet on how to ...
2
votes
1
answer
3k
views
How to Determine Whether OpenJDK Installed with Debugging Symbols
I installed openjdk-devel and openjdk-devel-debuginfo of the same major/minor version for an architecture in RedHat Linux Server 8+. I would like to make sure that the OpenJDK runtime has symbols for ...
1
vote
1
answer
3k
views
How to Execute OpenJDK Debugging Package
I need OpenJDK's build that provides symbols for debugging in RedHat Linux Server 8.2. I had installed OpenJDK 1.8.0 252-* (latest) with:
yum install java-1.8.0-openjdk-devel
However, afterward I ...
3
votes
0
answers
80
views
Is it possible to use the Debugger on Julia code called from Python or Java?
The Julia Debugger is excellent, but I am working in a company that is mostly Python or Java. I want to write the core algorithms in Julia and package them to be called by the product.
If something ...
4
votes
1
answer
4k
views
Jmap error "More than one non-option argument"
I'm trying to convert JVM core dump to HPROF format with following command
jmap -dump:format=b,file=dump.hprof $(which java) core.dump.9
and getting the following error
Error: More than one non-...
1
vote
2
answers
4k
views
Debugging 100% CPU usage in JVM [closed]
There's a Java application that occasionally starts to utilise all available cores, starves GC and crashes with OOM. The application is quite complex. It uses Akka Streams, Kafka, Etcd and has a built-...