Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!bullwinkle!uw-beaver!tikal!teldata!transys!baron From: baron@transys.UUCP (Joe Portman) Newsgroups: net.micro Subject: Re: Help!!!!!!!!!!!!!!!!!!!!!!!!!!!! Message-ID: <185@transys.UUCP> Date: Thu, 27-Mar-86 17:42:30 EST Article-I.D.: transys.185 Posted: Thu Mar 27 17:42:30 1986 Date-Received: Sun, 20-Apr-86 08:33:34 EST References: <2056@brl-smoke.ARPA> Organization: TransSystems Inc. Bellevue, WA Lines: 57 > Does absolutely ANYONE know the answer to this?!??!?!?! > > We are running SCO Xenix on a PC AT. We are porting vnews to it. However, > when code for pathinit() exits (or just as it is about to) it loses a > return address or two and dies. We have tried more models than > most agensies. Help?!?! > > > John Antypas - Systens N Software > > uucp: ...!sdcsvax!sdchem!wolf!jantypas > arpa: sdchem!wolf!jantypas@sdcsvax.ucsd.edu Yes I do know what happens there, as I ported the netnews stuff to SCO xenix about three weeks ago. The problem with pathinit: REPLACE THE ^^*^*%&^%*&^% uname() call!!!. Uname fails for some damn reason when compiled middle,large or huge model, and when it does it pops a couple of extra levels off the stack, returning you to the previous caller. This sets up an infinitely recursive call to the pathinit() code. REPLACE the uname() call in every program. It will fail on all of them, since you must compile large model to get enough memory out of the malloc() calls. Check all the strcpy's VERY carefully. Some of those pointers are Un-initialized and will give you memory faults. I personally changed all the strcpy calls to AllocCpy(),just to make sure. That is about all you have to do, except for replacing the ndir.c and ndir.h file declarations. (Use the ones that come with the system). This will get you started. BTW inews,(rnews), readnews, vnews and checknews all use the pathinit code. Only readnews will run with the code unmodified. If you would like my copy of the source ( modified to run on xenix V from SCO) email to me and I will try to send it to you. Same goes for everybody. -- **************************************************** * These are my own opinions, not those of * * my employer (self), or any one * * connected with the company (mine) * **************************************************** Joe Portman (SA) USPS: TransSystems Incorporated AT&T: 1-206-453-5560 1280 116th Avenue NE Bellevue WA 98009 /-- uw-beaver!\ /-- camco! \ ... ihnp4! --< >-tikal!< >-- transys!root \-- microsoft!/ \-- teldata!/