From: Rob McCool <robm@netscape.com> Newsgroups: netscape.devs-nsapi Subject: Re: net_read/net_write SEGV when used within a spawned thread Date: Thu, 31 Oct 1996 12:53:16 -0800 > It seems that I get a SEGV whenever I try to use net_read/net_write > within a function that was run by a spawned thread. They work fine if > they are called directly. > > Here is a small example of the problem. > You can make it connect wherever you want. I just used it to connect > to the local time server (port 37). > > This works on NT and Enterprise 2.1 servers. So I assume it's due to > the fact that Fastrack 2.0 uses user level threads only. > I would definately like to get it working with 2.0 if possible rather > that telling our customers that they have to upgrade to 2.1. > > The only other solution I could think of is to avoid the usage of the > net_ calls and just use normal non_blocking sockets. Would that work?This is a terrible bug in the 2.0 UNIX servers. The 2.01 servers fix it. The workaround of using regular socket calls as you suggest later is one way to fix it.
-- Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/ Stunt Programmer, Netscape Communications Corporation It was working ten minutes ago, I swear...Reproduced by permission of the author.