From: John <st...@un...> - 2004-04-16 22:41:04
|
On Fri, Apr 16, 2004 at 12:23:04PM -0400, Steve Kann wrote: > John wrote: > > The code in question here is simply: > static struct iax_event *iax_net_read(void) > { > char buf[65536]; > int res; > struct sockaddr_in sin; > int sinlen; > sinlen = sizeof(sin); > res = recvfrom(netfd, buf, sizeof(buf), 0, (struct sockaddr *) > &sin, &sinlen); > > > I have no idea why you would segfault when calling sizeof an automatic > variable. That should probably be a constant assignment by the compiler.. > > Maybe the segfault is actually somewhere else, and you can find it if > you compile without optimization.. > > -SteveK here is a copy of the build. http://mail.unixjunkie.com/iaxcomm.build.txt |