try to find crash root cause

This commit is contained in:
Maximilian Hils 2023-11-12 21:25:09 +01:00
parent 746537e051
commit 56c34b3976
2 changed files with 15 additions and 1 deletions

View file

@ -65,7 +65,7 @@ dev = [
"click>=7.0,<8.2",
"hypothesis>=5.8,<7",
"pdoc>=4.0.0",
"pyinstaller==6.1.0",
"pyinstaller==6.2.0",
"pytest-asyncio>=0.17,<0.22",
"pytest-cov>=2.7.1,<4.2",
"pytest-timeout>=1.3.3,<2.3",

View file

@ -1,3 +1,17 @@
#!/usr/bin/env python
import faulthandler
import signal
faulthandler.enable()
faulthandler.register(signal.SIGUSR1.value)
from OpenSSL._util import ffi
print("creating callback")
ffi.callback(
"int (*)(SSL *, unsigned char **, unsigned char *, "
"const unsigned char *, unsigned int, void *)",
lambda *_, **__: None
)
print("ok")
from mitmproxy.tools.main import mitmdump
mitmdump()