How to native debug Java on macOS?

Chris Plummer chris.plummer at oracle.com
Thu Sep 12 04:26:29 UTC 2019


On 9/11/19 10:23 AM, Chris Plummer wrote:
> On 9/11/19 7:12 AM, Alexander Miloslavskiy wrote:
>> Yes, I had the same experience, where nothing helped to skip the 
>> EXC_BAD_ACCESS. Now it just works. I can't explain. Maybe indeed 
>> something was fixed recently?
>>
>> $ lldb --version
>> lldb-1001.0.13.3
>>   Swift-5.0
> That's the same version I'm using. Are you using it from xcode? If so, 
> what version of xcode are you using?
>
> Chris
>
I wonder if what's actually changed is how or what you are debugging. 
Possibly you simply aren't hitting any of the segv traps, especially if  
you are waiting for the program to warm up before attaching, or are only 
debugging for a short period of time. Debugging an app that pretty much 
is only ever executing on 1 thread at a time also reduces the likelyhood 
of traps. Have you tried first reproducing the issue without "process 
handle", and then go through the exact same step with "process handle"?

Chris



More information about the hotspot-dev mailing list