[Rd] View() + "End" key on Ubuntu=segfault

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Feb 10 09:43:59 CET 2008


Ben Bolker wrote:
>    I can repeatably crash R (segfault)
>
>   by doing
>
> n <- 10
> z <- data.frame(a=1:n,b=1:n)
> View(z)
>
>   and then hitting the "End" key on my keyboard.
>
>    I haven't got debugging going yet, but running under
> gdb (without debugging symbols) does give this:
>
> 0xb7b63583 in strlen () from /lib/tls/i686/cmov/libc.so.6
>   
AArrgh.... There's always one more, isn't there?

Same thing with Fedora, and you don't even have to create the data 
frame: View(airquality), press End suffices. I have

(gdb) bt
#0  0x009c2153 in strlen () from /lib/libc.so.6
#1  0x001d9289 in drawwindow (DE=0x96ca3e8)
    at ../../../../R/src/modules/X11/dataentry.c:1380
#2  0x001da0ec in doSpreadKey (DE=0x96ca3e8, key=<value optimized out>,
    event=<value optimized out>)
    at ../../../../R/src/modules/X11/dataentry.c:1701
#3  0x001dc93a in R_ProcessX11Events (data=0x0)

    at ../../../../R/src/modules/X11/dataentry.c:1380
1380            printstring(DE, p, strlen(p), 0, i - DE->colmin + 1, 0);
(gdb) p p
No symbol "p" in current context.
(gdb) l
1375        const char *p;
1376        int i;
1377
1378        for (i = DE->colmin; i <= DE->colmax; i++) {
1379            p = get_col_name(DE, i);
1380            printstring(DE, p, strlen(p), 0, i - DE->colmin + 1, 0);
1381        }
1382        for (i = DE->rowmin; i <= DE->rowmax; i++) {
1383            sprintf(clab, DE->labform, i);
1384            printstring(DE, clab, strlen(clab), i - DE->rowmin + 1, 
0, 0);

at which point the optimizer seems to have messed things up too much for 
further tracing.


> R version 2.6.2 (2008-02-08)
> i486-pc-linux-gnu
>
> [Ubuntu Gutsy]
>
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>   


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list