[Rd] segmentation fault: formula() with long variable names (PR#3680)

Jerome Asselin jerome at hivnet.ubc.ca
Thu Aug 7 15:38:02 MEST 2003


Indeed, I don't want to do that. (I found the bug by mistake.)

Maybe I'm wrong, but I thought that all segmentation faults should be 
reported. This one is certainly not an urgent issue.

Cheers,
Jerome

On August 7, 2003 02:30 pm, Peter Dalgaard BSA wrote:
> jerome at hivnet.ubc.ca writes:
> > R version: 1.7.1
> > OS: Red Hat Linux 7.2
> >
> > In this example, I would expect an error for the overly long variable
> > name. This is always reproducable for me.
> >
> > > formula(paste("y~",paste(rep("x",50000),collapse="")))
> >
> > Segmentation fault
>
> Also in (reasonably) current r-devel. But why would you want to do
> that?
>
> The cause of the crash is that R_GlobalContext is getting clobbered by
> the x's, leading to
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0809f491 in Rf_error (format=0x817d7ef "symbol print-name too long")
>     at ../../../R/src/main/errors.c:520



More information about the R-devel mailing list