Package: rr
Version: 5.9.0-5
Severity: important

Dear Maintainer,

`rr` now crashes on every invocation for recording an execution (see below 
execution for a simple "ls" execution).

I'm using a AMD Ryzen processor (AMD Ryzen AI 9 HX 370 w/ Radeon 890M) with the 
workaround correctly set:
$ sudo  /usr/share/doc/rr/examples/zen_workaround.py --check
Zen workaround in place

Also, it was been working fine in the previous weeks.

I've tried downgrading:
- rr_5.9.0-1_amd64.deb : same result
- rr_5.8.0-2_amd64.deb (and libcapnp-1.0.1_1.0.1-4+b1_amd64.deb): "AMD CPU type 
0x20f40 (ext family 0xb) unknown"

Not really sure what has changed, but it may be something else than rr.

$ rr record --  ls
rr: Saving execution to trace directory `/home/marc/.local/share/rr/ls-4'.
[FATAL ./src/record_syscall.cc:6733:rec_process_syscall_arch()]
 (task 2812815 (rec:2812815) at time 328)
 -> Assertion `t->regs().syscall_result_signed() == 
-syscall_state.expect_errno' failed to hold. Expected EINVAL for 'ioctl' but 
got result 0 (errno SUCCESS); Unknown ioctl(0x802c542a): type:0x54 nr:0x2a 
dir:0x2 size:44 addr:0x7fffb0af12d0
Tail of trace dump:
{
  real_time:278210.573444 global_time:308, event:`SYSCALLBUF_FLUSH' 
tid:2812815, ticks:113544
  { syscall:'close', ret:0x0, size:0x10 }
  { syscall:'openat', ret:0xfffffffffffffffe, size:0x10, desched:1 }
  { syscall:'openat', ret:0x3, size:0x10, desched:1 }
  { syscall:'readlinkat', ret:0x25, size:0x35 }
  { syscall:'fstat', ret:0x0, size:0xa0 }
}
{
  real_time:278210.573446 global_time:309, event:`SYSCALL: mmap' 
(state:ENTERING_SYSCALL) tid:2812815, ticks:113544
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 
rsi:0x277932 rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d2138 r13:0x3 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
}
{
  real_time:278210.573449 global_time:310, event:`SYSCALLBUF_RESET' 
tid:2812815, ticks:113544
}
{
  real_time:278210.573490 global_time:311, event:`SYSCALL: mmap' 
(state:EXITING_SYSCALL) tid:2812815, ticks:113544
rax:0x7f0b8fe00000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 rsi:0x277932 
rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d2138 r13:0x3 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
  { map_file:"/usr/lib/locale/aa_DJ.utf8/LC_COLLATE", addr:0x7f0b8fe00000, 
length:0x278000, prot_flags:"r--p", file_offset:0x0, device:65025, 
inode:1442605, data_file:"/usr/lib/locale/aa_DJ.utf8/LC_COLLATE", 
data_offset:0x0, file_size:0x277932 }
}
{
  real_time:278210.573519 global_time:312, event:`SYSCALLBUF_FLUSH' 
tid:2812815, ticks:117134
  { syscall:'close', ret:0x0, size:0x10 }
  { syscall:'openat', ret:0xfffffffffffffffe, size:0x10, desched:1 }
  { syscall:'openat', ret:0x3, size:0x10, desched:1 }
  { syscall:'readlinkat', ret:0x22, size:0x32 }
  { syscall:'fstat', ret:0x0, size:0xa0 }
}
{
  real_time:278210.573522 global_time:313, event:`SYSCALL: mmap' 
(state:ENTERING_SYSCALL) tid:2812815, ticks:117134
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 rsi:0xcd4 
rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d2658 r13:0x2 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
}
{
  real_time:278210.573525 global_time:314, event:`SYSCALLBUF_RESET' 
tid:2812815, ticks:117134
}
{
  real_time:278210.573565 global_time:315, event:`SYSCALL: mmap' 
(state:EXITING_SYSCALL) tid:2812815, ticks:117134
rax:0x7f0b904de000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 rsi:0xcd4 
rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d2658 r13:0x2 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
  { map_file:"/usr/lib/locale/en_US.utf8/LC_TIME", addr:0x7f0b904de000, 
length:0x1000, prot_flags:"r--p", file_offset:0x0, device:65025, inode:1467719, 
data_file:"/usr/lib/locale/en_US.utf8/LC_TIME", data_offset:0x0, 
file_size:0xcd4 }
}
{
  real_time:278210.573591 global_time:316, event:`SYSCALLBUF_FLUSH' 
tid:2812815, ticks:121241
  { syscall:'close', ret:0x0, size:0x10 }
  { syscall:'openat', ret:0xfffffffffffffffe, size:0x10, desched:1 }
  { syscall:'openat', ret:0x3, size:0x10, desched:1 }
  { syscall:'readlinkat', ret:0x20, size:0x30 }
  { syscall:'fstat', ret:0x0, size:0xa0 }
}
{
  real_time:278210.573593 global_time:317, event:`SYSCALL: mmap' 
(state:ENTERING_SYSCALL) tid:2812815, ticks:121241
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 rsi:0x36 
rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d2fc8 r13:0x1 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
}
{
  real_time:278210.573597 global_time:318, event:`SYSCALLBUF_RESET' 
tid:2812815, ticks:121241
}
{
  real_time:278210.573636 global_time:319, event:`SYSCALL: mmap' 
(state:EXITING_SYSCALL) tid:2812815, ticks:121241
rax:0x7f0b904dd000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 rsi:0x36 
rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d2fc8 r13:0x1 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
  { map_file:"/usr/lib/locale/aa_ET/LC_NUMERIC", addr:0x7f0b904dd000, 
length:0x1000, prot_flags:"r--p", file_offset:0x0, device:65025, inode:1442634, 
data_file:"/usr/lib/locale/aa_ET/LC_NUMERIC", data_offset:0x0, file_size:0x36 }
}
{
  real_time:278210.573659 global_time:320, event:`SYSCALLBUF_FLUSH' 
tid:2812815, ticks:124716
  { syscall:'close', ret:0x0, size:0x10 }
  { syscall:'openat', ret:0xfffffffffffffffe, size:0x10, desched:1 }
  { syscall:'openat', ret:0x3, size:0x10, desched:1 }
  { syscall:'readlinkat', ret:0x23, size:0x33 }
  { syscall:'fstat', ret:0x0, size:0xa0 }
}
{
  real_time:278210.573662 global_time:321, event:`SYSCALL: mmap' 
(state:ENTERING_SYSCALL) tid:2812815, ticks:124716
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 
rsi:0x59c5c rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d3478 r13:0x0 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
}
{
  real_time:278210.573665 global_time:322, event:`SYSCALLBUF_RESET' 
tid:2812815, ticks:124716
}
{
  real_time:278210.573704 global_time:323, event:`SYSCALL: mmap' 
(state:EXITING_SYSCALL) tid:2812815, ticks:124716
rax:0x7f0b90435000 rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x1 rsi:0x59c5c 
rdi:0x0 rbp:0x2 rsp:0x681ffde0 r8:0x3 r9:0x0 r10:0x2 r11:0x246 
r12:0x55ae374d3478 r13:0x0 r14:0x3 r15:0x2 rip:0x70000002 eflags:0x246 cs:0x33 
ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 orig_rax:0x9 fs_base:0x7f0b9048f840 
gs_base:0x0
  { map_file:"/usr/lib/locale/aa_DJ.utf8/LC_CTYPE", addr:0x7f0b90435000, 
length:0x5a000, prot_flags:"r--p", file_offset:0x0, device:65025, 
inode:1442606, data_file:"/usr/lib/locale/aa_DJ.utf8/LC_CTYPE", 
data_offset:0x0, file_size:0x59c5c }
}
{
  real_time:278210.573731 global_time:324, event:`SYSCALLBUF_FLUSH' 
tid:2812815, ticks:126543
  { syscall:'close', ret:0x0, size:0x10 }
}
{
  real_time:278210.573749 global_time:325, event:`PATCH_SYSCALL' tid:2812815, 
ticks:126543
rax:0x10 rbx:0x7fffb0af14d8 rcx:0xffffffffffffffff rdx:0x7fffb0af12d0 
rsi:0x802c542a rdi:0x1 rbp:0x1 rsp:0x7fffb0af12d0 r8:0x7fffb0af1370 r9:0x0 
r10:0x4 r11:0x246 r12:0x0 r13:0x7fffb0af1370 r14:0x55ae2751c340 
r15:0x55ae27515700 rip:0x7f0b9030827f eflags:0x246 cs:0x33 ss:0x2b ds:0x0 
es:0x0 fs:0x0 gs:0x0 orig_rax:0xffffffffffffffff fs_base:0x7f0b9048f840 
gs_base:0x0
  { tid:2812815, addr:0x7f0b904231d6, length:0x5e }
  { tid:2812815, addr:0x7f0b9030827f, length:0x8 }
}
{
  real_time:278210.573752 global_time:326, event:`SYSCALLBUF_RESET' 
tid:2812815, ticks:126543
}
{
  real_time:278210.573768 global_time:327, event:`SYSCALL: ioctl' 
(state:ENTERING_SYSCALL) tid:2812815, ticks:126554
rax:0xffffffffffffffda rbx:0x681fffa0 rcx:0xffffffffffffffff rdx:0x7fffb0af12d0 
rsi:0x802c542a rdi:0x1 rbp:0x1 rsp:0x681ffde0 r8:0x7fffb0af1370 r9:0x0 r10:0x4 
r11:0x246 r12:0x0 r13:0x7fffb0af1370 r14:0x55ae2751c340 r15:0x55ae27515700 
rip:0x70000002 eflags:0x246 cs:0x33 ss:0x2b ds:0x0 es:0x0 fs:0x0 gs:0x0 
orig_rax:0x10 fs_base:0x7f0b9048f840 gs_base:0x0
}
=== Start rr backtrace:
rr(_ZN2rr13dump_rr_stackERNS_8ScopedFdE+0x52) [0x55e756995392]
rr(_ZN2rr15emergency_debugEPNS_4TaskE+0x189) [0x55e756847b49]
rr(_ZN2rr21EmergencyDebugOstreamD2Ev+0x2ee) [0x55e75684dfde]
rr(+0x19128e) [0x55e7568da28e]
rr(_ZN2rr19rec_process_syscallEPNS_10RecordTaskE+0x14d) [0x55e7568e1ced]
rr(_ZN2rr13RecordSession21syscall_state_changedEPNS_10RecordTaskEPNS0_9StepStateE+0xa3a)
 [0x55e756892f2a]
rr(_ZN2rr13RecordSession11record_stepEv+0x665) [0x55e7568944a5]
rr(_ZN2rr13RecordCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0x1294)
 [0x55e756886784]
rr(main+0x4ba) [0x55e7567bba3a]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x29f75) [0x7f4221c29f75]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x87) [0x7f4221c2a027]
rr(_start+0x21) [0x55e7567bce31]
=== End rr backtrace
Launch debugger with
  'gdb' '-l' '10000' '-ex' 'set sysroot /' '-ex' 'target extended-remote 
127.0.0.1:60303' '/usr/bin/ls'


-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.17.13+deb14-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages rr depends on:
ii  libbrotli1      1.1.0-2+b9
ii  libc6           2.42-7
ii  libc6-i386      2.42-7
ii  libcapnp-1.1.0  1.1.0-2.1
ii  libgcc-s1       15.2.0-12
ii  libstdc++6      15.2.0-12
ii  libzstd1        1.5.7+dfsg-3+b1
ii  python3         3.13.7-1+b1
ii  zlib1g          1:1.3.dfsg+really1.3.1-1+b2

rr recommends no packages.

rr suggests no packages.

-- no debconf information

Reply via email to