Re: [Rd] sending signals to embedded R

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Mon, 07 May 2007 18:44:27 -0700

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:

-Deepayan



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 08 May 2007 - 01:48:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 May 2007 - 06:33:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.