From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6834026e11ce0465,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-11-25 23:46:07 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: jose_luis_fdez_diaz_news@yahoo.es (jose luis fernandez diaz) Newsgroups: comp.unix.tru64 Subject: what is wrong in this program on tru64 ? Date: 25 Nov 2003 23:46:06 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 16.8.67.81 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1069832766 28026 127.0.0.1 (26 Nov 2003 07:46:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 26 Nov 2003 07:46:06 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:10971 Hi, When I run the program below on Tru64: #include int main() { char *cad="hola"; string s1 = 1 ? string(cad, 0, 2) : ""; } I get the next error: Unaligned access pid=28959 va=0x3ff8000f40c pc=0x1200059c8 ra=0x120005944 inst=0xa403ffe8 Resources lost(coredump) These are the OS and compiler versions: sqocfms01:jdiaz:/tmp>uname -a OSF1 sqocfms01.esm.cpqcorp.net V5.1 1885 alpha sqocfms01:jdiaz:/tmp>cxx -V Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1A (Rev. 1885) Compiler Driver V6.3-008 (cxx) cxx Driver Thands in advance, Jose Luis