Skip to content

MacOS: Segmentation Fault #343

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

Open
sucat opened this issue Apr 3, 2025 · 0 comments
Open

MacOS: Segmentation Fault #343

sucat opened this issue Apr 3, 2025 · 0 comments

Comments

@sucat
Copy link

sucat commented Apr 3, 2025

I updated the fswatch to the most recent version 1.18.3 and I'm facing Segmentation Fault error when a lot of files change in the dir (for example subdirectory is removed).

Happens on Mac OS 15.4

Diagnostic report I found in ~/Library/Logs/DiagnosticReports

{
    "app_name": "fswatch",
    "timestamp": "2025-04-03 11:30:39.00 +0200",
    "app_version": "",
    "slice_uuid": "1bb8e7eb-cfc2-3917-833c-2483810c57b2",
    "build_version": "",
    "platform": 1,
    "share_with_app_devs": 0,
    "is_first_party": 1,
    "bug_type": "309",
    "os_version": "macOS 15.4 (24E248)",
    "roots_installed": 0,
    "incident_id": "8FBDFF19-6F84-49AE-939D-AE667EB17A23",
    "name": "fswatch"
}
{
    "uptime": 120000,
    "procRole": "Unspecified",
    "version": 2,
    "userID": 501,
    "deployVersion": 210,
    "modelCode": "MacBookPro18,4",
    "coalitionID": 1408,
    "osVersion": {
        "train": "macOS 15.4",
        "build": "24E248",
        "releaseType": "User"
    },
    "captureTime": "2025-04-03 11:30:39.6090 +0200",
    "codeSigningMonitor": 1,
    "incident": "8FBDFF19-6F84-49AE-939D-AE667EB17A23",
    "pid": 55161,
    "translated": false,
    "cpuType": "ARM-64",
    "roots_installed": 0,
    "bug_type": "309",
    "procLaunch": "2025-04-03 11:26:50.1233 +0200",
    "procStartAbsTime": 3017650209086,
    "procExitAbsTime": 3023157119019,
    "procName": "fswatch",
    "procPath": "\/opt\/homebrew\/*\/fswatch",
    "parentProc": "zsh",
    "parentPid": 20364,
    "coalitionName": "com.googlecode.iterm2",
    "crashReporterKey": "97596BC3-6F60-4FE8-3E99-B7834410ADB2",
    "appleIntelligenceStatus": {
        "state": "available"
    },
    "responsiblePid": 20231,
    "responsibleProc": "iTerm2",
    "codeSigningID": "fswatch-555549441bb8e7ebcfc23917833c2483810c57b2",
    "codeSigningTeamID": "",
    "codeSigningFlags": 570425857,
    "codeSigningValidationCategory": 10,
    "codeSigningTrustLevel": 4294967295,
    "codeSigningAuxiliaryInfo": 0,
    "instructionByteStream": {
        "beforePC": "HwEQ6+AHnxrAA1\/WfyMD1f17v6n9AwCRdnIClGEA+LYgAIBSwANf1g==",
        "atPC": "KQBA+coJONBKqUT5KAEqijABCupAAQBU8QMBqjFc7fIwGsHa8QMQqg=="
    },
    "bootSessionUUID": "8214432C-99F9-47BC-94E9-5481CFF08B2A",
    "sip": "enabled",
    "vmRegionInfo": "0 is not in any region.  Bytes before following region: 4375904256
          REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL
          UNUSED SPACE AT START
    --->  
          __TEXT                      104d30000-104d38000    [   32K] r-x\/r-x SM=COW  \/opt\/homebrew\/*\/fswatch",
    "exception": {
        "codes": "0x0000000000000001, 0x0000000000000000",
        "rawCodes": [
            1,
            0
        ],
        "type": "EXC_BAD_ACCESS",
        "signal": "SIGSEGV",
        "subtype": "KERN_INVALID_ADDRESS at 0x0000000000000000"
    },
    "termination": {
        "flags": 0,
        "code": 11,
        "namespace": "SIGNAL",
        "indicator": "Segmentation fault: 11",
        "byProc": "exc handler",
        "byPid": 55161
    },
    "vmregioninfo": "0 is not in any region.  Bytes before following region: 4375904256
          REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL
          UNUSED SPACE AT START
    --->  
          __TEXT                      104d30000-104d38000    [   32K] r-x\/r-x SM=COW  \/opt\/homebrew\/*\/fswatch",
    "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": 1,
    "threads": [
        {
            "id": 1370403,
            "threadState": {
                "x": [
                    {
                        "value": 4
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 1
                    },
                    {
                        "value": 1
                    },
                    {
                        "value": 1
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 52
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 8480841496,
                        "symbolLocation": 0,
                        "symbol": "clock_sem"
                    },
                    {
                        "value": 16387
                    },
                    {
                        "value": 17
                    },
                    {
                        "value": 2
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 9005549987299328
                    },
                    {
                        "value": 9005549987299328
                    },
                    {
                        "value": 334
                    },
                    {
                        "value": 8498039536
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 6090976016
                    },
                    {
                        "value": 6090976016
                    },
                    {
                        "value": 4376490343
                    },
                    {
                        "value": 1000000
                    },
                    {
                        "value": 9223372036000
                    },
                    {
                        "value": 9223372036854775807
                    },
                    {
                        "value": 9223372036854775800
                    },
                    {
                        "value": 2305843009213693951
                    },
                    {
                        "value": 4375936383
                    },
                    {
                        "value": 4376487296,
                        "symbolLocation": 0,
                        "symbol": "FSW_ALL_EVENT_FLAGS"
                    }
                ],
                "flavor": "ARM_THREAD_STATE64",
                "lr": {
                    "value": 6618330868
                },
                "cpsr": {
                    "value": 1610616832
                },
                "fp": {
                    "value": 6090976000
                },
                "sp": {
                    "value": 6090975952
                },
                "esr": {
                    "value": 1442840704,
                    "description": " Address size fault"
                },
                "pc": {
                    "value": 6619525576
                },
                "far": {
                    "value": 0
                }
            },
            "queue": "com.apple.main-thread",
            "frames": [
                {
                    "imageOffset": 16840,
                    "symbol": "__semwait_signal",
                    "symbolLocation": 8,
                    "imageIndex": 2
                },
                {
                    "imageOffset": 55028,
                    "symbol": "nanosleep",
                    "symbolLocation": 220,
                    "imageIndex": 3
                },
                {
                    "imageOffset": 130920,
                    "symbol": "std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>> const&)",
                    "symbolLocation": 84,
                    "imageIndex": 4
                },
                {
                    "imageOffset": 114296,
                    "symbol": "fsw::fsevents_monitor::run()",
                    "symbolLocation": 580,
                    "imageIndex": 1
                },
                {
                    "imageOffset": 81424,
                    "symbol": "fsw::monitor::start()",
                    "symbolLocation": 128,
                    "imageIndex": 1
                },
                {
                    "imageOffset": 13836,
                    "symbol": "main",
                    "symbolLocation": 3816,
                    "imageIndex": 0
                },
                {
                    "imageOffset": 27468,
                    "symbol": "start",
                    "symbolLocation": 6000,
                    "imageIndex": 5
                }
            ]
        },
        {
            "triggered": true,
            "id": 1370405,
            "threadState": {
                "x": [
                    {
                        "value": 22
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 6091498688
                    },
                    {
                        "value": 105553158325788
                    },
                    {
                        "value": 105553158325888
                    },
                    {
                        "value": 3926206481
                    },
                    {
                        "value": 116
                    },
                    {
                        "value": 3024
                    },
                    {
                        "value": 1370386321776509156
                    },
                    {
                        "value": 1370386321776509156
                    },
                    {
                        "value": 4
                    },
                    {
                        "value": 5
                    },
                    {
                        "value": 96
                    },
                    {
                        "value": 105553131063200
                    },
                    {
                        "value": 2095104
                    },
                    {
                        "value": 2043
                    },
                    {
                        "value": 6620347148,
                        "symbolLocation": 0,
                        "symbol": "CFNumberGetValue"
                    },
                    {
                        "value": 8498034744
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 10
                    },
                    {
                        "value": 6091498688
                    },
                    {
                        "value": 1
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 6091498656
                    },
                    {
                        "value": 85
                    },
                    {
                        "value": 9223372036854775804
                    },
                    {
                        "value": 4611686018427387903
                    },
                    {
                        "value": 105553118480928
                    }
                ],
                "flavor": "ARM_THREAD_STATE64",
                "lr": {
                    "value": 6620347400
                },
                "cpsr": {
                    "value": 1610616832
                },
                "fp": {
                    "value": 6091498592
                },
                "sp": {
                    "value": 6091498416
                },
                "esr": {
                    "value": 2449473542,
                    "description": "(Data Abort) byte read Translation fault"
                },
                "pc": {
                    "value": 6621611436,
                    "matchesCrashFrame": 1
                },
                "far": {
                    "value": 0
                }
            },
            "queue": "fswatch_event_queue",
            "frames": [
                {
                    "imageOffset": 1377708,
                    "symbol": "CF_IS_OBJC",
                    "symbolLocation": 12,
                    "imageIndex": 7
                },
                {
                    "imageOffset": 113672,
                    "symbol": "CFNumberGetValue",
                    "symbolLocation": 252,
                    "imageIndex": 7
                },
                {
                    "imageOffset": 115200,
                    "symbol": "fsw::fsevents_monitor::fsevents_callback(__FSEventStream const*, void*, unsigned long, void*, unsigned int const*, unsigned long long const*)",
                    "symbolLocation": 236,
                    "imageIndex": 1
                },
                {
                    "imageOffset": 11184,
                    "symbol": "implementation_callback_rpc",
                    "symbolLocation": 3696,
                    "imageIndex": 8
                },
                {
                    "imageOffset": 7352,
                    "symbol": "_Xcallback_rpc",
                    "symbolLocation": 220,
                    "imageIndex": 8
                },
                {
                    "imageOffset": 7084,
                    "symbol": "FSEventsD2F_server",
                    "symbolLocation": 68,
                    "imageIndex": 8
                },
                {
                    "imageOffset": 21948,
                    "symbol": "receive_and_dispatch_rcv_msg",
                    "symbolLocation": 340,
                    "imageIndex": 8
                },
                {
                    "imageOffset": 112732,
                    "symbol": "_dispatch_client_callout",
                    "symbolLocation": 16,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 26080,
                    "symbol": "_dispatch_continuation_pop",
                    "symbolLocation": 596,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 103968,
                    "symbol": "_dispatch_source_latch_and_call",
                    "symbolLocation": 396,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 99064,
                    "symbol": "_dispatch_source_invoke",
                    "symbolLocation": 844,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 41400,
                    "symbol": "_dispatch_lane_serial_drain",
                    "symbolLocation": 332,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 44588,
                    "symbol": "_dispatch_lane_invoke",
                    "symbolLocation": 388,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 86628,
                    "symbol": "_dispatch_root_queue_drain_deferred_wlh",
                    "symbolLocation": 292,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 84712,
                    "symbol": "_dispatch_workloop_worker_thread",
                    "symbolLocation": 540,
                    "imageIndex": 9
                },
                {
                    "imageOffset": 11876,
                    "symbol": "_pthread_wqthread",
                    "symbolLocation": 292,
                    "imageIndex": 10
                },
                {
                    "imageOffset": 7028,
                    "symbol": "start_wqthread",
                    "symbolLocation": 8,
                    "imageIndex": 10
                }
            ]
        }
    ],
    "usedImages": [
        {
            "source": "P",
            "arch": "arm64",
            "base": 4375904256,
            "size": 32768,
            "uuid": "1bb8e7eb-cfc2-3917-833c-2483810c57b2",
            "path": "\/opt\/homebrew\/*\/fswatch",
            "name": "fswatch"
        },
        {
            "source": "P",
            "arch": "arm64",
            "base": 4376346624,
            "size": 147456,
            "uuid": "f2fccb2d-544b-3788-af01-0d775d6e16a6",
            "path": "\/opt\/homebrew\/*\/libfswatch.13.dylib",
            "name": "libfswatch.13.dylib"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6619508736,
            "size": 242444,
            "uuid": "225cb279-20a9-381d-a163-d2be263f5327",
            "path": "\/usr\/lib\/system\/libsystem_kernel.dylib",
            "name": "libsystem_kernel.dylib"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6618275840,
            "size": 529520,
            "uuid": "20ebe22e-66e2-3556-b70b-54a04e8363a8",
            "path": "\/usr\/lib\/system\/libsystem_c.dylib",
            "name": "libsystem_c.dylib"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6618808320,
            "size": 577528,
            "uuid": "53484980-83fc-35e9-8786-e6cf5eba9471",
            "path": "\/usr\/lib\/libc++.1.dylib",
            "name": "libc++.1.dylib"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6615957504,
            "size": 633604,
            "uuid": "46d42bfa-b2b0-3ce5-a3d9-6ba9ff4607aa",
            "path": "\/usr\/lib\/dyld",
            "name": "dyld"
        },
        {
            "size": 0,
            "source": "A",
            "base": 0,
            "uuid": "00000000-0000-0000-0000-000000000000"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6620233728,
            "CFBundleShortVersionString": "6.9",
            "CFBundleIdentifier": "com.apple.CoreFoundation",
            "size": 5500928,
            "uuid": "39e0f63a-3ab8-39e9-97f8-333cde9a7ba4",
            "path": "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
            "name": "CoreFoundation",
            "CFBundleVersion": "3423"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6776295424,
            "CFBundleShortVersionString": "1400.100.1",
            "CFBundleIdentifier": "com.apple.CoreServices.FSEvents",
            "size": 55356,
            "uuid": "f45143b4-8cc0-3f98-92a4-ced009c21e66",
            "path": "\/System\/Library\/Frameworks\/CoreServices.framework\/Versions\/A\/Frameworks\/FSEvents.framework\/Versions\/A\/FSEvents",
            "name": "FSEvents",
            "CFBundleVersion": "1400.100.1"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6617972736,
            "size": 288544,
            "uuid": "3329eb0a-e722-3db0-a627-e27297282a0f",
            "path": "\/usr\/lib\/system\/libdispatch.dylib",
            "name": "libdispatch.dylib"
        },
        {
            "source": "P",
            "arch": "arm64e",
            "base": 6619754496,
            "size": 51784,
            "uuid": "8d27ec9a-d919-31a4-8df8-31a2fd2e593c",
            "path": "\/usr\/lib\/system\/libsystem_pthread.dylib",
            "name": "libsystem_pthread.dylib"
        }
    ],
    "sharedCache": {
        "base": 6615121920,
        "size": 5020090368,
        "uuid": "32a9f5fd-14a8-3423-8952-1464a6903997"
    },
    "vmSummary": "ReadOnly portion of Libraries: Total=846.2M resident=0K(0%) swapped_out_or_unallocated=846.2M(100%)
    Writable regions: Total=594.3M written=305K(0%) resident=305K(0%) swapped_out=0K(0%) unallocated=594.0M(100%)
                                    VIRTUAL   REGION 
    REGION TYPE                        SIZE    COUNT (non-coalesced) 
    ===========                     =======  ======= 
    Activity Tracing                   256K        1 
    Kernel Alloc Once                   32K        1 
    MALLOC                           585.2M       26 
    MALLOC guard page                   96K        6 
    STACK GUARD                       56.0M        2 
    Stack                             8720K        2 
    VM_ALLOCATE                         64K        1 
    __AUTH                             822K      161 
    __AUTH_CONST                      12.8M      295 
    __DATA                            3231K      276 
    __DATA_CONST                      10.7M      297 
    __DATA_DIRTY                       452K       88 
    __FONT_DATA                        2352        1 
    __LINKEDIT                       620.5M        3 
    __OBJC_RO                         61.3M        1 
    __OBJC_RW                         2391K        1 
    __TEXT                           225.6M      306 
    __TPRO_CONST                       128K        2 
    page table in kernel               305K        1 
    shared memory                       48K        2 
    ===========                     =======  ======= 
    TOTAL                              1.6G     1473 
    ",
    "legacyInfo": {
        "threadTriggered": {
            "queue": "fswatch_event_queue"
        }
    },
    "logWritingSignature": "bf395859818cb946fe6c220dd3878fa838b4bf14",
    "trialInfo": {
        "rollouts": [
            {
                "rolloutId": "60da5e84ab0ca017dace9abf",
                "factorPackIds": {},
                "deploymentId": 240000008
            },
            {
                "rolloutId": "64c17a9925d75a7281053d4c",
                "factorPackIds": {
                    "SIRI_AUDIO_DISABLE_MEDIA_ENTITY_SYNC": "64d29746ad29a465b3bbeace"
                },
                "deploymentId": 240000001
            }
        ],
        "experiments": []
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant