[Rd] plot(x,y) core dump

From: Liao, Kexiao <liao1k_at_cmich.edu>
Date: Fri 30 Jul 2004 - 23:03:05 EST

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;  



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!    


        [[alternative HTML version deleted]]

R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Fri Jul 30 23:05:46 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:15 EST