Skip to content

[Bioc-devel] affxparser: Core dump with R 2.14.x on OSX [take #2]

2 messages · Dan Tenenbaum

#
Hi Henrik,
On Fri, Jan 20, 2012 at 10:33 AM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
Thanks for the prompt and the detailed problem report.
I can confirm that it happens on Lion too.
An important fact to bear in mind is that the BioC Mac build servers
are running Leopard (OS X 10.5.8).

It's a bit tricky to debug since it works fine on the platform it's
built on...but using primitive means (Rprintf() statements), I was
able to narrow down the problem to the
FileHeaderReader::ReadMagicNumber()
function in
affxparser/src/fusion_sdk/calvin_files/parsers/src/FileHeaderReader.cpp

In that function, the expression
if (fileMagicNumber != DATA_FILE_MAGIC_NUMBER)
evaluates to true, and therefore an
affymetrix_calvin_exceptions::InvalidFileTypeException is thrown.

I don't really know why the magic number is wrong, or would vary
between operating systems, but perhaps this gives you something to go
on?

BTW, the trace is:
R: readCdfHeader()
C++:
R_affx_get_cdf_file_header()
FusionCDFData::ReadHeader()
FusionCDFData::CreateObject()
FusionCDFData::IsCalvinCompatibleFile()
GenericFileReader::ReadFileHeaderNoDataGroupHeader()
FileHeaderReader::Read()
FileHeaderReader::ReadMagicNumber()

Hope this helps. If I can be of assistance in further debugging this,
please let me know.
Thanks,
Dan
#
On Fri, Jan 20, 2012 at 1:44 PM, Dan Tenenbaum <dtenenba at fhcrc.org> wrote:
I should also have mentioned that in the ReadMagicNumber() function,
fileMagicNumber == 67
with the file Mapping10K_Xba142.cdf, and the expected magic number is 59.

Dan