Skip to content

Commit

Permalink
revoke some new changes which break rex
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Kyle authored and rhelmot committed Jan 30, 2019
1 parent 602b69a commit 221eeb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tracer/qemu_runner.py
Expand Up @@ -429,7 +429,13 @@ def _run(self, stdout_file=None):

# grab the faulting address
if self.crash_mode:
self.crash_addr = addrs[-1]
lastline = trace.split(b'\n')[-2]
if lastline.startswith(b"Trace") or lastline.find(b"Segmentation") == -1:
l.warning("Trace return code was less than zero, but the last line of the trace does not"
"contain the uncaught exception error from qemu."
"If using an older version of shellphish_qemu try using 'ulimit -Sc 0' or "
"updating to a newer version of shellphish_qemu.")
self.crash_addr = int(lastline.split(b'[')[1].split(b']')[0], 16)


self.trace = addrs
Expand Down

0 comments on commit 221eeb3

Please sign in to comment.