On Thu, 29 Oct 2026 23:16:20 GMT, Martin Doerr <[email protected]> wrote:

>> Looks like PTRACE_GETREGSET is not defined in our CI toolchain. Builds are 
>> now failing:
>> 
>> 
>> open/src/jdk.hotspot.agent/linux/native/libsaproc/ps_proc.c:138:14: error: 
>> 'PTRACE_GETREGSET' undeclared (first use in this function); did you mean 
>> 'PTRACE_GETREGS'?
>> [2026-10-29T18:40:18,995Z]   138 |   if (ptrace(PTRACE_GETREGSET, pid, 
>> NT_PRSTATUS, (void*) &iov) < 0) {
>> [2026-10-29T18:40:18,995Z]       |              ^~~~~~~~~~~~~~~~
>> [2026-10-29T18:40:18,995Z]       |              PTRACE_GETREGS
>
> Interesting! What kind of linux is it? The kernel should support it for sure 
> (except pre-2.6.34 kernels). We could use
> 
> #ifndef PTRACE_GETREGSET
> #define PTRACE_GETREGSET 0x4204
> #endif

The build was done on an OL9 host, but we use a devkit versioned as 
gcc14.2.0-OL6.4+1.0 for all our linux-x64 builds, so I guess this means it is 
based on OL6.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33468#discussion_r4418913181

Reply via email to