Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 Segmentation Fault in Python 3.10.12 when using OpenSSL (libcrypto.so.3) #129974

Closed
Dean6767 opened this issue Feb 10, 2025 · 3 comments
Closed
Labels
topic-SSL type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@Dean6767
Copy link

Dean6767 commented Feb 10, 2025

Crash report

What happened?

core_dump.tar.gz

🚨 Segmentation Fault in Python 3.10.12 when using OpenSSL (libcrypto.so.3)

πŸ› οΈ Operating System:

  • Python Version: Python 3.10.12
  • OpenSSL Version: OpenSSL 3.0.2 15 Mar 2022
  • Operating System:
    • Distributor ID: Ubuntu
    • Description: Ubuntu 22.04.5 LTS
    • Release: 22.04
    • Codename: jammy
    • Kernel: 5.15.0-117-generic x86_64

πŸ” Stack Trace:

warning: core file may not match specified executable file.
[New LWP 1433243]
[New LWP 1433240]
[New LWP 1433235]
[New LWP 1433237]
[New LWP 1433244]
[New LWP 1514087]
[New LWP 1514116]
[New LWP 1433236]
[New LWP 1514707]
[New LWP 1514002]
[New LWP 1433234]
[New LWP 1433239]
[New LWP 1433241]
[New LWP 1433238]
[New LWP 1513877]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `python3 bot.py'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00001514dc039ce0 in ?? ()
[Current thread is 1 (Thread 0x15151113c640 (LWP 1433243))]
(gdb) bt full
#0 0x00001514dc039ce0 in ?? ()
No symbol table info available.
#1 0x0000151514d11ec3 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3
No symbol table info available.
#2 0x0000151514d137e9 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.3
No symbol table info available.
#3 0x0000151514d13fd0 in EVP_PKEY_free () from /lib/x86_64-linux-gnu/libcrypto.so.3
No symbol table info available.
#4 0x00001515153d790d in ?? () from /lib/x86_64-linux-gnu/libssl.so.3
No symbol table info available.
#5 0x00001515153d79b0 in ?? () from /lib/x86_64-linux-gnu/libssl.so.3
No symbol table info available.
#6 0x00001515153e9ca1 in SSL_free () from /lib/x86_64-linux-gnu/libssl.so.3
No symbol table info available.
#7 0x000015151571ec12 in ?? () from /usr/lib/python3.10/lib-dynload/_ssl.cpython-310-x86_64-linux-gnu.so
No symbol table info available.
#8 0x00005602655a474f in ?? ()
No symbol table info available.
#9 0x00005602655a9ed0 in _PyObject_GenericSetAttrWithDict ()
No symbol table info available.
#10 0x00005602655a9c20 in PyObject_SetAttr ()
No symbol table info available.
#11 0x00005602655c01e7 in _PyEval_EvalFrameDefault ()
No symbol table info available.
#12 0x00005602655d759c in _PyFunction_Vectorcall ()
No symbol table info available.
#13 0x00005602655bf96e in _PyEval_EvalFrameDefault ()
No symbol table info available.
#14 0x00005602655d759c in _PyFunction_Vectorcall ()
No symbol table info available.
#15 0x00005602655bf96e in _PyEval_EvalFrameDefault ()
No symbol table info available.
#16 0x00005602655e5111 in ?? ()
No symbol table info available.
#17 0x00005602655c559a in _PyEval_EvalFrameDefault ()
No symbol table info available.
#18 0x00005602655d759c in _PyFunction_Vectorcall ()
No symbol table info available.
#19 0x00005602655bf96e in _PyEval_EvalFrameDefault ()
No symbol table info available.
#20 0x00005602655d759c in _PyFunction_Vectorcall ()
No symbol table info available.
#21 0x00005602655c1a9d in _PyEval_EvalFrameDefault ()
No symbol table info available.
#22 0x00005602655cc564 in _PyObject_FastCallDictTstate ()
No symbol table info available.
#23 0x00005602655e246c in _PyObject_Call_Prepend ()
No symbol table info available.
#24 0x00005602656fd180 in ?? ()
No symbol table info available.
#25 0x00005602655cd3cb in _PyObject_MakeTpCall ()
No symbol table info available.
#26 0x00005602655f35da in ?? ()
No symbol table info available.
#27 0x00005602655ef765 in ?? ()
--Type for more, q to quit, c to continue without paging--

πŸ“ Additional Notes:

If needed, I can provide more debugging information.

CPython versions tested on:

3.10

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

No response

@Dean6767 Dean6767 added the type-crash A hard crash of the interpreter, possibly with a core dump label Feb 10, 2025
@zware
Copy link
Member

zware commented Feb 10, 2025

For this to be a valid bug report against CPython, you'll need to provide some Python code to reproduce the crash. Also note that Python 3.10.12 is well out of date (3.10.16 is the latest release of 3.10) and OpenSSL 3.0.2 is even further out of date (3.0.15 is current).

@zware zware added topic-SSL pending The issue will be closed if no feedback is provided labels Feb 10, 2025
@Dean6767
Copy link
Author

For this to be a valid bug report against CPython, you'll need to provide some Python code to reproduce the crash. Also note that Python 3.10.12 is well out of date (3.10.16 is the latest release of 3.10) and OpenSSL 3.0.2 is even further out of date (3.0.15 is current).

I can't provide a specific code to reproduce the error. The error occurred while running an application, and only the core dump generated by Python was available at the time.

I am aware that the versions are outdated; I just shared the error to see if it would help in any way. I will update to the latest versions, thank you.

@zware
Copy link
Member

zware commented Feb 10, 2025

Sorry, but without a (preferably minimal) reproducer there's nothing we can do here.

@zware zware closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2025
@zware zware removed the pending The issue will be closed if no feedback is provided label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-SSL type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

2 participants