macOS Mojave - Get "Segmentation fault: 11" when trying to run airport

As the title suggests, when I run the command /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 sniff 6 in Terminal where en0 is my Wi-Fi interface and 6 is the channel I am sniffing; I am now getting an error message reading Segmentation fault: 11 almost instantly. This has never been a problem before updating to macOS Mojave (10.14) but is a reoccurring problem with the new update despite reboots, NVRAM resets etc.

My question is: has anybody else experienced this problem before? If so, are there any solutions or is it something that we must hope Apple will fix in a future release of macOS?

Thank you in advance for any help,

Kind regards, Tom


Solution 1:

I faced with this problem, when try to dump traffic from interface. Possible solutions:

  • use tcpdump with writing to file, like suggested below
  • use Wireshark for capturing traffic from this interface