From deepayan.sarkar at gmail.com  Tue May  8 03:44:27 2007
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Mon, 7 May 2007 18:44:27 -0700
Subject: [Rd] sending signals to embedded R
In-Reply-To: <eb555e660705061757o73bcf5dapb9a138a1456ffef8@mail.gmail.com>
References: <eb555e660705041448h27679664o21522a5d04285d74@mail.gmail.com>
	<Pine.LNX.4.64.0705041828340.32397@itasca2.wildberry.org>
	<Pine.LNX.4.64.0705050910190.1517@gannet.stats.ox.ac.uk>
	<Pine.LNX.4.64.0705050923360.32397@itasca2.wildberry.org>
	<Pine.LNX.4.64.0705051758140.5930@auk.stats>
	<Pine.OSX.4.61.0705051231050.608@luke-tierneys-computer-3.local>
	<eb555e660705061129p360419c9ub116a8c33005dd0d@mail.gmail.com>
	<Pine.LNX.4.64.0705061706490.6113@nokomis.stat.uiowa.edu>
	<463E58C8.9090106@vanderbilt.edu>
	<eb555e660705061757o73bcf5dapb9a138a1456ffef8@mail.gmail.com>
Message-ID: <eb555e660705071844h10949c98t9121b4472041296c@mail.gmail.com>

On 5/6/07, Deepayan Sarkar <deepayan.sarkar at gmail.com> wrote:

> I will have to start learning about gdb sometime soon, but in this case, the
> problem seems to be due to the interaction of R_tryEval() and
> graphics, and has nothing to do with interruptions.  Here's a variant
> of the trEval test case that triggers a legitimate error caused by
>
> grid.text('foo', gp = gpar(font=1, fontface=1))

[...]

> Running this, I get:
>
>
> dsarkar at kanika:~$ R-devel CMD ./tryEvalGraphics
>
> R version 2.6.0 Under development (unstable) (2007-05-04 r41439)
>
> [...]
>
> [Previously saved workspace restored]
>
> ** I **: Executing command: library(lattice)
> [1] "stats"     "graphics"  "grDevices" "utils"     "datasets"  "lattice"
> [7] "rcompgen"  "methods"   "base"
> ** I **: Succeeded
> ** I **: Executing command: library(grid)
>  [1] "grid"      "stats"     "graphics"  "grDevices" "utils"     "datasets"
>  [7] "lattice"   "rcompgen"  "methods"   "base"
> ** I **: Succeeded
> ** I **: Executing command: grid.text('foo', gp = gpar(font=1, fontface=1))
> Error in validGP(list(...)) : Must specify only one of 'font' and 'fontface'
> Error executing: grid.text('foo', gp = gpar(font=1, fontface=1))
> ** I **: Succeeded
> ** I **: Executing command: xyplot(1 ~ 1, panel = function()
> grid.text('foo', gp = gpar(font=1, fontface=1)))
> Error in validGP(list(...)) : Must specify only one of 'font' and 'fontface'
>
>  *** caught segfault ***
> address 0x22000440, cause 'memory not mapped'
>
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection: 3
> dsarkar at kanika:~$

And running this again with optimization turned off, I get for the last command:

** I **: Executing command: xyplot(1 ~ 1, panel = function()
grid.text('foo', gp = gpar(font=1, fontface=1)))
Error in validGP(list(...)) : Must specify only one of 'font' and 'fontface'
Error: unprotect(): only 0 protected items
** I **: Succeeded

-Deepayan



[Rd] sending signals to embedded R
Deepayan Sarkar