From jerome at hivnet.ubc.ca  Thu Aug  7 15:38:02 2003
From: jerome at hivnet.ubc.ca (Jerome Asselin)
Date: Thu Aug  7 23:38:13 2003
Subject: [Rd] segmentation fault: formula() with long variable names
	(PR#3680)
In-Reply-To: <x2isp9b1f1.fsf@biostat.ku.dk>
References: <200308071832.h77IWoJH013390@pubhealth.ku.dk>
	<x2isp9b1f1.fsf@biostat.ku.dk>
Message-ID: <200308072144.OAA06860@hivnet.ubc.ca>


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@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


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