https://bugs.kde.org/show_bug.cgi?id=501850
--- Comment #1 from Paul Floyd <pjfl...@wanadoo.fr> --- I wrote a little test based on scalar #include "scalar.h" int main(void) { SY(SYS_sendfile, 1000, 2, 3, 4, 5, 6, 7, 8); return(0); } I can comment out the sfMayBlock - the syscall will fail so no question of blocking. That allows me to test both VG_(do_syscall) and ML_(do_syscall_for_client_WRK). On arm64 I get the right arguments in ktrace in both cases. On both x86 and amd64 ML_(do_syscall_for_client_WRK) (with sfMayBlock) both look OK. On x86 VG_(do_syscall) (without sfMayBlock) looks OK On amd64 VG_(do_syscall) (without sfMayBlock) looks bad 74122 memcheck-amd64-free CALL sendfile(0x3e8,0x2,0x3,0x4,0x5,0x6,0x8<><invalid>8) That last argument should be 7. If I reverse the stack offsets used for a7 and a8 in do_syscall_WRK then I get good results. -- You are receiving this mail because: You are watching all bug changes.