URL:
  <https://savannah.gnu.org/bugs/?67589>

                 Summary: Entire session crashes occasionally when closing
(Ctrl-D) one window
                   Group: GNU Screen
               Submitter: None
               Submitted: Tue 07 Oct 2025 09:05:35 AM UTC
                Category: Crash/Freeze/Infloop
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.0.0
           Fixed Release: None
         Planned Release: None
           Work Required: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 07 Oct 2025 09:05:35 AM UTC By: Anonymous
Occurs using GNU screen 5.0.0_1 and previous versions, running on a Macbook
Pro (Apple M2 chip) with Mac OS 13 (Ventura). GNU screen is installed using
macports. 

I start GNU screen by using the 'startup command = /opt/local/bin/screen -xR'
setting in my default iTerm2 (v3.4.20) profile. The session is then usually
long running (months) but very occasionally, I will close the shell in one
window and it kills the entire session, taking 20 or 30 windows with it, which
is quite disruptive.

Machine has plenty of memory (32GB), but also quite heavily loaded, eg 28GB in
use with 25GB swap space used. Plenty of disk space.


Full crash report from Mac OS Console:

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

Process:               screen-5.0.0 [42300]
Path:                  /opt/local/bin/screen-5.0.0
Identifier:            screen-5.0.0
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        Exited process [42299]
User ID:               501

Date/Time:             2025-10-07 09:42:48.3079 +0100
OS Version:            macOS 13.6 (22G120)
Report Version:        12
Anonymous UUID:        EE3505A8-A3F1-B943-47AD-506055BD5311

Sleep/Wake UUID:       C1065F31-4A21-49F8-B533-67D7E9A53C09

Time Awake Since Boot: 27000000 seconds
Time Since Wake:       179 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes:       0x0000000000000001, 0x0000000000000008

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   screen-5.0.0 [42300]

VM Region Info: 0x8 is not in any region.  Bytes before following region:
105553518919672
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX
SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-/rwx
SM=NUL  ...(unallocated)

Application Specific Information:
crashed on child side of fork pre-exec


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
1.   libsystem_kernel.dylib                    0x193aa8744 __pthread_kill + 8
1   libsystem_pthread.dylib                    0x193adfc28 pthread_kill + 288
2   libsystem_c.dylib                          0x1939edae8 abort + 180
3   screen-5.0.0                               0x104148984 CoreDump + 216
4   libsystem_platform.dylib                   0x193b0ea24 _sigtramp + 56
5   screen-5.0.0                               0x104179240 AddWindows + 60
6   screen-5.0.0                               0x10418a5c4 MakeWinMsgEv + 2420
7   screen-5.0.0                               0x104158430 RefreshLine + 996
8   screen-5.0.0                               0x10418b0c4 WindowChanged + 812
9   screen-5.0.0                               0x10418adec WindowChanged + 84
10  screen-5.0.0                               0x104178de8 Activate + 188
11  screen-5.0.0                               0x104178f4c KillWindow + 312
12  screen-5.0.0                               0x104189948 WindowDied + 272
13  screen-5.0.0                               0x104187edc win_readev_fn + 472
14  screen-5.0.0                               0x10417df00 sched + 576
15  screen-5.0.0                               0x104148488 main + 8116
16  dyld                                       0x193787f28 start + 2236


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000
x3: 0x0000000000000000
    x4: 0x000000010418de90   x5: 0x000000016bcb9620   x6: 0x000000000000000a
x7: 0x000000000733a300
    x8: 0xfc3f72736b0d3a1e   x9: 0xfc3f727285bb9a9e  x10: 0x0000000000000200
x11: 0x000000016bcb9180
   x12: 0x000000000000000f  x13: 0x0000000000000000  x14: 0x000000000000000a
x15: 0x0000000000000025
   x16: 0x0000000000000148  x17: 0x00000001f368f3f8  x18: 0x0000000000000000
x19: 0x0000000000000006
   x20: 0x00000001eeb6a080  x21: 0x0000000000000303  x22: 0x00000001eeb6a160
x23: 0x0000000000000000
   x24: 0x000000000000002b  x25: 0x0000000000000008  x26: 0x0000000000000077
x27: 0x0000000000000000
   x28: 0x0000000150804443   fp: 0x000000016bcb95d0   lr: 0x0000000193adfc28
    sp: 0x000000016bcb95b0   pc: 0x0000000193aa8744 cpsr: 0x40001000
   far: 0x00000001eeb78068  esr: 0x56000080  Address size fault

Binary Images:
       0x104144000 -        0x104193fff screen-5.0.0 (*)
<80c713bc-ee06-336d-bbf0-22e2c42dc42d> /opt/local/bin/screen-5.0.0
       0x104254000 -        0x10428ffff libncurses.6.dylib (*)
<c6b334d0-d732-387a-9858-1eecee25d986> /opt/local/lib/libncurses.6.dylib
       0x193a9f000 -        0x193ad8fe7 libsystem_kernel.dylib (*)
<1adb8ddc-762b-3b9f-a290-ca1e5ee7b419> /usr/lib/system/libsystem_kernel.dylib
       0x193ad9000 -        0x193ae5fff libsystem_pthread.dylib (*)
<1f30fb9a-bdf9-32db-a709-8417666a7e45>
/usr/lib/system/libsystem_pthread.dylib
       0x193977000 -        0x1939f5ff7 libsystem_c.dylib (*)
<949943e2-52cb-3c95-ab08-7ed984333d03> /usr/lib/system/libsystem_c.dylib
       0x193b0b000 -        0x193b11ffb libsystem_platform.dylib (*)
<6d458354-3c39-3f35-a3bb-d01a78817b4a>
/usr/lib/system/libsystem_platform.dylib
       0x193782000 -        0x193810587 dyld (*)
<49204446-242b-3d1e-9704-32f8ac99723e> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*)
<00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=808.1M resident=0K(0%)
swapped_out_or_unallocated=808.1M(100%)
Writable regions: Total=2.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%)
unallocated=2.6G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                   32K        1 
MALLOC                           874.3M      437 
MALLOC guard page                   96K        5 
MALLOC_MEDIUM (reserved)           1.4G       12         reserved VM address
space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address
space (unallocated)
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
__AUTH                              46K       11 
__AUTH_CONST                        72K       39 
__DATA                             273K       41 
__DATA_CONST                       215K       42 
__DATA_DIRTY                        78K       22 
__LINKEDIT                       802.3M        3 
__OBJC_RO                         66.4M        1 
__OBJC_RW                         2012K        1 
__TEXT                            5864K       44 
dyld private memory                272K        2 
shared memory                       32K        2 
===========                     =======  ======= 
TOTAL                              3.6G      666 
TOTAL, minus reserved VM space     1.8G      666 



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

{"app_name":"screen-5.0.0","timestamp":"2025-10-07 09:42:49.00
+0100","app_version":"","slice_uuid":"80c713bc-ee06-336d-bbf0-22e2c42dc42d","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS
13.6
(22G120)","roots_installed":0,"incident_id":"B2562DA4-C50A-465D-886D-93AABBB24454","name":"screen-5.0.0"}
{
  "uptime" : 27000000,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,9",
  "coalitionID" : 475346,
  "osVersion" : {
    "train" : "macOS 13.6",
    "build" : "22G120",
    "releaseType" : "User"
  },
  "captureTime" : "2025-10-07 09:42:48.3079 +0100",
  "incident" : "B2562DA4-C50A-465D-886D-93AABBB24454",
  "pid" : 42300,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2025-08-14 12:05:43.9343 +0100",
  "procStartAbsTime" : 611462994793497,
  "procExitAbsTime" : 653604730267424,
  "procName" : "screen-5.0.0",
  "procPath" : "\/opt\/local\/bin\/screen-5.0.0",
  "parentProc" : "Exited process",
  "parentPid" : 42299,
  "coalitionName" : "com.googlecode.iterm2",
  "crashReporterKey" : "EE3505A8-A3F1-B943-47AD-506055BD5311",
  "responsiblePid" : 61527,
  "codeSigningID" : "screen",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 570556929,
  "codeSigningValidationCategory" : 10,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 179,
  "sleepWakeUUID" : "C1065F31-4A21-49F8-B533-67D7E9A53C09",
  "sip" : "enabled",
  "vmRegionInfo" : "0x8 is not in any region.  Bytes before following region:
105553518919672\n      REGION TYPE                    START - END         [
VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n
   MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL
 ...(unallocated)",
  "exception" : {"codes":"0x0000000000000001,
0x0000000000000008","rawCodes":[1,8],"type":"EXC_BAD_ACCESS","signal":"SIGABRT","subtype":"KERN_INVALID_ADDRESS
at 0x0000000000000008"},
  "termination" : {"flags":0,"code":6,"namespace":"SIGNAL","indicator":"Abort
trap: 6","byProc":"screen-5.0.0","byPid":42300},
  "vmregioninfo" : "0x8 is not in any region.  Bytes before following region:
105553518919672\n      REGION TYPE                    START - END         [
VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n
   MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL
 ...(unallocated)",
  "asi" : {"libsystem_c.dylib":["crashed on child side of fork pre-exec"]},
  "extMods" :
{"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" :
[{"triggered":true,"id":412890422,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":4363706000},{"value":6103471648},{"value":10},{"value":120824576},{"value":18176372461133445662},{"value":18176372457286113950},{"value":512},{"value":6103470464},{"value":15},{"value":0},{"value":10},{"value":37},{"value":328},{"value":8378708984},{"value":0},{"value":6},{"value":8299913344,"symbolLocation":0,"symbol":"_main_thread"},{"value":771},{"value":8299913568,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":43},{"value":8},{"value":119},{"value":0},{"value":5645550659}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6772620328},"cpsr":{"value":1073745920},"fp":{"value":6103471568},"sp":{"value":6103471536},"esr":{"value":1442840704,"description":"
Address size
fault"},"pc":{"value":6772393796,"matchesCrashFrame":1},"far":{"value":8299970664}},"queue":"com.apple.main-thread","frames":[{"imageOffset":38724,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":2},{"imageOffset":27688,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":3},{"imageOffset":486120,"symbol":"abort","symbolLocation":180,"imageIndex":4},{"imageOffset":18820,"symbol":"CoreDump","symbolLocation":216,"imageIndex":0},{"imageOffset":14884,"symbol":"_sigtramp","symbolLocation":56,"imageIndex":5},{"imageOffset":217664,"symbol":"AddWindows","symbolLocation":60,"imageIndex":0},{"imageOffset":288196,"symbol":"MakeWinMsgEv","symbolLocation":2420,"imageIndex":0},{"imageOffset":82992,"symbol":"RefreshLine","symbolLocation":996,"imageIndex":0},{"imageOffset":291012,"symbol":"WindowChanged","symbolLocation":812,"imageIndex":0},{"imageOffset":290284,"symbol":"WindowChanged","symbolLocation":84,"imageIndex":0},{"imageOffset":216552,"symbol":"Activate","symbolLocation":188,"imageIndex":0},{"imageOffset":216908,"symbol":"KillWindow","symbolLocation":312,"imageIndex":0},{"imageOffset":285000,"symbol":"WindowDied","symbolLocation":272,"imageIndex":0},{"imageOffset":278236,"symbol":"win_readev_fn","symbolLocation":472,"imageIndex":0},{"imageOffset":237312,"symbol":"sched","symbolLocation":576,"imageIndex":0},{"imageOffset":17544,"symbol":"main","symbolLocation":8116,"imageIndex":0},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":6}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4363403264,
    "size" : 327680,
    "uuid" : "80c713bc-ee06-336d-bbf0-22e2c42dc42d",
    "path" : "\/opt\/local\/bin\/screen-5.0.0",
    "name" : "screen-5.0.0"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4364517376,
    "size" : 245760,
    "uuid" : "c6b334d0-d732-387a-9858-1eecee25d986",
    "path" : "\/opt\/local\/lib\/libncurses.6.dylib",
    "name" : "libncurses.6.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6772355072,
    "size" : 237544,
    "uuid" : "1adb8ddc-762b-3b9f-a290-ca1e5ee7b419",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6772592640,
    "size" : 53248,
    "uuid" : "1f30fb9a-bdf9-32db-a709-8417666a7e45",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6771142656,
    "size" : 520184,
    "uuid" : "949943e2-52cb-3c95-ab08-7ed984333d03",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6772797440,
    "size" : 28668,
    "uuid" : "6d458354-3c39-3f35-a3bb-d01a78817b4a",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6769090560,
    "size" : 583048,
    "uuid" : "49204446-242b-3d1e-9704-32f8ac99723e",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6768427008,
  "size" : 3553476608,
  "uuid" : "c26be8cd-619e-3513-8673-3ff826317005"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=808.1M resident=0K(0%)
swapped_out_or_unallocated=808.1M(100%)\nWritable regions: Total=2.6G
written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.6G(100%)\n\n
                             VIRTUAL   REGION \nREGION TYPE
    SIZE    COUNT (non-coalesced) \n===========                     =======
======= \nKernel Alloc Once                   32K        1 \nMALLOC
               874.3M      437 \nMALLOC guard page                   96K
 5 \nMALLOC_MEDIUM (reserved)           1.4G       12         reserved VM
address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1
       reserved VM address space (unallocated)\nSTACK GUARD
   56.0M        1 \nStack                             8176K        1 \n__AUTH
                            46K       11 \n__AUTH_CONST
72K       39 \n__DATA                             273K       41 \n__DATA_CONST
                      215K       42 \n__DATA_DIRTY                        78K
     22 \n__LINKEDIT                       802.3M        3 \n__OBJC_RO
                66.4M        1 \n__OBJC_RW                         2012K
 1 \n__TEXT                            5864K       44 \ndyld private memory
            272K        2 \nshared memory                       32K        2
\n===========                     =======  ======= \nTOTAL
         3.6G      666 \nTOTAL, minus reserved VM space     1.8G      666
\n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "98258c651fef178d15470bca95e9b1582e3725a8",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "645c2d2f9e69a025b0a37e29",
      "factorPackIds" : {

      },
      "deploymentId" : 240000003
    },
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {
        "NETWORK_SERVICE_PROXY_CONFIG_UPDATE" : "6401414cc679dd6bc5828183"
      },
      "deploymentId" : 240000025
    }
  ],
  "experiments" : [

  ]
}
}









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67589>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to