From goran.brostrom at gmail.com  Thu Dec 14 22:06:38 2006
From: goran.brostrom at gmail.com (=?UTF-8?Q?G=C3=B6ran_Brostr=C3=B6m?=)
Date: Thu, 14 Dec 2006 22:06:38 +0100
Subject: [Rd] [R] Segfault in pure R code
In-Reply-To: <457F39FC.7050406@biostat.ku.dk>
References: <148ed8180612121218pea45e0agcdb39a8b9fe9ff43@mail.gmail.com>
	<457F18AB.4020109@biostat.ku.dk>
	<148ed8180612121414x5763a5f1k4c802976fe9c85fe@mail.gmail.com>
	<148ed8180612121433n1287d12al6fdc622722d0b3ef@mail.gmail.com>
	<457F39FC.7050406@biostat.ku.dk>
Message-ID: <148ed8180612141306k206aa895ud56e6e2ea116b6c8@mail.gmail.com>

On 12/13/06, Peter Dalgaard <p.dalgaard at biostat.ku.dk> wrote:

[...]

> Ouch.  Call the marines...
>
> The error comes from the garbage collector, which means that something
> got corrupted in internal data structures some time previously.
>
> The most important thing is to preserve the bug. Rebuild anything and
> the symptom disappears, but the bug will still be there. So keep the R
> binary, the script, and the .RData file around.

I moved the relevant files to a new, empty directory to keep things
clean, and it resulted in a variation of the error:
++++++++++++++++++++++++++++++++++
> library(xtable)
> ?xtable)
Error: syntax error in "?xtable)"
> ?xtable
> help.start()
Making links in per-session dir ...
If '/usr/bin/firefox' is already running, it is *not* restarted, and
    you must switch to its window.
Otherwise, be patient ...
> library(bemanning)
> load("bemanning07-32.rda")
> courses("Ingrid")
Error in attributes(.Data) <- c(attributes(.Data), attrib) :
        value of 'SET_ATTRIB' must be a pairlist or NULL, not a 'raw'
> gu

Program received signal SIGSEGV, Segmentation fault.
0x08148cd0 in Rstrlen (s=0x0, quote=34) at printutils.c:342
342         return Rstrwid(CHAR(s), LENGTH(s), quote);
++++++++++++++++++++++++++++++++++++++++

('gu' is a data frame in 'bemanning07-32.rda', used by 'courses')

Does that throw any light on the matters?

Also tried to move things to my job machine, with other versions of R
and bemanning, but no errors there.

G?ran



[Rd] [R] Segfault in pure R code
=?UTF-8?Q?G=C3=B6ran_Brostr=C3=B6m?=