[R] lty=NULL crashing R for x11(type="cairo")

Martin Maechler maechler at stat.math.ethz.ch
Sat Mar 5 22:55:39 CET 2011


>>>>> "IZ" == Ista Zahn <izahn at psych.rochester.edu>
>>>>>     on Sat, 5 Mar 2011 14:07:04 +0000 writes:

    IZ> I confirm this bug exists and is 100% replicable on R
    IZ> version 2.12.2 (2011-02-25) Platform: i686-pc-linux-gnu
    IZ> (32-bit)

WHoa... debugging .... 
===> it *is* a bug in R after all :

  > plot(1); axis(1, lty=NULL)

   *** caught segfault ***
  address 0x7fff423ab000, cause 'memory not mapped'

and yes, the bug is device dependent:
E.g., it nicely works for postscript() or pdf()

> postscript(); plot(1); axis(1, lty=NULL) ; dev.off()
null device 
          1 

and it's ok for type = "Xlib", but not for the default 
type = "cairo":

> x11(type="Xlib")
> plot(1); axis(1, lty=NULL)
> x11(type="cairo")
> plot(1); axis(1, lty=NULL)

 *** caught segfault ***
address 0x7fffd875f000, cause 'memory not mapped'
/u/maechler/bin/R_arg: line 137: 14914 Segmentation fault      $exe $@

Process R-devel exited abnormally with code 139 at Sat Mar  5 22:53:35 2011

and similarly for

> png(type="Xlib") # fine
> png()            # not fine



More information about the R-help mailing list