Skip to content
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

EXC_BAD_ACCESS in hostAddressFamily - m:897 #44

Open
Lyle42 opened this issue Mar 1, 2018 · 1 comment
Open

EXC_BAD_ACCESS in hostAddressFamily - m:897 #44

Lyle42 opened this issue Mar 1, 2018 · 1 comment

Comments

@Lyle42
Copy link

Lyle42 commented Mar 1, 2018

Very rarely, but more than once, I'm getting an EXC_BAD_ACCESS crash in the hostAddressFamily{} method.

I believe that self.hostAddress is the culprit:

  • (sa_family_t)hostAddressFamily {
    sa_family_t result;

    result = AF_UNSPEC;
    if ((self.hostAddress != nil) && (self.hostAddress.length >= sizeof(struct sockaddr)) ) {
    result = ((const struct sockaddr *) self.hostAddress.bytes)->sa_family; // crash here ***, EXC_BAD_ACCESS, KERN_INVALID_ADDRESS at 0x0000000000000001
    }
    return result;
    }

Excerpts from the crash report -----------------

Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: redacted [28472]
User ID: 501

Date/Time: 2018-02-04 22:38:48.506 -0700
OS Version: Mac OS X 10.13.3 (17D47)
Report Version: 12
Anonymous UUID: 9291B4DF-41B5-508A-2146-09CB031378C5

Time Awake Since Boot: 370000 seconds

System Integrity Protection: disabled

Crashed Thread: 8 listenThread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000001
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

System Profile:
Network Service: Ethernet, Ethernet, en0
Thunderbolt Bus: Mac mini, Apple Inc., 23.4
Boot Volume File System Type: apfs
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x85F7, 0x483634353155363447313630304700000000
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x85F7, 0x483634353155363447313630304700000000
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: Hub
USB Device: IR Receiver
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: USB 3.0 Bus
USB Device: G-DRIVE mini5
USB Device: Keyspan USA-28Xb
Serial ATA Device: OWC Mercury EXTREME Pro 6G SSD, 480.1 GB
Model: Macmini6,1, BootROM MM61.010B.B00, 2 processors, Intel Core i5, 2.5 GHz, 8 GB, SMC 2.7f0
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10E), Broadcom BCM43xx 1.0 (7.21.190.16.1a2)
Bluetooth: Version 6.0.2f2, 3 services, 27 devices, 1 incoming serial ports

@mumuWorld
Copy link

I have encountered the same problem. Has anyone solved this problem?

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

2 participants