[Rd] Re: Sys.time dumps core at start-up (PR#822)

Prof Brian D Ripley ripley@stats.ox.ac.uk
Tue, 23 Jan 2001 19:05:42 +0000 (GMT)


On Tue, 23 Jan 2001 kleiweg@let.rug.nl wrote:

> Peter Kleiweg skriver...
>
> > R dumps core if the first command I use is Sys.time():
> >
> >     > Sys.time()
> >     Segmentation fault (core dumped)
>
> (peter) ~ R -d gdb
>
> [snip]
>
> GDB 4.16 (i386-redhat-linux), Copyright 1996 Free Software Foundation, Inc...
> (gdb) run
> Starting program: /usr/local/R/lib/R/bin/R.bin
>
> R : Copyright 2001, The R Development Core Team
> Version 1.2.1  (2001-01-15)
>
> [snip]
>
> Type `q()' to quit R.
>
> > Sys.time()
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x401029ce in strftime () at strftime.c:287
> strftime.c:287: No such file or directory.
> (gdb)

Is this the RH5.0 you mentioned earlier (that gdb is pretty ancient)?  Did
you set TZ as advised in ?DateTimeClasses to work around bugs in deficient
Linux distros?  RH6.2's strftime will crash on POSIXlt (and its man page)
correct inputs.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._