R-alpha: linux bug

Thomas Lumley (thomas@biostat.washington.edu)
Mon, 11 Nov 1996 10:15:44 -0800 (PST)

Date: Mon, 11 Nov 1996 10:15:44 -0800 (PST)
From: Thomas Lumley <thomas@biostat.washington.edu>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: linux bug
In-Reply-To: <Pine.SUN.3.91.961108155558.23938C-100000@chekov>

When I call certain dynamically loaded C routines from R 0.13 under linux
I get a floating point exception.  The exception happens before the first
line of the C routine, and in or after the line of code in dotcode.c that
calls the C routine ie

It does not happen with all routines in a given library. It does not
always happen (only 90-95% of the time). It doesn't matter whether this
routine is the first foreign routine callled. Changing the name of the
C function doesn't help.  The identical dynamic load library and R code
works under R0.12.  The same C and R code works when compiled and run
under SunOS 4.1 with the same version of gcc. 

I am using Linux kernel 1.2.13 and gcc 2.7.1.  One example of the problem is 
the "coxfit2" routine called by coxph.fit in the survival4 library. The 
error occurs with both the version of the C code in my original port and 
with a slightly altered newer version. For comparison, the "agexact" and 
"coxmart" routines also called by coxph.fit work properly.

Any ideas?

thomas lumley
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch