[MacPorts] #68777: postgresql16 @16.1: cannot connect to servers that require SSL since last update
MacPorts
noreply at macports.org
Sun Nov 26 16:01:13 UTC 2023
#68777: postgresql16 @16.1: cannot connect to servers that require SSL since last
update
----------------------------------------+----------------------
Reporter: davidnich | Owner: dgilman
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: postgresql15 postgresql16 |
----------------------------------------+----------------------
Comment (by neverpanic):
I did manage to generate a backtrace that might be related using pgcli:
{{{
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Python [17597]
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1aa948744 __pthread_kill
+ 8
1 libsystem_pthread.dylib 0x1aa97fc28 pthread_kill +
288
2 libsystem_c.dylib 0x1aa88dae8 abort + 180
3 libsystem_malloc.dylib 0x1aa7aee28 malloc_vreport
+ 908
4 libsystem_malloc.dylib 0x1aa7c55d4
malloc_zone_error + 104
5 libsystem_malloc.dylib 0x1aa7b8754
free_small_botch + 40
6 libpq.5.15.dylib 0x10587a72c freePGconn +
332
7 _psycopg.cpython-310-darwin.so 0x10582e530
conn_close_locked + 48
8 _psycopg.cpython-310-darwin.so 0x10582e4e4 conn_close + 76
9 _psycopg.cpython-310-darwin.so 0x10582f004
connection_dealloc + 48
10 Python 0x104ce9b78 type_call + 352
11 Python 0x104c8fa84
_PyObject_MakeTpCall + 136
12 Python 0x104c90ac4
_PyObject_CallFunctionVa + 312
13 Python 0x104c90d2c
_PyObject_CallFunction_SizeT + 48
14 _psycopg.cpython-310-darwin.so 0x10583b258 psyco_connect +
208
15 Python 0x104cd3494 cfunction_call
+ 60
16 Python 0x104c9052c _PyObject_Call
+ 128
17 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
18 Python 0x104d563f8 _PyEval_Vector
+ 368
19 Python 0x104c903e8
PyVectorcall_Call + 176
20 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
21 Python 0x104d563f8 _PyEval_Vector
+ 368
22 Python 0x104c92970
method_vectorcall + 124
23 Python 0x104c903e8
PyVectorcall_Call + 176
24 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
25 Python 0x104d563f8 _PyEval_Vector
+ 368
26 Python 0x104c8fe4c
_PyObject_FastCallDictTstate + 208
27 Python 0x104cf1368 slot_tp_init +
196
28 Python 0x104ce9b34 type_call + 284
29 Python 0x104c9052c _PyObject_Call
+ 128
30 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
31 Python 0x104d563f8 _PyEval_Vector
+ 368
32 Python 0x104c92970
method_vectorcall + 124
33 Python 0x104c903e8
PyVectorcall_Call + 176
34 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
35 Python 0x104d563f8 _PyEval_Vector
+ 368
36 Python 0x104c92970
method_vectorcall + 124
37 Python 0x104d61d00 call_function +
124
38 Python 0x104d57f9c
_PyEval_EvalFrameDefault + 3164
39 Python 0x104d563f8 _PyEval_Vector
+ 368
40 Python 0x104c903e8
PyVectorcall_Call + 176
41 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
42 Python 0x104d563f8 _PyEval_Vector
+ 368
43 Python 0x104c92970
method_vectorcall + 124
44 Python 0x104c903e8
PyVectorcall_Call + 176
45 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
46 Python 0x104d563f8 _PyEval_Vector
+ 368
47 Python 0x104d61d00 call_function +
124
48 Python 0x104d5a840
_PyEval_EvalFrameDefault + 13568
49 Python 0x104d563f8 _PyEval_Vector
+ 368
50 Python 0x104c92a88
method_vectorcall + 404
51 Python 0x104d5a7a0
_PyEval_EvalFrameDefault + 13408
52 Python 0x104d563f8 _PyEval_Vector
+ 368
53 Python 0x104c8fddc
_PyObject_FastCallDictTstate + 96
54 Python 0x104cf02a8 slot_tp_call +
196
55 Python 0x104c8fa84
_PyObject_MakeTpCall + 136
56 Python 0x104d61d94 call_function +
272
57 Python 0x104d58098
_PyEval_EvalFrameDefault + 3416
58 Python 0x104d563f8 _PyEval_Vector
+ 368
59 Python 0x104d56274 PyEval_EvalCode
+ 104
60 Python 0x104da1be0
run_eval_code_obj + 84
61 Python 0x104da1b44 run_mod + 112
62 Python 0x104da1968 pyrun_file +
148
63 Python 0x104da13b8
_PyRun_SimpleFileObject + 268
64 Python 0x104da0d6c
_PyRun_AnyFileObject + 216
65 Python 0x104dbb48c
pymain_run_file_obj + 220
66 Python 0x104dbade4 pymain_run_file
+ 72
67 Python 0x104dba740 Py_RunMain +
856
68 Python 0x104dbb7d8 Py_BytesMain +
40
69 dyld 0x1aa627f28 start + 2236
Thread 1:
0 libsystem_pthread.dylib 0x1aa97ad8c start_wqthread
+ 0
Thread 2:
0 libsystem_pthread.dylib 0x1aa97ad8c start_wqthread
+ 0
}}}
This seems to happen during connection closing. I suspect there might be
an issue with OpenSSL's teardown that causes a double free.
The changelog for OpenSSL 3.2 also says "Major refactor of the libssl
record layer." It's entirely possible that there is a memory corruption in
those changes.
Other TLS-related changes are the change of the default seclevel from 1 to
2, which now considers RSA, DSA and DH keys <2048 and ECC keys <224 bits
as insecure. I suspect this isn't the issue, since the error message would
be different, but it's maybe worth checking.
--
Ticket URL: <https://trac.macports.org/ticket/68777#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list