Ray.Brownrigg@mcs.vuw.ac.nz
2000-Mar-16 22:25 UTC
[Rd] R-1.0.0 on alpha/osf1 memory glitch (PR#490)
Digital Alpha (various), Digital UNIX V4.0[EF], R-1.0.0, gcc, f77
When using batch mode with the save option, an error message is issued.
However [I have just discovered that] it appears that the operation
does complete, i.e. the .RData file is saved successfully. The main
problem is that the return code is non-zero (and so it is impossible to
distinguish this "non-error" from some other error in a script).
Reproduce by:
bats> echo 'x <- 1' | R --save
R : Copyright 2000, The R Development Core Team
Version 1.0.0 (February 29, 2000)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type "?license" or "?licence" for distribution
details.
R is a collaborative project with many contributors.
Type "?contributors" for a list.
Type "demo()" for some demos, "help()" for on-line
help, or
"help.start()" for a HTML browser interface to help.
Type "q()" to quit R.
> x <- 1
>
xmalloc: out of virtual memory
bats>
Note that an alternate form that achieves the same desired effect does
not issue any error messages:
echo 'x <- 1; save(list = ls(), file = ".RData")' | R
--no-save
I can't find any record of the configure summary output (is it saved
anywhere, or does it only appear on the screen?) but I could reproduce
this if necessary.
Ray Brownrigg
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi, I just tried this on an AIX computer (4.3.2, also gcc + f77, R-1.0.0). The same "error" comes up -- xmalloc complains. This is somewhat cosmetic as the data is fine so it may not be very high on the priority list. Anyways, let me know if I can help debug this--I don't know whether you have easy access to DEC or AIX boxes. But with a dysfunctional gdb I'd need a hint about where this might happen. Regards, -tom Ray.Brownrigg@mcs.vuw.ac.nz writes:> Digital Alpha (various), Digital UNIX V4.0[EF], R-1.0.0, gcc, f77 > > When using batch mode with the save option, an error message is issued. > However [I have just discovered that] it appears that the operation > does complete, i.e. the .RData file is saved successfully. The main > problem is that the return code is non-zero (and so it is impossible to > distinguish this "non-error" from some other error in a script).[snip]> xmalloc: out of virtual memory[snip] -- mailto:tov@ece.cmu.edu (Tom Vogels) Tel: (412) 268-6638 FAX: -3204 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Hmm. In system.c we have > > case SA_SAVE: > if(runLast) R_dot_Last(); > if(R_DirtyImage) R_SaveGlobalEnv(); > #ifdef HAVE_LIBREADLINE > #ifdef HAVE_READLINE_HISTORY_H > if(R_Interactive && UsingReadline) > stifle_history(R_HistorySize); > write_history(R_HistoryFile); > #endif > #endif > break; > > Could you try making that > > if(R_Interactive && UsingReadline) { > stifle_history(R_HistorySize); > write_history(R_HistoryFile); > } >I can confirm that this change works in my situation. Thanks, Ray Brownrigg -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._