Skip to contentSkip to conversation

strace breaks with to be released glibc 2.31

DISCUSSION Vineet Gupta 2 participants 2 messages Jan 15, 2020 – Jan 16, 2020 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

Hi,

I've been testing an in-works glibc port for ARC and with 2.31 there's a glibc change which seems to break strace.

Commit d1e411e5c786ce3 "Add PTRACE_GET_SYSCALL_INFO from Linux 5.3 to sys/ptrace.h."

This now defines PTRACE_GET_SYSCALL_INFO but defines struct __ptrace_syscall_info (not the non underscored ver) causing strace to trip.

I'm not sure how to fix strace: do we need to switch over to glibc provided __ptrace_syscall_info (with some #ifdef GLIBC and MINOR etc) or is there a better way to do this ?

Thx,
-Vineet
_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

#1 lore raw

Hi,

Quoted 9 lines · Vineet Gupta

Hi,

I've been testing an in-works glibc port for ARC and with 2.31 there's a glibc change which seems to break strace.

Commit d1e411e5c786ce3 "Add PTRACE_GET_SYSCALL_INFO from Linux 5.3 to sys/ptrace.h."

This now defines PTRACE_GET_SYSCALL_INFO but defines struct __ptrace_syscall_info (not the non underscored ver) causing strace to trip.

You must've got a relatively rare environment with glibc-2.31 and Linux kernel headers < 5.3. I'm testing a fix. Thanks,

Signature · 6 lines
ldv

_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc