Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

rr tests failing on Devuan Chimera

27 views
Skip to first unread message

Brian Tague

unread,
Dec 25, 2022, 11:32:09 AM12/25/22
to rr-devel
Hi,

I believe I've installed rr properly on my system. I don't recall the exact output, but I don't recall any errors.

When running the tests as root from the /opt/obj (build ?) directory via: make -j$(nproc) test

I get the following results:
 root@rothbard:/opt/obj# make -j$(nproc) test
Running tests...
Test project /opt/obj
          Start    1: check_environment
   1/2853 Test    #1: check_environment .................................................   Passed    0.01 sec
          Start    2: 64bit_child
   2/2853 Test    #2: 64bit_child .......................................................***Failed  Error regular expression found in output. Regex=[FAILED] 19.15 sec
          Start    3: 64bit_child-no-syscallbuf
   3/2853 Test    #3: 64bit_child-no-syscallbuf .........................................***Failed  Error regular expression found in output. Regex=[FAILED] 23.09 sec
          Start    4: _llseek
   4/2853 Test    #4: _llseek ...........................................................***Failed  Error regular expression found in output. Regex=[FAILED] 22.09 sec
          Start    5: _llseek-no-syscallbuf
   5/2853 Test    #5: _llseek-no-syscallbuf .............................................***Failed  Error regular expression found in output. Regex=[FAILED] 21.09 sec

I eventually kill the process because all tests fail.

How might I debug these errors? My apologies if any of my questions are naive or if I've left out useful information.

-Brian

Robert O'Callahan

unread,
Dec 25, 2022, 12:15:09 PM12/25/22
to Brian Tague, rr-devel
What do you get if you run e.g. "rr record /bin/ls"?

Rob
--
Su ot deraeppa sah dna Rehtaf eht htiw saw hcihw, efil lanrete eht uoy ot mialcorp ew dna, ti ot yfitset dna ti nees evah ew; deraeppa efil eht. Efil fo Drow eht gninrecnoc mialcorp ew siht - dehcuot evah sdnah ruo dna ta dekool evah ew hcihw, seye ruo htiw nees evah ew hcihw, draeh evah ew hcihw, gninnigeb eht morf saw hcihw taht.

Brian Tague

unread,
Dec 29, 2022, 9:23:07 AM12/29/22
to rr-devel
Hi Robert,

Apologies for the delay.

Here is my output of your "rr record /bin/ls" test

btague@rothbard:~$ rr record /bin/ls
rr: Saving execution to trace directory `/home/btague/.local/share/rr/ls-0'.
[FATAL src/PerfCounters.cc:325:check_for_ioc_period_bug() errno: EINVAL] ioctl(PERF_EVENT_IOC_PERIOD) failed
=== Start rr backtrace:
rr(_ZN2rr13dump_rr_stackEv+0x2e)[0x555b9355c3fe]
rr(_ZN2rr15notifying_abortEv+0xe)[0x555b9355c43e]
rr(+0x1e4780)[0x555b9357b780]
rr(_ZN2rr12PerfCounters5resetEl+0x6aa)[0x555b9347086a]
rr(_ZN2rr4Task16resume_executionENS_13ResumeRequestENS_11WaitRequestENS_12TicksRequestEi+0xc5)[0x555b93532be5]
rr(_ZN2rr13RecordSession13task_continueERKNS0_9StepStateE+0x292)[0x555b9347bf62]
rr(_ZN2rr13RecordSession11record_stepEv+0x30d)[0x555b934853bd]
rr(_ZN2rr13RecordCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0xf84)[0x555b934786f4]
rr(main+0x1b8)[0x555b933e3698]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7fdb6203ed0a]
rr(_start+0x2a)[0x555b933e384a]
=== End rr backtrace
Aborted
btague@rothbard:~$ sudo sysctl kernel.perf_event_paranoid=1
[sudo] password for btague:
kernel.perf_event_paranoid = 1
btague@rothbard:~$ rr record /bin/ls
rr: Saving execution to trace directory `/home/btague/.local/share/rr/ls-1'.
[FATAL src/PerfCounters.cc:325:check_for_ioc_period_bug() errno: EINVAL] ioctl(PERF_EVENT_IOC_PERIOD) failed
=== Start rr backtrace:
rr(_ZN2rr13dump_rr_stackEv+0x2e)[0x5580620a23fe]
rr(_ZN2rr15notifying_abortEv+0xe)[0x5580620a243e]
rr(+0x1e4780)[0x5580620c1780]
rr(_ZN2rr12PerfCounters5resetEl+0x6aa)[0x558061fb686a]
rr(_ZN2rr4Task16resume_executionENS_13ResumeRequestENS_11WaitRequestENS_12TicksRequestEi+0xc5)[0x558062078be5]
rr(_ZN2rr13RecordSession13task_continueERKNS0_9StepStateE+0x292)[0x558061fc1f62]
rr(_ZN2rr13RecordSession11record_stepEv+0x30d)[0x558061fcb3bd]
rr(_ZN2rr13RecordCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0xf84)[0x558061fbe6f4]
rr(main+0x1b8)[0x558061f29698]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f78ef2c1d0a]
rr(_start+0x2a)[0x558061f2984a]
=== End rr backtrace
Aborted

Robert O'Callahan

unread,
Dec 29, 2022, 3:49:15 PM12/29/22
to Brian Tague, rr-devel
What kernel version is this?

Rob

Brian Tague

unread,
Jan 5, 2023, 6:45:59 AM1/5/23
to rr-devel
Hi Robert,

Happy New Year. My apologies for the delay.

uname -r shows:
5.10.0-20-amd64

Brian Tague

unread,
Jan 30, 2023, 6:43:53 AM1/30/23
to rr-devel
Hi Robert,

I wanted to provide an update. I believe this is now working for me.

Here is my output from rr record /bin/ls:
rr record /bin/ls

[sudo] password for btague:
kernel.perf_event_paranoid = 1
rr: Saving execution to trace directory `/home/btague/.local/share/rr/ls-5'.
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos

ls -al /home/btague/.local/share/rr/ls-5
total 52
drwxr-x--- 2 btague btague  4096 Jan 30 05:41 .
drwx------ 8 btague btague  4096 Jan 30 05:41 ..
-rw------- 1 btague btague     0 Jan 30 05:41 cloned_data_7299_1
-r-------- 1 btague btague 23555 Jan 30 05:41 data
-r-------- 1 btague btague  7817 Jan 30 05:41 events
-r-------- 1 btague btague  1254 Jan 30 05:41 mmaps
-r-------- 1 btague btague   109 Jan 30 05:41 tasks
-rw------- 1 btague btague   751 Jan 30 05:41 version

Robert O'Callahan

unread,
Feb 2, 2023, 3:04:01 PM2/2/23
to Brian Tague, rr-devel
Mysterious. Anyway, glad it's working.
Reply all
Reply to author
Forward
0 new messages