REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 2.59 KB
Close
//usr/share/apport/java_uncaught_exception
Text
Base64
#!/usr/bin/python3 """Receive details from ApportUncaughtExceptionHandler. This generates and saves a problem report. """ # Copyright 2010 Canonical Ltd. # Author: Matt Zimmerman <mdz@ubuntu.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. See http://www.gnu.org/copyleft/gpl.html for # the full text of the license. import os import sys import urllib.parse import apport.report from apport.packaging_impl import impl as packaging def make_title(report): """Construct crash title from stack trace.""" lines = report["StackTrace"].split("\n") message = lines[0].strip() stackframe = lines[1].strip() return f"{message} in {stackframe}" # pylint: disable-next=missing-function-docstring def main(): if not packaging.enabled(): return 1 # read from the JVM process a sequence of key, value delimited by null # bytes items = sys.stdin.read().split("\0") data = {} while items: key = items.pop(0) if not items: break value = items.pop(0) data[key] = value # create report report = apport.report.Report(problem_type="Crash") # assume our parent is the JVM process report.pid = os.getppid() report.add_os_info() report.add_proc_info() # these aren't relevant because the crash was in bytecode del report["ProcMaps"] del report["ProcStatus"] report.add_user_info() # add in data which was fed to us from the JVM process for key, value in data.items(): report[key] = value # Add an ExecutablePath pointing to the file where the main class resides if "MainClassUrl" in report: url = report["MainClassUrl"] url_parts = urllib.parse.urlparse(url) path = url_parts.path if url_parts.scheme == "jar": # path is then a URL to the jar file url_parts = urllib.parse.urlparse(path) path = url_parts.path.split("!/", 1)[0] if url_parts.scheme == "file": report["ExecutablePath"] = path else: # Program at some non-file URL crashed. Give up. return 1 report["Title"] = make_title(report) try: with apport.fileutils.make_report_file(report) as report_file: report.write(report_file) except OSError as error: apport.fatal("Cannot create report: %s", str(error)) return 0 if __name__ == "__main__": sys.exit(main())
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 4 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
general-hooks
DIR
-
drwxr-xr-x
2026-01-23 08:58:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package-hooks
DIR
-
drwxr-xr-x
2026-02-07 06:05:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
symptoms
DIR
-
drwxr-xr-x
2026-01-08 12:55:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
testsuite
DIR
-
drwxr-xr-x
2026-01-08 12:55:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
apport
43.68 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
apport-checkreports
1.37 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
apport.jar
2.38 KB
lrw-r--r--
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
apportcheckresume
3.64 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dump_acpi_tables.py
1.72 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gcc_ice_hook
1.29 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
is-enabled
672 B
lrwxr-xr-x
2024-04-18 12:31:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
iwlwifi_error_dump
1.96 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
java_uncaught_exception
2.59 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
kernel_crashdump
2.72 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
kernel_oops
1.25 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package_hook
2.86 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
recoverable_problem
2.40 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
root_info_wrapper
96 B
lrwxr-xr-x
2024-04-18 12:31:35
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
unkillable_shutdown
3.53 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
whoopsie-upload-all
8.33 KB
lrwxr-xr-x
2025-07-08 14:50:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).