mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
try to find crash root cause
This commit is contained in:
parent
746537e051
commit
56c34b3976
2 changed files with 15 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue