On Mon, 2 Sep 2024 10:29:40 GMT, Yasumasa Suenaga wrote:
>> I attempted to check stack trace in the core generated by [SEGV example in
>> upcall](https://github.com/YaSuenag/garakuta/blob/841452d9176dab1ddbb552009c180530eb81190b/NativeSEGV/ffm/upcall/src/main/java/com/yasuenag/garakuta/nativeseg
On Wed, 4 Sep 2024 00:33:06 GMT, Yasumasa Suenaga wrote:
>> test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackUpcall.java line 57:
>>
>>> 55:
>>> 56: private static void runJstackInLoop(LingeredApp app) throws
>>> Exception {
>>> 57: for (int i = 0; i < MAX_ITERATIONS; i++) {
>>
On Mon, 2 Sep 2024 15:13:44 GMT, Jorn Vernee wrote:
>>> I understand that adding the UpcallStub type to the SA agent code makes the
>>> WrongTypeException go away, and then we run into an assertion failure
>>> because the frame size is zero?
>>
>> Yes.
>>
>>> Note how there is also special ha
On Tue, 3 Sep 2024 19:39:59 GMT, Chris Plummer wrote:
>> Yasumasa Suenaga has updated the pull request incrementally with three
>> additional commits since the last revision:
>>
>> - Update test/hotspot/jtreg/serviceability/sa/LingeredAppWithFFMUpcall.java
>>
>>Co-authored-by: Andrey T
On Mon, 2 Sep 2024 10:29:40 GMT, Yasumasa Suenaga wrote:
>> I attempted to check stack trace in the core generated by [SEGV example in
>> upcall](https://github.com/YaSuenag/garakuta/blob/841452d9176dab1ddbb552009c180530eb81190b/NativeSEGV/ffm/upcall/src/main/java/com/yasuenag/garakuta/nativeseg
On Mon, 2 Sep 2024 14:50:10 GMT, Yasumasa Suenaga wrote:
> > Note how there is also special handling for (JNI) entry frames in the SA.
>
> Do you mean `JavaCallWrapper` (`X86Frame::senderForEntryFrame` in SA) ?
Yes. Internally it loads the fields of `JavaFrameAnchor`, which points at the
previ
On Mon, 2 Sep 2024 11:59:01 GMT, Jorn Vernee wrote:
> I understand that adding the UpcallStub type to the SA agent code makes the
> WrongTypeException go away, and then we run into an assertion failure because
> the frame size is zero?
Yes.
> Note how there is also special handling for (JNI)
On Mon, 2 Sep 2024 10:29:40 GMT, Yasumasa Suenaga wrote:
>> I attempted to check stack trace in the core generated by [SEGV example in
>> upcall](https://github.com/YaSuenag/garakuta/blob/841452d9176dab1ddbb552009c180530eb81190b/NativeSEGV/ffm/upcall/src/main/java/com/yasuenag/garakuta/nativeseg
> I attempted to check stack trace in the core generated by [SEGV example in
> upcall](https://github.com/YaSuenag/garakuta/blob/841452d9176dab1ddbb552009c180530eb81190b/NativeSEGV/ffm/upcall/src/main/java/com/yasuenag/garakuta/nativesegv/upcall/Main.java)
> with `jhsdb jstack`, however it failed