Skip to content

R crash on Mac

2 messages · David Winsemius

#
I got a private message from Dr Azzalini this morning which I think  
was intended for the list

I have now been notified that my message below has not been delivered.
Try to send from another server. Hope this one works.

From: aa at manerin.stat.unipd.it (Adelchi Azzalini)
To: David Winsemius <dwinsemius at comcast.net>
Reply-To: azzalini at stat.unipd.it
Subject: Re: [R] R crash on Mac
Date: Fri, 27 Feb 2009 19:46:21 +0100
On Fri, Feb 27, 2009 at 11:59:54AM -0500, David Winsemius wrote:
Thanks for the feedback and the suggestion. I have then downloaded
the most recent R version 2.8.1 from http://R.research.att.com/

R version 2.8.1 Patched (2009-02-26 r48012)
i386-apple-darwin8.11.1

but the problem with ask() is still there..

R>  ask('x')
x: c(1, 3,4)

*** caught segfault ***
address 0x4628d484, cause 'memory not mapped'

In one case, I got instead, withou crash

Error in parse(prompt = paste(message, ": ", sep = "")) :
  'getEncChar' must be called on a CHARSXP

Thanks again fro your advice.

Best wishes,

Adelchi Azzalini
#
I previously could not confirm that the code was misbehaving. but I  
now can with on a R version that I installed yesterday with input  
through the 64 bit GUI. I do notice that the one time that Dr Azzalini  
got an error instead of a crash, the offending call appears similar to  
that listed as the most proximate Traceback.

 > ask <-  function (message = "Type in datum")
+               eval(parse(prompt = paste(message, ": ", sep = "")))
 > ask("input")
input: 3:6
[1] 3 4 5 6
 > ask("input")
input: c(3,8)

  *** caught segfault ***
address 0x0, cause 'memory not mapped'

Traceback:
  1: parse(prompt = paste(message, ": ", sep = ""))
  2: eval(parse(prompt = paste(message, ": ", sep = "")))
  3: ask("input")

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
--- from next session----
 > sessionInfo()
R version 2.8.1 Patched (2009-01-19 r47650)
i386-apple-darwin9.6.0

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] grid_2.8.1      lattice_0.17-20 rattle_2.4.41

 > R.version
                _
platform       i386-apple-darwin9.6.0
arch           i386
os             darwin9.6.0
system         i386, darwin9.6.0
status         Patched
major          2
minor          8.1
year           2009
month          01
day            19
svn rev        47650
language       R
version.string R version 2.8.1 Patched (2009-01-19 r47650)
On Mar 6, 2009, at 7:59 AM, David Winsemius wrote: