{"id":24068,"library":"mozcrash","title":"mozcrash","description":"Library for printing stack traces from minidumps left behind by crashed processes. Version 2.2.1, updated irregularly as part of Mozilla's automation tooling.","status":"active","version":"2.2.1","language":"python","source_language":"en","source_url":"https://github.com/mozilla/mozcrash","tags":["testing","crash reporting","minidump","mozilla"],"install":[{"cmd":"pip install mozcrash","lang":"bash","label":"default"}],"dependencies":[],"imports":[{"note":"Old style still works but not recommended","wrong":"import mozcrash; mozcrash.check_for_crashes(...)","symbol":"check_for_crashes","correct":"from mozcrash import check_for_crashes"}],"quickstart":{"code":"from mozcrash import check_for_crashes\n\nresult = check_for_crashes(\n    dump_directory=\"/path/to/minidumps\",\n    symbols_path=\"/path/to/symbols\",\n    test_name=\"my_test\"\n)\nprint(result)","lang":"python","description":"Check for minidumps in a directory and print stack traces."},"warnings":[{"fix":"Ensure you have downloaded breakpad symbols for your build.","message":"symbols_path must point to a directory containing symbol files (e.g., .sym files). If missing, stack traces will be incomplete.","severity":"gotcha","affected_versions":"all"},{"fix":"Use os.path.abspath() to convert relative paths.","message":"dump_directory must be an absolute path; relative paths may cause failures.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install mozcrash' in the correct Python environment.","cause":"Library not installed or installed in wrong environment.","error":"No module named mozcrash"},{"fix":"Use 'from mozcrash import check_for_crashes' directly.","cause":"Old import style using 'import mozcrash' then calling mozcrash.check_for_crashes works in 2.x but may fail if you accidentally shadow the name.","error":"AttributeError: module 'mozcrash' has no attribute 'check_for_crashes'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}