what is wrong in this program on tru64 ?

From: jose luis fernandez diaz (jose_luis_fdez_diaz_news_at_yahoo.es)
Date: 11/26/03


Date: 25 Nov 2003 23:46:06 -0800

Hi,

When I run the program below on Tru64:

#include <string>

int main()
{
  char *cad="hola";
  string s1 = 1 ? string(cad, 0, 2) : "";
}

I get the next error:

Unaligned access pid=28959 <a.out> 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



Relevant Pages

  • why this program is wrong on Tru64 OS ?
    ... Resources lost ... Compiler Driver V6.3-008 cxx Driver ...
    (comp.lang.cpp)
  • Re: #pragma lib buggers everything up
    ... A lot of the resources are relevant to the static ... a client exe, and I experienced these too, i.e. the exe can't use any ... Have a resource-only DLL, you might say, - yes, I did consider this but the ... > and often on a particular version of the compiler and particular compiler ...
    (microsoft.public.vc.language)
  • Re: where is these variables defined?
    ... The acd program is the 'ACK compiler driver'. ... Actually, it's "A Compiler Driver". ... null-conversion to happen for assembly files whose dialect is unknown. ...
    (comp.os.minix)
  • Re: INTERNAL COMPILER ERROR ???
    ... I suspect that if you have some large resources ... I get this error message every so often, ... > I suspect the real problem is that our code (mine is definitely ... > included) exceeds some resource limit for the compiler. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: sample projects for 8051 microcontroller
    ... ??>> resources with sample projects, which I could implement with Keil ... ??>> compiler and simulator, cause currently I don't have real hardware. ... of utilities related to 8051 microcontroller development.... ...
    (comp.arch.embedded)