From 56c34b397669f7875d3a2bb72ca9e577b679d11d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 12 Nov 2023 21:25:09 +0100 Subject: [PATCH] try to find crash root cause --- pyproject.toml | 2 +- release/specs/mitmdump | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 70869d65d..f01766273 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/release/specs/mitmdump b/release/specs/mitmdump index 0aeac3c84..d5f4e859e 100644 --- a/release/specs/mitmdump +++ b/release/specs/mitmdump @@ -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()