Giter Site home page Giter Site logo

Comments (30)

khuey avatar khuey commented on May 20, 2024

What CPU did this happen on?

If an AMD system, does it reproduce on Intel hardware?

from rr.

tysmith avatar tysmith commented on May 20, 2024

I am using an Intel i7-8650U.

from rr.

khuey avatar khuey commented on May 20, 2024

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.

tysmith avatar tysmith commented on May 20, 2024

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.

khuey avatar khuey commented on May 20, 2024

You need to set ulimit -l really high (e.g. ulimit -l unlimited, though that may consume all your RAM).

from rr.

tysmith avatar tysmith commented on May 20, 2024

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.

tysmith avatar tysmith commented on May 20, 2024

Got it. Typo in my /etc/security/limits.conf entry.

from rr.

tysmith avatar tysmith commented on May 20, 2024

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.

rocallahan avatar rocallahan commented on May 20, 2024

from rr.

tysmith avatar tysmith commented on May 20, 2024

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.

rocallahan avatar rocallahan commented on May 20, 2024

from rr.

tysmith avatar tysmith commented on May 20, 2024

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.

tysmith avatar tysmith commented on May 20, 2024

And running rr record --intel-pt ls works quickly as expected.

from rr.

khuey avatar khuey commented on May 20, 2024

that's PERF_AUX_FLAG_TRUNCATED

from rr.

khuey avatar khuey commented on May 20, 2024

Can you share the steps to reproduce (privately, if necessary)?

from rr.

tysmith avatar tysmith commented on May 20, 2024

I am unable to reproduce the issue independent of the tools we use in automation.

STR:

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.

khuey avatar khuey commented on May 20, 2024

Is that supposed to be http://general.fund instead of http://genral.fund?

from rr.

khuey avatar khuey commented on May 20, 2024

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.

tysmith avatar tysmith commented on May 20, 2024

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.

khuey avatar khuey commented on May 20, 2024

What rr rev are you recording with?

from rr.

tysmith avatar tysmith commented on May 20, 2024

2bb38b9

from rr.

khuey avatar khuey commented on May 20, 2024

Ok, that's what I tried. I can't reproduce an rr divergence here unfortunately.

How much RAM does your machine have?

from rr.

tysmith avatar tysmith commented on May 20, 2024

16GB

from rr.

khuey avatar khuey commented on May 20, 2024

You could try reducing PT_PERF_AUX_SIZE in src/PerfCounters.cc

from rr.

tysmith avatar tysmith commented on May 20, 2024

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.

khuey avatar khuey commented on May 20, 2024

Ok that's the same issue as before unfortunately.

from rr.

tysmith avatar tysmith commented on May 20, 2024

I just rebuilt with clang 14 and can't reproduce.

from rr.

khuey avatar khuey commented on May 20, 2024

rebuilt rr?

from rr.

tysmith avatar tysmith commented on May 20, 2024

Yes

from rr.

khuey avatar khuey commented on May 20, 2024

Alright, if even you can't reproduce it there's nothing actionable left here.

from rr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.