{"action":"opened","issue":{"url":"https://api.github.com/repos/phaethon/scapy/issues/49","labels_url":"https://api.github.com/repos/phaethon/scapy/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/phaethon/scapy/issues/49/comments","events_url":"https://api.github.com/repos/phaethon/scapy/issues/49/events","html_url":"https://github.com/phaethon/scapy/issues/49","id":123061694,"number":49,"title":"segfault caused by pcap_get_selectable_fd on Mac OS X 10.10","user":{"login":"Congee","id":2083950,"avatar_url":"https://avatars.githubusercontent.com/u/2083950?v=3","gravatar_id":"","url":"https://api.github.com/users/Congee","html_url":"https://github.com/Congee","followers_url":"https://api.github.com/users/Congee/followers","following_url":"https://api.github.com/users/Congee/following{/other_user}","gists_url":"https://api.github.com/users/Congee/gists{/gist_id}","starred_url":"https://api.github.com/users/Congee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Congee/subscriptions","organizations_url":"https://api.github.com/users/Congee/orgs","repos_url":"https://api.github.com/users/Congee/repos","events_url":"https://api.github.com/users/Congee/events{/privacy}","received_events_url":"https://api.github.com/users/Congee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-19T04:32:14Z","updated_at":"2015-12-19T04:32:14Z","closed_at":null,"body":"Code resulting in segfault:\r\n``` python\r\nfrom scapy.all import *\r\np = IP(dst = 'www.bing.com') / TCP(dport = 80) / Raw(b'Some raw bytes')\r\n# to see packet content as bytes use bytes(p) not str(p)\r\nsr1(p)\r\n```\r\n\r\nThis info may be helpful:\r\n\r\nINFO: Can't import matplotlib. Not critical, but won't be able to plot.\r\nINFO: Can't import networkx. Not criticial, but won't be able to draw network graphs.\r\nINFO: Can't import PyX. Won't be able to use psdump() or pdfdump().\r\nWARNING: Could not load module netifaces: No module named 'netifaces'\r\nINFO: No IPv6 support in kernel\r\nWARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6\r\nINFO: Please, report issues to https://github.com/phaethon/scapy\r\nINFO: Can't import python Crypto lib. Won't be able to decrypt WEP.\r\nINFO: Can't import python Crypto lib. Disabled certificate manipulation tools\r\nPython 3.5.1 (default, Dec  7 2015, 21:59:08)\r\n\r\nI'm not capable of debuging scapy due to some trivial ctypes related code. So.... Any suggestions?"}}