[Rd] plot(x,y) core dump

Liao, Kexiao liao1k at cmich.edu
Fri Jul 30 15:03:05 CEST 2004


Dear R Development Team,

   I compile R-1.9.1 on AIX 5.2 under 2.9-aix51-020209, and xlf 7.1. In
order to let R compile successfully under gcc 2.9, I have to change one
C statement of file(RHOME//src/modules/X11/devX11.c) line 1768 from
"retrun FALSE" to "retrun NULL", following is C code snapshot:

 

newX11Desc * Rf_allocNewX11DeviceDesc(double ps)

{

    newX11Desc *xd;

    /* allocate new device description */

    if (!(xd = (newX11Desc*)calloc(1, sizeof(newX11Desc))))

        return NULL;

 

    /* From here on, if we need to bail out with "error", */

    /* then we must also free(xd). */

 

    /*  Font will load at first use.  */

 

    if (ps < 6 || ps > 24) ps = 12;

    xd->fontface = -1;

    xd->fontsize = -1;

    xd->basefontface = 1;

    xd->basefontsize = ps;

    xd->handleOwnEvents = FALSE;

    xd->window = (Window) NULL;

 

    return(xd);

}

 

However I got core dump while I try to use plot() from R:

 

 

R : Copyright 2004, The R Foundation for Statistical Computing

Version 1.9.1  (2004-06-21), ISBN 3-900051-00-3

 

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 in publications.

 

Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for a HTML browser interface to help.

Type 'q()' to quit R.

 

> help.start()

Making links in per-session dir ...

If /usr/bin/netscape is already running, it is *not* restarted, and

    you must switch to its window.

Otherwise, be patient ...

> x <- rnorm(50)

> y <- rnorm(x)

> plot(x,y)

Illegal instruction (core dumped)

 

 

Can anyone give me some suggestion? Thanks!

 

 

Kexiao

 


	[[alternative HTML version deleted]]



More information about the R-devel mailing list