[Rd] segfault with layout() after closing X11() device (PR#8970)

ripley at stats.ox.ac.uk ripley at stats.ox.ac.uk
Tue Jun 13 12:07:35 CEST 2006


I unable to reproduce this on my Solaris 8 64-bit systems (neither 
compiled with gcc nor cc) nor any other 64-bit system.

If possible, can you run R under a suitable debugger (e.g. R -d gdb for 
gcc) and find out what is pointing to address zero.

On Tue, 13 Jun 2006, dmaszle at mendelbio.com wrote:

> Full_Name: Don Maszle
> Version: 2.3.0
> OS: Solaris 9 - 64 bit compile
> Submission from: (NULL) (206.86.87.3)
>
>
> After closing an X11() window by either clicking on the close button
> or by calling dev.off(), R 2.3.0 segfaults as shown below.  Calling layout()
> before any X11() device is opened just opens a new device and applies the
> layout.
>
> $ R
>
> R : Copyright 2006, The R Foundation for Statistical Computing
> Version 2.3.0 (2006-04-24)
> ISBN 3-900051-07-0
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
>> X11()
>> layout(matrix(1:2,1,2))
>> # close window with mouse, or call dev.off()
>> layout(matrix(1:2,1,2))
>
> *** caught segfault ***
> address 0, cause 'memory not mapped'
>
> Traceback:
> 1: X11()
> 2: layout(matrix(1:2, 1, 2))
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list