[MacPorts] #70120: crash/segfault in curl code

MacPorts noreply at macports.org
Thu May 30 15:45:07 UTC 2024


#70120: crash/segfault in curl code
--------------------+--------------------
 Reporter:  l2dy    |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:  2.9.3
 Keywords:          |       Port:
--------------------+--------------------
 Attempt to fetch a non-existent file from gnu mirrors result in segfault
 (SIGSEGV).

 {{{
 --->  Attempting to fetch parallel-20240523.tar.bz2 from
 https://ftp.gnu.org/gnu/parallel
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
   0   286    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Attempting to fetch parallel-20240523.tar.bz2 from ftp://ftp.gnu.org
 /old-gnu/parallel
 zsh: segmentation fault  sudo port -vs patch parallel
 }}}

 The stack trace is

 {{{
 Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
 0   libcurl.4.dylib                         0x7ff81da1e48d http2_data_done
 + 75
 1   libcurl.4.dylib                         0x7ff81da1c89b cf_h2_cntrl +
 72
 2   libcurl.4.dylib                         0x7ff81d9fa23a
 Curl_conn_ev_data_detach + 73
 3   libcurl.4.dylib                         0x7ff81da2d627
 Curl_detach_connection + 30
 4   libcurl.4.dylib                         0x7ff81da4cfa9 extract_if_dead
 + 389
 5   libcurl.4.dylib                         0x7ff81da4ce0e
 call_extract_if_dead + 24
 6   libcurl.4.dylib                         0x7ff81d9faadf
 Curl_conncache_foreach + 141
 7   libcurl.4.dylib                         0x7ff81da4b856
 prune_dead_connections + 160
 8   libcurl.4.dylib                         0x7ff81da4a536 Curl_connect +
 5268
 9   libcurl.4.dylib                         0x7ff81da2e320 multi_runsingle
 + 578
 10  libcurl.4.dylib                         0x7ff81da2dfec
 curl_multi_perform + 227
 11  Pextlib.dylib                              0x100b1a157 CurlFetchCmd +
 2871 (curl.c:607)
 12  Pextlib.dylib                              0x100b1b7af CurlCmd + 191
 (curl.c:1485)
 13  libtcl8.6.dylib                            0x1011dfbb2 TclEvalObjEx +
 130
 14  libtcl8.6.dylib                            0x101273d97 ChildEval + 119
 15  libtcl8.6.dylib                            0x101275973 NRChildCmd +
 819
 16  libtcl8.6.dylib                            0x1011ddb12 Tcl_EvalObjv +
 354
 17  libtcl8.6.dylib                            0x1011def59 TclEvalEx +
 2777
 18  libtcl8.6.dylib                            0x10128a60e
 Tcl_FSEvalFileEx + 590
 19  libtcl8.6.dylib                            0x1012921f8 Tcl_MainEx +
 2120
 20  tclsh8.6                                   0x100a05a67 main + 39
 21  dyld                                    0x7ff804fd2366 start + 1942

 Thread 1:
 0   libsystem_pthread.dylib                 0x7ff805359ac0 start_wqthread
 + 0
 }}}

 `libcurl.4.dylib` is a system library from macOS 14.5.

 {{{
 Binary Images:
        0x100aff000 -        0x100b06fff machista.dylib (*)
 <8d07e140-7cb9-33e3-b278-4df62b4c27fd> /opt/local/libexec/*/machista.dylib
        0x100ab0000 -        0x100ab3fff libtdbc1.1.5.dylib (*)
 <1e259bf8-d4ba-3668-a996-3ae4d2736739>
 /opt/local/libexec/*/libtdbc1.1.5.dylib
        0x100b15000 -        0x100b2cfff Pextlib.dylib (*)
 <17129478-8e81-3b5a-8202-3cda2edc1343> /opt/local/libexec/*/Pextlib.dylib
        0x100b41000 -        0x100b50fff registry.dylib (*) <bb027193-c46f-
 30e1-ad6d-a1d32584047e> /opt/local/libexec/*/registry.dylib
        0x100c73000 -        0x100d62fff libsqlite3.40.0.dylib (*)
 <f4dc28d8-60af-3acb-a7f0-77fd956a3738>
 /opt/local/libexec/*/libsqlite3.40.0.dylib
        0x100aa0000 -        0x100aa3fff MacPorts.dylib (*) <860bf2fc-98fc-
 3b19-bdca-3fb750acfbeb> /opt/local/libexec/*/MacPorts.dylib
        0x100ac0000 -        0x100adbfff libtclx8.6.dylib (*)
 <2d063b73-0a24-3337-9cde-871a25f2d2ea>
 /opt/local/libexec/*/libtclx8.6.dylib
        0x1011c3000 -        0x10130efff libtcl8.6.dylib (*) <c6266ab5
 -1ddc-36d1-aa82-3451152572cd> /opt/local/libexec/*/libtcl8.6.dylib
        0x100a02000 -        0x100a05fff tclsh8.6 (*) <e45209d7-6e2c-3b58
 -96ee-853a2525ef65> /opt/local/libexec/*/tclsh8.6
     0x7ff81d9f4000 -     0x7ff81da74ff7 libcurl.4.dylib (*)
 <0c3f924b-7198-3a14-b98d-9c350c5ca3d7> /usr/lib/libcurl.4.dylib
     0x7ff804fcc000 -     0x7ff80505cb9f dyld (*) <baa6f02e-
 dff3-3562-8c99-ea2820c91ad9> /usr/lib/dyld
                0x0 - 0xffffffffffffffff ??? (*)
 <00000000-0000-0000-0000-000000000000> ???
     0x7ff805358000 -     0x7ff805363ff7 libsystem_pthread.dylib (*)
 <25b2f3eb-07b4-3cb9-9457-2c26210c27c8>
 /usr/lib/system/libsystem_pthread.dylib
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70120>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list