From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,cdbab35922e62791 X-Google-Attributes: gidfa528,public X-Google-Thread: ffc1e,c324b43dfcb845cd X-Google-Attributes: gidffc1e,public X-Google-ArrivalTime: 2002-02-02 15:14:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-peer0!btnet!newsr2.u-net.net!peernews!peer.cwci.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: Big H Newsgroups: comp.unix.tru64,comp.programming.threads Subject: Re: Strange pointer addresses causing SEGV Message-ID: References: <943a15cc.0201290533.598aa1a7@posting.google.com> <5pX68.2722$3E5.240464@newsread2.prod.itd.earthlink.net> X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 02 Feb 2002 23:14:15 +0000 NNTP-Posting-Host: 80.1.8.73 X-Complaints-To: abuse@virgin.net X-Trace: news2-win.server.ntlworld.com 1012691659 80.1.8.73 (Sat, 02 Feb 2002 23:14:19 GMT) NNTP-Posting-Date: Sat, 02 Feb 2002 23:14:19 GMT Organization: Virgin Net Usenet Service X-Received-Date: Sat, 02 Feb 2002 23:14:30 GMT (newsr2.u-net.net) Xref: archiver1.google.com comp.unix.tru64:6693 comp.programming.threads:8337 On Sat, 02 Feb 2002 22:39:08 GMT, "Paul Pluzhnikov" wrote: >"Big H" wrote in message >news:gqho5u81e2rk46mnkiskje8qunuefpgim8@4ax.com... >> >You are compiling with 'cxx', >> >aren't you? >> >> Yes, was compiling with cxx v6.1-029. I read release notes for latest >> version and that mentioned about problems with streams and thread so i >> loaded it. Then spent 6 hours rebuilding the code! using 6.3a compiler >> and got exactly the same result - SEGV. > >I used "Compaq C++ V6.2-024 for Digital UNIX V4.0E (Rev. 1091)" >initially, then upgraded to >"Compaq C++ V6.3-008 for Digital UNIX V5.0 (Rev. 910)" which I >think is the latest ... The problem shift a little bit between the >two versions, but the clues pointing to ostream() remain. > >> Also, the fact that the address of the arguments seems to be shifted >> is strange, as it only does this for the static functions containing >> the ostream constructor. > >So run under ladebug, stop in the static function before >ostream is constructed, examine arguments (they should be correct), >step over the ostream constructor, and examine arguments again... > I did, had to step through instruction at a time as it crashed entering the function, don't even reach the ostream constructor. >In my case it is actually return address, not arguments, that >gets corrupted. Unfortunately ostream ctor executes a lot of code ... >