jerome@hivnet.ubc.ca
2002-Nov-22 23:51 UTC
[Rd] Segmentation fault using "survival" package (PR#2320)
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
maechler@stat.math.ethz.ch
2002-Nov-25 08:20 UTC
[Rd] Segmentation fault using "survival" package (PR#2320)
>>>>> "Jerome" == Jerome Asselin <jerome@hivnet.ubc.ca> >>>>> on Sat, 23 Nov 2002 00:51:51 +0100 (MET) writes:Jerome> Full_Name: Jerome Asselin Version: 1.6.1 OS: RedHat Jerome> Linux 7.2 Submission from: (NULL) (142.103.173.179) Jerome> Hello, Jerome> I get a segmentation fault when I run the following Jerome> code. I wouldn't expect meaningful results because Jerome> my response variable contains only missing values. Jerome> However, I would expect something like a regular Jerome> error (not a segmentation fault). I confirm the problem (OS: a version of Redhat Linux, 1.6.1 patched) running in "R -d gdb" shows the place :> coxph(surv ~ x, data=data)Program received signal SIGSEGV, Segmentation fault. 0x4027dee4 in coxfit2 (maxiter=0x8c9cc60, nusedx=0x8c9cc40, nvarx=0x8c9cc20, time=0x0, status=0x0, covar2=0x0, offset=0x0, weights=0x0, strata=0x0, means=0x8c85738, Rf_beta=0x8c85710, u=0x8c856e8, imat2=0x8c856c0, loglik=0x8cb3dd0, flag=0x8c9cc00, work=0x8b4ef10, eps=0x8c85698, tol_chol=0x8c85670, sctest=0x8c85648) at coxfit2.c:116 116 coxfit2.c: No such file or directory. in coxfit2.c -- Martin