id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
36	getHostByName peek causing segmentation fault	tolkad		"I was trying to use simpleHTTP but it was causing a segmentation fault so I downloaded the network source and inlined it into my package and added debug statements everywhere until I figured out that:

Network.BSD.getHostByName is calling c_gethostbyname which is returning 0x0000000100c01100
Network.BSD.getHostByName is then calling peek on that pointer which is causing a segmentation fault

gdb said:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffffffffff8
0x00000001006c7e62 in threadPaused ()

I am on Mac OS 10.6.6, ghc 7.0.1

I really have no idea what any of this means. Sorry."	defect	closed	critical		network	2.3	invalid		
