Comments (30)
What CPU did this happen on?
If an AMD system, does it reproduce on Intel hardware?
from rr.
I am using an Intel i7-8650U.
from rr.
Can you get a recording with the --intel-pt
option that reproduces the replay failure?
https://github.com/rr-debugger/rr/wiki/Debugging-divergence#intel-pt
from rr.
Running with --intel-pt
leads to:
[FATAL src/PerfCounters.cc:768:open() errno: EPERM] Can't allocate memory for PT AUX area
How do I "Make sure that the "max locked memory" limit is very high..."? Could that be the issue with --intel-pt
?
from rr.
You need to set ulimit -l
really high (e.g. ulimit -l unlimited
, though that may consume all your RAM).
from rr.
I can't figure out how to do what is needed on Ubuntu.
ulimit -l unlimited
returns
bash: ulimit: max locked memory: cannot modify limit: Operation not permitted
I tried modifying /etc/security/limits.conf
and rebooting and that doesn't work either.
from rr.
Got it. Typo in my /etc/security/limits.conf
entry.
from rr.
Same result: [FATAL src/PerfCounters.cc:768:open() errno: EPERM] Can't allocate memory for PT AUX area
but it uses a lot more memory first.
from rr.
from rr.
Looks like Firefox does not support it.
Running Nightly as root in a regular user's session is not supported
I also tried --headless
to hopefully same some memory but it still fails to launch,
from rr.
from rr.
I disabled a few extra browser processes and managed to get it to launch. After using up most of the available memory and hanging for a long period I got this:
[FATAL src/PerfCounters.cc:811:flush()] Unexpected AUX packet flags 1
from rr.
And running rr record --intel-pt ls
works quickly as expected.
from rr.
that's PERF_AUX_FLAG_TRUNCATED
from rr.
Can you share the steps to reproduce (privately, if necessary)?
from rr.
I am unable to reproduce the issue independent of the tools we use in automation.
STR:
- download build https://firefox-ci-tc.services.mozilla.com/tasks/index/gecko.v2.mozilla-central.revision.4f7a5399c1ccd3d580631d65356e681ad7e28d74.firefox/linux64-fuzzing-noopt-debug
- run
python3 -m pip install site-scout
- run
python3 -m site_scout <firefox> -u http://genral.fund --pernosco -o . --time-limit 300
It can take a few minutes for the crash. The rr command is actually created in ffpuppet[1] so if that needs to change you can either modify the version installed by pip or pull down a copy from GitHub, modify that and do a local install of ffpuppet. Let me know if that works.
[1] https://github.com/MozillaSecurity/ffpuppet/blob/master/src/ffpuppet/core.py#L479
from rr.
Is that supposed to be http://general.fund
instead of http://genral.fund
?
from rr.
Assuming it's supposed to be http://general.fund
, the bad news is that I can't reproduce the rr issue. The good news is that I can reproduce the Firefox issue. Do you want me to upload it to Pernosco?
from rr.
Yep sorry that was a typo. I was able to capture it without the tools this morning and submit to Pernosco already, thanks.
from rr.
What rr rev are you recording with?
from rr.
from rr.
Ok, that's what I tried. I can't reproduce an rr divergence here unfortunately.
How much RAM does your machine have?
from rr.
16GB
from rr.
You could try reducing PT_PERF_AUX_SIZE in src/PerfCounters.cc
from rr.
OK I set PT_PERF_AUX_SIZE
to 32*1024*1024
and now I get the following error: [FATAL src/PerfCounters.cc:811:flush()] Unexpected AUX packet flags 1
from rr.
Ok that's the same issue as before unfortunately.
from rr.
I just rebuilt with clang 14 and can't reproduce.
from rr.
rebuilt rr?
from rr.
Yes
from rr.
Alright, if even you can't reproduce it there's nothing actionable left here.
from rr.
Related Issues (20)
- Doing a recording as root HOT 2
- Assertion failure in find_holes during record HOT 1
- complie failure
- FATAL ERROR when replayed C/C++ program HOT 6
- rr does not support landlock syscalls
- cmake warning about exec_program
- Use of `extra_regs()` in ptrace emulation may be unsound HOT 2
- rr hangs waiting on a process to exit for a process that has already exited when running Firefox HOT 7
- Assertion failure in process_syscall_entry() during record HOT 13
- rr doen't come along with Address Sanitizer HOT 2
- rr hangs if certain unaligned watchpoints are hit on arm64
- Assertion `false' failed to hold. Replaying 'SIGNAL: SIGCHLD(async)': expecting tracee signal or trap, but instead at 'futex' HOT 7
- Is there a way to use rr without recording? HOT 1
- Divergence with tcmalloc on arm64 HOT 2
- Assertion 'stopped_or_unexpected_exit()' failed to hold. HOT 3
- x86/x87env failures HOT 3
- rr replay segfaults during a first (and only) command `continue` HOT 14
- [FATAL src/PerfCounters.cc:332:start_counter() errno: ESRCH] Failed to initialize counter HOT 3
- Please tag/ship a new release
- Improve non-interactive debugging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rr.