Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def processing_crash_dump(self, crash_pk):
try:
crash = Crash.objects.get(pk=crash_pk)
# assemble crash_dump_path
url = furl(crash.upload_file_minidump.url)
path = url.pathstr
crash_dump_path = os.path.join(S3_MOUNT_PATH, *path.split('/'))
# Set various values in the crash object.
stacktrace = get_stacktrace(crash_dump_path)
crash.stacktrace = stacktrace
crash.stacktrace_json = parse_stacktrace(stacktrace)
crash.signature = get_signature(crash.stacktrace_json)
_os = get_os(crash.stacktrace_json)
meta = crash.meta or {}
build_number = meta.get('ver', '')
channel = meta.get('channel', '') or get_channel(build_number, _os)
crash.os = _os
help = '''
Show process information
'''
rprog("psinfo", " ps output",
"-h - list available options",
help)
help = '''
Show selinux related information
'''
rprog("seinfo", "SELinux output",
"-h - list available options",
help)
help = '''
Shows UN(D) state processes with details
'''
rprog("hangcheck", "hang task(s) heck",
"-h - list available options",
help)
help = '''
Shows audit information
'''
help = '''
Showing softirq and tasklet details.
'''
rprog("bh", "Bottom Half information",
"-h - list available options",
help)
help = '''
filesystem related information.
'''
rprog("fsinfo", "Filesystem information",
"-h - list available options",
help)
help = '''
CPU related information.
'''
rprog("cpuinfo", "CPU information",
"-h - list available options",
help)
help = '''
networking related information.
'''
rprog("netinfo", "Network information",
help = '''
Show device related information
'''
rprog("devinfo", "Device information",
"-h - list available options",
help)
help = '''
vmware information
'''
rprog("vmwareinfo", "vmware information ",
"-h - list available options",
help)
help = '''
CPU lock check
-r - Show longest holder at top
--tasks - Show tasks in each runqueue
'''
rprog("lockup", "LOCKUP check",
"-h - list available options",
help)
'''
rprog("epstree", "Print process list in tree format",
"-h - list available options",
help)
help = '''
Module related information.
--disasm - Disassemble functions in a module
--details - Show details
'''
rprog("emodinfo", "Module related information",
"-h - list available options",
help)
help = '''
ipmi related information.
--smi_list - Show smi_info list
--details - Show additional information
'''
try:
pa = readSymbol("smi_infos")
if (pa != 0):
rprog("ipmi", "ipmi related information",
"-h - list available options",
--tree - hierarchial display of cgroups
'''
rprog("cgroupinfo", "cgroup information",
"-h - list available options",
help)
help = '''
scheduling information
--classes - Show scheduling classes
--details - Show details
'''
rprog("schedinfo", "scheduling information",
"-h - list available options",
help)
help = '''
Print process list in tree format.
-p - Print process ID
-g - Print number of threads
-s - Print task state
-t - Print a specific task and its children
'''
rprog("epstree", "Print process list in tree format",
"-h - list available options",
help)
help = '''
Checking the data through insights
'''
rprog("insights", "Run insights with the currently available data",
"-h - list available options",
help)
help = '''
Show process information
'''
rprog("psinfo", " ps output",
"-h - list available options",
help)
help = '''
Show selinux related information
'''
rprog("seinfo", "SELinux output",
"-h - list available options",
help)
help = '''
Shows UN(D) state processes with details
'''
help = '''
networking related information.
'''
rprog("netinfo", "Network information",
"-h - list available options",
help)
help = '''
memory related information
'''
rprog("meminfo", "Memory information",
"-h - list available options",
help)
help = '''
time related information
'''
rprog("timeinfo", "Time information",
"-h - list available options",
help)
help = '''
enhanced disasm command related information
'''
help)
help = '''
Shows audit information
'''
rprog("auditinfo", "audit information",
"-h - list available options",
help)
help = '''
Shows tracing information
'''
rprog("traceinfo", "trace information",
"-h - list available options",
help)
command list test.
--cmd - The command set to run
--list - Show the command set list
'''
rprog("cmds_test", "command list test",
"-h - list available options",
help)
help = '''
Showing softirq and tasklet details.
'''
rprog("bh", "Bottom Half information",
"-h - list available options",
help)
help = '''
filesystem related information.
'''
rprog("fsinfo", "Filesystem information",
"-h - list available options",
help)
help = '''
CPU related information.
'''