RE:[ROOT] 2.25.02: simple std::string usage

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Fri Sep 08 2000 - 23:07:16 MEST


>Date: Sun, 3 Sep 2000 10:47:47 +0200 (METDST)
>From: Rene Brun <brun@pcbrun.cern.ch>
>To: MXJ02154@nifty.ne.jp
>Subject: [ROOT] 2.25.02: simple std::string usage crashes ROOT/CINT (fwd)
>
>Hi Masa,
>I forward this mail from Matt Langston in case you do not read
>the roottalk mails.
>
>Thanks also for fixing the other problem crashing CINT.
>
>Rene
Hello Rene,

I fixed this problem somehow and included in 5.14.50.
The problem happens in following case

  - the function has a reference type argument
  - and the argument has default value
  - specified argument type and the given default value are different
    types so explicit conversion is needed

Fixed cint is not very well tested yet. So please be
careful for the moment.

Thank you
Masaharu Goto


>---------- Forwarded message ----------
>Date: Sat, 02 Sep 2000 16:28:35 -0700
>From: "Langston, Matthew D." <langston@SLAC.stanford.edu>
>To: 'roottalk' <roottalk@pcroot.cern.ch>
>Subject: [ROOT] 2.25.02: simple std::string usage crashes ROOT/CINT
>
>Hi ROOT Team,
>
>Simple usage of std::string can easily crash ROOT 2.25.02.  The attached
>simple example (in the file "test_string.C") produces the following output:
>
>root [0] .x test_string.C
>
> *** Break *** segmentation violation
>Root > Function test_string() busy flag cleared
>
>
>Would it be possible to fix this in the next release of ROOT please?  Thank
>you :-)
>
>Regards, Matt
>
>--
>Matthew D. Langston
>SLD, Stanford Linear Accelerator Center
>langston@SLAC.Stanford.EDU
>
>



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET