Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v3]

2024-09-06 Thread Chris Plummer
On Sat, 7 Sep 2024 01:48:39 GMT, Yasumasa Suenaga wrote: >> This PR is successor of #20789 . I got some comments in there, then I needed >> to fix in many pooints. And also I have to fix branch name to kick GHA >> automatically (#20789 is named with `pr/`, it meets the condition to skip >> GHA

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-09-06 Thread Yasumasa Suenaga
On Sat, 7 Sep 2024 01:04:14 GMT, Chris Plummer wrote: >> Yasumasa Suenaga has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Update test/hotspot/jtreg/serviceability/sa/libupcall.c >> >>Co-authored-by: Jorn Vernee >> - Update >

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v3]

2024-09-06 Thread Yasumasa Suenaga
> This PR is successor of #20789 . I got some comments in there, then I needed > to fix in many pooints. And also I have to fix branch name to kick GHA > automatically (#20789 is named with `pr/`, it meets the condition to skip > GHA). Hence I've opened another PR for this JBS issue. > > This P

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v3]

2024-09-06 Thread Yasumasa Suenaga
On Fri, 6 Sep 2024 15:29:18 GMT, Jorn Vernee wrote: >> Yasumasa Suenaga has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove blank lines > > Looks great! Thanks for implementing the JFA-based stack walking. > > Please wait for another

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-09-06 Thread Chris Plummer
On Sat, 7 Sep 2024 00:07:27 GMT, Yasumasa Suenaga wrote: >> This PR is successor of #20789 . I got some comments in there, then I needed >> to fix in many pooints. And also I have to fix branch name to kick GHA >> automatically (#20789 is named with `pr/`, it meets the condition to skip >> GHA

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-09-06 Thread Yasumasa Suenaga
> This PR is successor of #20789 . I got some comments in there, then I needed > to fix in many pooints. And also I have to fix branch name to kick GHA > automatically (#20789 is named with `pr/`, it meets the condition to skip > GHA). Hence I've opened another PR for this JBS issue. > > This P

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame

2024-09-06 Thread Jorn Vernee
On Fri, 6 Sep 2024 09:31:45 GMT, Yasumasa Suenaga wrote: > This PR is successor of #20789 . I got some comments in there, then I needed > to fix in many pooints. And also I have to fix branch name to kick GHA > automatically (#20789 is named with `pr/`, it meets the condition to skip > GHA). H

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-06 Thread Yasumasa Suenaga
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

RFR: 8339307: jhsdb jstack could not trace FFM upcall frame

2024-09-06 Thread Yasumasa Suenaga
This PR is successor of #20789 . I got some comments in there, then I needed to fix in many pooints. And also I have to fix branch name to kick GHA automatically (#20789 is named with `pr/`, it meets the condition to skip GHA). Hence I've opened another PR for this JBS issue. This PR has been u

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-03 Thread Chris Plummer
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++) { >>

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-03 Thread Yasumasa Suenaga
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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-03 Thread Yasumasa Suenaga
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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-03 Thread Chris Plummer
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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-02 Thread Jorn Vernee
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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-02 Thread Yasumasa Suenaga
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)

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-02 Thread Jorn Vernee
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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v4]

2024-09-02 Thread Yasumasa Suenaga
> 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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v3]

2024-09-02 Thread Andrey Turbanov
On Sat, 31 Aug 2024 09:34:09 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/nativese

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-08-31 Thread Fei Yang
On Sat, 31 Aug 2024 12:25:49 GMT, Yasumasa Suenaga wrote: >> src/hotspot/cpu/x86/upcallLinker_x86_64.cpp line 397: >> >>> 395: * and also should include both saved FP and >>> return address >>> 396: */ >>> 397: (frame_

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-08-31 Thread Yasumasa Suenaga
On Sat, 31 Aug 2024 06:52:56 GMT, Fei Yang wrote: >> Yasumasa Suenaga has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Add testcase >> - Remove unnecessary comment from UpcallStub > > src/hotspot/cpu/x86/upcallLinker_x86_64.cpp line 39

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v3]

2024-08-31 Thread Yasumasa Suenaga
> 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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-08-30 Thread Fei Yang
On Sat, 31 Aug 2024 04:21:17 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/nativese

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-08-30 Thread Yasumasa Suenaga
On Fri, 30 Aug 2024 20:28:11 GMT, Chris Plummer wrote: > Thanks for fixing this. The SA changes look fine. You'll need an FFM expert > for the hotspot changes. Thank you! > Is it possible to provide a test case? Maybe make a call into some blocking > native API and then run jstack on the proc

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame [v2]

2024-08-30 Thread Yasumasa Suenaga
> 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

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame

2024-08-30 Thread Chris Plummer
On Fri, 30 Aug 2024 09:14:11 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/nativesegv

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame

2024-08-30 Thread Yasumasa Suenaga
On Fri, 30 Aug 2024 09:14:11 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/nativesegv

Re: RFR: 8339307: jhsdb jstack could not trace FFM upcall frame

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 09:14:11 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/nativesegv

RFR: 8339307: jhsdb jstack could not trace FFM upcall frame

2024-08-30 Thread Yasumasa Suenaga
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 with