From rossini@math.sc.edu  Mon Apr 28 14:11:34 1997
From: rossini@math.sc.edu (Anthony Rossini)
Date: 28 Apr 1997 09:11:34 -0400
Subject: R-alpha: R-0.49:  2 problems
In-Reply-To: Kurt Hornik's message of Mon, 28 Apr 1997 07:07:05 +0200
References: <199704280507.HAA02509@aragorn.ci.tuwien.ac.at>
Message-ID: <wnc67x7qol5.fsf@fhat.stat.sc.edu>



>>>>> "Kurt" == Kurt Hornik <hornik@ci.tuwien.ac.at> writes:

    Kurt> I found the following 2 problems (no debugging, sorry).
 Kurt> * qt(0.975, 3) never returns.

    Kurt> Can someone please check that?  Happens for me on Debian
    Kurt> GNU/Linux/ix86 compiled with CFLAGS="-O2 -g".

Fine on Solaris, but see the transcript which follows.

 Kurt> * Yet another stupid way to cause a segfault:

    R> x
    Kurt> Error: Object "x" not found
    R> debug(t.test) t.test(rnorm(10))
    Kurt> debug: choices <- c("two.sided", "greater", "less")
    Kurt> Browse[1]> return()
    Kurt> NULL
    R> x
    Kurt> Error: Object "x" not found
    Kurt> Browse[1]> return()
    Kurt> Segmentation fault

I got a Bus Error, and it happened one line earlier...

Transcript:

>  neuromancer 21 > R
>  
>  R : Copyright 1997, Robert Gentleman and Ross Ihaka
>  Version 0.49 Beta (April 23, 1997)
>  
>  R is free software and comes with ABSOLUTELY NO WARRANTY.
>  You are welcome to redistribute it under certain conditions.
>  Type "license()" for details.
>  
>  >  qt(0.975, 3)
>  [1] 3.182446
>  > 
>  >  x
>  Error: Object "x" not found
>  > debug(t.test)
>  >  t.test(rnorm(10))
>  debug: choices <- c("two.sided", "greater", "less")
>  Browse[1]>  return()
>  NULL
>  > x
>  Error: Object "x" not found
>  Bus error (core dumped)
>  neuromancer 22 > 

with the following core dump:

>  neuromancer 22 > gdb /apps/R/bin/R.binary core
>  GDB is free software and you are welcome to distribute copies of it
>   under certain conditions; type "show copying" to see the conditions.
>  There is absolutely no warranty for GDB; type "show warranty" for details.
>  GDB 4.15.1 (sparc-sun-solaris2.4), 
>  Copyright 1995 Free Software Foundation, Inc...
>  Core was generated by `/p1/apps/R/src/R-0.49/bin/R.binary'.
>  Program terminated with signal 10, Bus error.
>  Reading symbols from /p1/apps/X11R6.3/lib/libSM.so.6.0...done.
>  Reading symbols from /p1/apps/X11R6.3/lib/libICE.so.6.3...done.
>  Reading symbols from /p1/apps/X11R6.3/lib/libX11.so.6.1...done.
>  Reading symbols from /usr/lib/libnsl.so.1...done.
>  Reading symbols from /usr/lib/libsocket.so.1...done.
>  Reading symbols from /usr/lib/libdl.so.1...done.
>  Reading symbols from /usr/lib/libm.so.1...done.
>  Reading symbols from /usr/lib/libc.so.1...done.
>  Reading symbols from /usr/lib/libintl.so.1...done.
>  Reading symbols from /usr/lib/libmp.so.1...done.
>  Reading symbols from /usr/lib/libw.so.1...done.
>  #0  0xef4e25c8 in longjmp ()
>  (gdb) where
>  #0  0xef4e25c8 in longjmp ()
>  #1  0x59214 in jump_now () at errors.c:126
>  #2  0x591c8 in jump_to_toplevel () at errors.c:119
>  #3  0x58f78 in error (format=0x1391a8 "Object \"%s\" not found\n")
>      at errors.c:78
>  #4  0x597a0 in eval (e=0x17f2c0, rho=0x17d1c8) at eval.c:92
>  #5  0x65978 in R_Repl (rho=0x17d1c8, savestack=0, browselevel=0) at main.c:187
>  #6  0x65f4c in mainloop () at main.c:359
>  #7  0xcd6fc in main (ac=0, av=0xeffffa6c) at system.c:267
>  (gdb) 

Something is not where it ought to be... (but I've not looked at the
source in a long enough time to tell you exactly what :-().

best,

----
-tony (Anthony Rossini)	           Statistics Dept., U South Carolina
rossini@stat.sc.edu	           Columbia, SC 29208
http://www.stat.sc.edu/~rossini/   803-777-3578(O) 803-777-4048 (fax)  
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: R-0.49: 2 problems
Anthony Rossini