[Rd] Fw: Re: core Matrix package segfaulted on R CMD check --use-gct
Hin-Tak Leung
hintak_leung at yahoo.co.uk
Fri Apr 1 16:21:50 CEST 2011
repost from the subscribed address...
--- On Fri, 1/4/11, Hin-Tak Leung <htl10 at users.sourceforge.net> wrote:
> --- On Wed, 30/3/11, Douglas Bates
> <bates at stat.wisc.edu>
> wrote:
>
> > I isolated the problem and tested then committed a
> fix. I
> > am going to
> > ask Martin to upload the new release as I have gotten
> out
> > of sync with
> > some of his recent changes and he will, I hope,
> reconcile
> > the branches
> > and trunk. If you need the fixed version
> immediately,
> > say for
> > testing, the changes are in the file
> > Matrix/src/chm_common.c You can
> > visit the SVN archive for the project,
> > https://r-forge.r-project.org/scm/?group_id=61, click
> > on the link to
> > Browse Subversion Repository and go to
> > pkg/Matrix/src/chm_common.c
> >
> > I made the mistake that I chastised others for
> making,
> > performing an
> > operation on the result of a call to install and
> another
> > value that
> > may have required allocation of memory. The first
> > time install is
> > called on a particular string it allocates and
> SEXPREC,
> > which may
> > cause a garbage collection.
>
> Have a different (but similiar) problem git cherry-picking
>
> trunk at 2658 on top of Matrix-for-R-2.13 at 2657.
> trunk at 2658 + Matrix-for-R-2.13 at 2657 should be identical to
> Matrix-for-R-2.13 at 2659 which you committed earlier
> (according to git svn rebase):
>
> > pkgname <- "Matrix"
> > source(file.path(R.home("share"), "R",
> "examples-header.R"))
> > gctorture(TRUE)
> > options(warn = 1)
> > library('Matrix')
> Loading required package: lattice
> Error in regexpr("package:", envName, fixed = TRUE) :
> unprotected object (0x3a52538) encountered (was
> INTSXP)
> Error: package/namespace load failed for 'Matrix'
> Execution halted
>
> I also found a different problem, but it looks like it is a
> different part of R and possibly in utils. I'll write
> separately and CC' you (the Matrix authors) on it.
>
>
>
More information about the R-devel
mailing list