Code Monkey home page Code Monkey logo

Comments (7)

marco-c avatar marco-c commented on August 15, 2024

At

def cleanup_dll(text):
, we should only cleaup third-party DLLs, and not Firefox ones.

So, for example xul.dll should still be xul.dll and not replaced with DLL_NAME. Same with mozglue.dll, libxul.so, and so on.

To get all Firefox DLLs, you can either download the archives containing the Firefox binaries from a URL such as https://ftp.mozilla.org/pub/firefox/nightly/2019/02/2019-02-27-10-44-26-mozilla-central/ (firefox-67.0a1.en-US.win64.zip, firefox-67.0a1.en-US.mac.dmg, firefox-67.0a1.en-US.linux-x86_64.tar.bz2), or install Firefox on the different OSes, go in the installation directory and check which DLLs are present.

from bugbug.

LakshyAAAgrawal avatar LakshyAAAgrawal commented on August 15, 2024

I would like to take this up. Could I be assigned?

from bugbug.

marco-c avatar marco-c commented on August 15, 2024

@LakshyAAAgrawal feel free to work on any open issue. See https://github.com/mozilla/bugbug#contributing, all issues are unassigned until there is a PR open to fix them.

from bugbug.

LakshyAAAgrawal avatar LakshyAAAgrawal commented on August 15, 2024

Could I create a file "firefox_DLLs.json" which contains a list of all firefox library files including *.so and *.dll files, and then load this file when the function "cleanup_dll" is called, and then do the needful for differentiating?

from bugbug.

marco-c avatar marco-c commented on August 15, 2024

You can just hardcode the DLL names in a constant that you define right before cleanup_dll, a separate file is overkill.

from bugbug.

LakshyAAAgrawal avatar LakshyAAAgrawal commented on August 15, 2024

In the test file test_cleanup_functions.py, the second test asserts that 'libxul.so' gets converted to '__DLL_NAME__', as shown:

def test_cleanup_dll():
    tests = [
        ('Crashing thread: 0 scdetour.dll scdetour.dll@0x2dd77', 'Crashing thread: 0 __DLL_NAME__ __DLL_NAME__@0x2dd77'),
        ('Crash in libxul.so@0x287ad36 | libxul.so@0x270c062', 'Crash in __DLL_NAME__@0x287ad36 | __DLL_NAME__@0x270c062'),
        ('Crash in libsystem_pthread.dylib@0x14fc', 'Crash in __DLL_NAME__@0x14fc')
    ]

However, as pointed out above by @marco-c :

So, for example xul.dll should still be xul.dll and not replaced with '__DLL_NAME__'. Same with mozglue.dll, libxul.so, and so on.

Therefore, I think this test case should be updated. Am I missing something here?

from bugbug.

marco-c avatar marco-c commented on August 15, 2024

Yes, it should be updated.

from bugbug.

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.