This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

string problems under hpux




I notice a while back a couple of posts from someone having problems with
string under hpux.  Can anyone (1) confirm that there is a problem and
(2) suggest a patch?

It looks to me like there may be something wrong with the = operator
when applied to c style strings.  For example if I do something like:

   string x = "ccis3";
   
And then look at x with gdb, the dat member of string looks too long.

  (gdb) print x
  $6 = {npos = <optimized out or zero length>, 
  nilRep = <optimized out or zero length>, dat = 0x400a3250 "ccis3ds = nrom"}
  

In any event when I try to call c_str() I get a SIGSEGV, and it looks like
the process made a reference to 0x0 inside c_str(), although it is hard to
be certain.

Any suggestions/pointers/advice would be very much appreciated.

thanks
Phil
romig@cse.unl.edu

P.S.  I'm running egcs 1.0.2 under HP-UX 10.01.  

      I configured using:
      ../egcs-1.0.2/configure --host=hppa1.1-hp-hpux10.01
        --prefix=/usr/dist/pkgs/egcs-1.0.2 --enable-shared --with-gnu-as
	
     The build/install seemed to go without any problems.
     
     I have not been able to get dejagnu to run, so I have not run the
     checks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]