From maechler at stat.math.ethz.ch  Thu Apr  7 12:24:32 2011
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Thu, 7 Apr 2011 12:24:32 +0200
Subject: [Rd] core Matrix package segfaulted on R CMD check --use-gct
In-Reply-To: <4D9D5F00.9040200@users.sourceforge.net>
References: <255683.81856.qm@web29515.mail.ird.yahoo.com>
	<AANLkTimDJbJ-u3wXOyvPB0EePf98AZ-R5duKVr+Guh-v@mail.gmail.com>
	<19856.40809.236979.731769@stat.math.ethz.ch>
	<4D91B5CC.1040500@users.sourceforge.net>
	<AANLkTimuxb199-32D+043u9fNp7VsDjf5QD2qX3_Zjof@mail.gmail.com>
	<AANLkTi=Tjjq9JtuzYp8x4Pp=gtg2eGT7C6RoaXehmX_W@mail.gmail.com>
	<4D9D5F00.9040200@users.sourceforge.net>
Message-ID: <19869.37088.323145.396106@stat.math.ethz.ch>

>>>>> "HL" == Hin-Tak Leung <htl10 at users.sourceforge.net>
>>>>>     on Thu, 7 Apr 2011 07:51:44 +0100 writes:

    HL> Douglas Bates 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.

    HL> Matrix-for-R-2.13 at 2659 (0.999375-49) has the problem at a different place:
    >> pkgname <- "Matrix"
    >> source(file.path(R.home("share"), "R", "examples-header.R"))
    >> gctorture(TRUE)
    >> options(warn = 1)
    >> options(error=dump.frames)
    >> library('Matrix')

    HL> Loading required package: lattice
    HL> Error in regexpr("package:", envName, fixed = TRUE) :
    HL> unprotected object (0x2fe5818) encountered (was INTSXP)
    HL> Error: package/namespace load failed for 'Matrix'

    HL> That aside - with R 2.13 only about a week to go, which version of Matrix will 
    HL> it ship?

Well, R-2.13.0 is in "Release Candidate" ('RC') stage, after having
passed the alpha and beta stages.

So, almost surely, the current CRAN version of Matrix, also part
of all recent R-2.13.0 tarballs will be shipped along.

If we can reproduce your problem, we will fix it, hopefully
pretty soon, and release a version of Matrix,  0.9996875-0
close to the release time of R-2.13.0;
but for stability reasons (of R-2.13.0 and all its testing on
all platforms), it would not ship with 2.13.0 and only people
who explicitly update.packages(...) [after R-2.13.0
installation] will get it.

Martin



[Rd] core Matrix package segfaulted on R CMD check --use-gct
Martin Maechler