cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

🐛macOS Catalina - Latest versions of cloudflared throw Segmentation fault: 11

Open 083750043 opened this issue 4 months ago • 2 comments

Describe the bug On macOS Catalina (10.15.7), running any version of cloudflared past and including 2025.6.1 results in a Segmentation fault: 11 error.

Previous versions, including 2025.6.0, function normally/as expected.

To Reproduce Steps to reproduce the behavior:

  1. Install cloudflared 2025.6.1 or newer either manually or via auto-update.
  2. Error occurs.
  3. See error

Expected behavior cloudflared runs as normal

Environment and versions

  • OS: macOS Catalina 10.15.7
  • Architecture: Intel
  • Version: 2025.6.1+

Logs and errors Crash diag:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: DEA35573-B37D-4A8C-ACCF-A717B1267C3E
CrashReporter Key:   9A8B2812-140D-3F52-F4CE-FEBF6A2C6DF1
Hardware Model:      Macmini6,2
Process:             cloudflared [26847]
Path:                /usr/local/bin/cloudflared
Identifier:          cloudflared
Version:             ???
Code Type:           X86-64 (Native)
Role:                Unspecified
Parent Process:      launchd [1]
Coalition:           com.cloudflare.cloudflared [107]

Date/Time:           2025-08-19 14:06:38.7786 -0700
Launch Time:         2025-08-19 14:06:38.7708 -0700
OS Version:          Mac OS X 10.15.7 (19H2026)
Release Type:        
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x01a88010
VM Region Info: 0x1a88010 is not in any region.  Bytes before following region: 4405739504
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                 000000010842c000-0000000109246000 [ 14.1M] r-x/r-x SM=COW  ...n/cloudflared
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Namespace SIGNAL, Code 0xb

Triggered by Thread:  0

Thread 0 Crashed:
0   dyld                          	       0x10c52ce67 0x10c4fa000 + 208487
1   dyld                          	       0x10c52d3fa 0x10c4fa000 + 209914
2   dyld                          	       0x10c51c870 0x10c4fa000 + 141424
3   dyld                          	       0x10c51b462 0x10c4fa000 + 136290
4   dyld                          	       0x10c50f078 0x10c4fa000 + 86136
5   dyld                          	       0x10c501b4d 0x10c4fa000 + 31565
6   dyld                          	       0x10c4fb227 0x10c4fa000 + 4647
7   dyld                          	       0x10c4fb025 0x10c4fa000 + 4133


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000004  rbx: 0x00007ffee77d28e0  rcx: 0x0000000001a88000  rdx: 0x00007ffee77d2697
  rdi: 0x00007ffee77d2760  rsi: 0x0000000000000008  rbp: 0x00007ffee77d2a20  rsp: 0x00007ffee77d27a0
   r8: 0x000000010842ce90   r9: 0x0000000000010000  r10: 0x00007ffee77d2697  r11: 0x000000010842c970
  r12: 0x00007ffee77d2928  r13: 0x000000010842c000  r14: 0x00007ffee77d2d40  r15: 0x0000000000000000
  rip: 0x000000010c52ce67  rfl: 0x0000000000010206  cr2: 0x0000000001a88010
  
Logical CPU:     4
Error Code:      0x00000004 
Trap Number:     14


Binary Images:
       0x10c4fa000 -        0x10c58cfff dyld x86_64  <9f48f7f894d0379399b7ddef657ef956> /usr/lib/dyld

EOF

-----------
Full Report
-----------

{"share_with_app_devs":0,"app_version":"","bug_type":"309","timestamp":"2025-08-19 14:06:39.00 -0700","os_version":"Mac OS X 10.15.7 (19H2026)","slice_uuid":"f7cb08bc-eca1-3d9e-f44e-b17d4966b12f","is_first_party":1,"build_version":"","incident_id":"DEA35573-B37D-4A8C-ACCF-A717B1267C3E","app_name":"cloudflared","name":"cloudflared"}
{
  "uptime" : 45000000,
  "procLaunch" : "2025-08-19 14:06:38.7708 -0700",
  "procRole" : "Unspecified",
  "exception" : {
    "type" : "EXC_BAD_ACCESS",
    "signal" : "SIGSEGV",
    "subtype" : "KERN_INVALID_ADDRESS at 0x01a88010"
  },
  "userID" : 0,
  "modelCode" : "Macmini6,2",
  "coalitionID" : 107,
  "osVersion" : {
    "train" : "Mac OS X 10.15.7",
    "build" : "19H2026",
    "releaseType" : ""
  },
  "captureTime" : "2025-08-19 14:06:38.7786 -0700",
  "incident" : "DEA35573-B37D-4A8C-ACCF-A717B1267C3E",
  "pid" : 26847,
  "cpuType" : "X86-64",
  "procName" : "cloudflared",
  "procPath" : "\/usr\/local\/bin\/cloudflared",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.cloudflare.cloudflared",
  "crashReporterKey" : "9A8B2812-140D-3F52-F4CE-FEBF6A2C6DF1",
  "sip" : "disabled",
  "vmregioninfo" : "0x1a88010 is not in any region.  Bytes before following region: 4405739504\n      REGION TYPE                      START - END             [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                 000000010842c000-0000000109246000 [ 14.1M] r-x\/r-x SM=COW  ...n\/cloudflared",
  "is_corpse" : 1,
  "termination" : {"reason":"Namespace SIGNAL, Code 0xb","signal":"Segmentation fault: 11","byProc":"exc handler","code":11,"namespace":"SIGNAL","byPid":26847,"flags":0},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":27816985},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "threads" : [{"id":357231825,"frames":[[0,208487],[0,209914],[0,141424],[0,136290],[0,86136],[0,31565],[0,4647],[0,4133]],"triggered":true}],
  "threadState" : {
  "r13" : 4433559552,
  "rax" : 4,
  "rflags" : 66054,
  "cpu" : 4,
  "rsi" : 8,
  "r14" : 140732782161216,
  "trap_description" : "(no mapping for user data read)",
  "r8" : 4433563280,
  "cr2" : 27820048,
  "rdx" : 140732782159511,
  "r10" : 140732782159511,
  "r9" : 65536,
  "r15" : 0,
  "rbx" : 140732782160096,
  "trap" : 14,
  "err" : 4,
  "r11" : 4433561968,
  "rip" : 4501720679,
  "rbp" : 140732782160416,
  "rsp" : 140732782159776,
  "r12" : 140732782160168,
  "rcx" : 27820032,
  "flavor" : "x86_THREAD_STATE",
  "rdi" : 140732782159712
},
  "usedImages" : [
  [
    "9f48f7f8-94d0-3793-99b7-ddef657ef956",
    4501512192,
    "P"
  ]
],
  "legacyInfo" : {
  "imageExtraInfo" : [
    {
      "size" : 602112,
      "arch" : "x86_64",
      "path" : "\/usr\/lib\/dyld",
      "name" : "dyld"
    }
  ],
  "threadTriggered" : {
    "index" : 0
  }
}
}

Additional context I know it's an old version of macOS, and is on my list to upgrade in the near future. If this version is EOL for cloudflared that's fine, I'd just like to bring this issue up in case it's unexpected and can be fixed in future versions.

Thank you!!

083750043 avatar Aug 19 '25 22:08 083750043

May I please work on this?

eshentials avatar Sep 01 '25 16:09 eshentials

Any update?

eshentials avatar Sep 03 '25 16:09 eshentials