From jerome@hivnet.ubc.ca  Fri Nov 22 23:51:51 2002
From: jerome@hivnet.ubc.ca (jerome@hivnet.ubc.ca)
Date: Sat, 23 Nov 2002 00:51:51 +0100 (MET)
Subject: [Rd] Segmentation fault using "survival" package (PR#2320)
Message-ID: <200211222351.AAA14020@pubhealth.ku.dk>

Full_Name: Jerome Asselin
Version: 1.6.1
OS: RedHat Linux 7.2
Submission from: (NULL) (142.103.173.179)



Hello,

I get a segmentation fault when I run the following code. I wouldn't expect
meaningful results because my response variable contains only missing values.
However, I would expect something like a regular error (not a segmentation
fault).


library(survival)

data <- structure(list(surv = structure(c(NA, NA, NA, 0,
0, 0), .Dim = c(3, 2), .Dimnames = list(NULL, c("time", "status"
)), class = "Surv", type = "right"), x = c(-1, -1, -0.5)),
.Names = c("surv", "x"),row.names = c("1", "2", "3"),
class = "data.frame")

coxph(surv ~ x,data=data)


Below is what I get when I run these commands from a freshly started R session.
This is always reproducible for me.

Sincerely,
Jerome Asselin

> library(survival)
>
> data <- structure(list(surv = structure(c(NA, NA, NA, 0,
+ 0, 0), .Dim = c(3, 2), .Dimnames = list(NULL, c("time", "status"
+ )), class = "Surv", type = "right"), x = c(-1, -1, -0.5)),
+ .Names = c("surv", "x"),row.names = c("1", "2", "3"),
+ class = "data.frame")
>
> coxph(surv ~ x,data=data)
Segmentation fault



[Rd] Segmentation fault using "survival" package (PR#2320)
jerome@hivnet.ubc.ca