From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2e645b3d49aaa694 X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: Segmentation fault exceptions under DU4.0 Date: 1998/02/17 Message-ID: <34E9A92C.83A1024B@zk3.dec.com>#1/1 X-Deja-AN: 325892894 Content-Transfer-Encoding: 7bit References: <6c20te$m08@romeo.logica.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 The user reported that this was, in fact, the problem and that it is now resolved. It looks like we have been using the wrong message size in most of the code, i.e. 8 bytes too big. What really threw me was that the same code to receive messages is used everywhere, in 30+ processes, and all but one of them worked fine, whilst the one causing problems always crashed in exactly the same manner, no matter what else I changed! Anyway after much useless hacking and rewriting, a simple one line fix has solved the problem ... I wish I'd posted the plea for help earlier instead of ploughing through thousands of lines of code ! I would also note that in DIGITAL UNIX V4.0, you also get the ATOM tools. The tool I would highly recommend for cases like this, (memory overwrites and the like) is "third degree". See the man page for atom(1) and third(5). It is also described in the Programmer's Guide, which should be available online. -Jeff -- Jeff Sullivan | Digital Equipment Corp | E-mail: jps@zk3.dec.com DEC C and C++ | Nashua, NH ZK3-2/2X09 | sullivan@decc.enet.dec.com