Re: [Rd] Crash in de()

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Mon 17 Apr 2006 - 07:37:11 GMT

Peter Dalgaard <p.dalgaard@biostat.ku.dk> writes:

> Juan Santiago Ramseyer <juan_sr@uol.com.br> writes:
>
> > SYSTEM:
> > ------
> > CPU: AMD64
> > MOTHERBOARD: ASUS
> > OS: FEDORA CORE 5 i64_86
> >
> > R SESSION:
> > ----------
> > > teste<-list(a=c(1,2,3,4),b=c(2,4,6,8))
> > > teste
> > $a
> > [1] 1 2 3 4
> >
> > $b
> > [1] 2 4 6 8
> >
> > > de(teste)
> > *** buffer overflow detected ***: /usr/lib64/R/bin/exec/R terminated
>
> Yes, I see this too with the Fedora Extras 5 RPM on i386.
>
> Things like data.entry(airquality) are equally broken.
>
> However: It's not happening for me with a current source-compiled
> r-devel, nor with 2.3.0beta, so it seems like it might be a packaging
> error.

Correction: I *can* reproduce if I use the Fedora CFLAGS settings, i.e.

-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions  -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables

Presumably it is the -fstack-protector doing its job and we have a real bug that just doesn't trigger without it. Will have a look.

(BTW, x<-0; de(x) is sufficient to cause the crash).

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Apr 17 17:40:10 2006

This archive was generated by hypermail 2.1.8 : Mon 17 Apr 2006 - 10:17:45 GMT