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 14:39:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail From: "Paul Pluzhnikov" Newsgroups: comp.unix.tru64,comp.programming.threads References: <943a15cc.0201290533.598aa1a7@posting.google.com> <5pX68.2722$3E5.240464@newsread2.prod.itd.earthlink.net> Subject: Re: Strange pointer addresses causing SEGV X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: Date: Sat, 02 Feb 2002 22:39:08 GMT NNTP-Posting-Host: 24.205.81.188 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1012689548 24.205.81.188 (Sat, 02 Feb 2002 14:39:08 PST) NNTP-Posting-Date: Sat, 02 Feb 2002 14:39:08 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sat, 02 Feb 2002 14:39:07 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.unix.tru64:6692 comp.programming.threads:8336 "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... In my case it is actually return address, not arguments, that gets corrupted. Unfortunately ostream ctor executes a lot of code ...