[Rd] invalid alignment error in R-2.4.0

Martin Maechler maechler at stat.math.ethz.ch
Tue Jul 11 10:25:28 CEST 2006


I assume this is specific to your installation of R-devel
(R-2.4.0 "unstable").  If I use your 'out',
   hist(out^4, col = "gray")
works just fine consistently.

Could it be a compiler / linker mismatch
on your Mac?  Also, can you run "under the debugger"
   'R -d gdb' (from a commandline) ?

This should allow a traceback ('backtrace', abbreviated 'bt' in "gdb")
of the C call stack.

Martin

>>>>> "Robin" == Robin Hankin <r.hankin at noc.soton.ac.uk>
>>>>>     on Tue, 11 Jul 2006 08:46:17 +0100 writes:

    Robin> Hi
    Robin> I  thought I'd  pass one of my package through R CMD check with R-2.4.0
    Robin> with the following result (it's clean under R-2.3.1):


    Robin> [snip]
    >> 
    >> # histogram of the fourth power:
    >> hist(out^4, col="gray")

    Robin> *** caught bus error ***
    Robin> address 0x12, cause 'invalid alignment'

    Robin> Traceback:
    Robin> 1: sort(x, partial = c(half, half + 1))
    Robin> 2: sum(sort(x, partial = c(half, half + 1))[c(half, half + 1)])
    Robin> 3: stats::median(diff(breaks))
    Robin> 4: hist.default(out^4, col = "gray")
    Robin> 5: hist(out^4, col = "gray")
    Robin> aborting ...



    Robin> Under R-2.4.0, hist(out^4) repeatably gives an error like that above.
    Robin> Here's a dput() of out:


    Robin> c(10.4975870476354, 10.3973239490546, 10.9079973318563,  
    Robin> 10.9201457586087,
    Robin> 10.863164987001, 10.8092412328219, 10.3740979640666, 10.3933170416021,
    Robin> 10.1571361926693, 10.7231637475341, 10.8495903667896, 10.2760101321262,
    Robin> 10.3999724625721, 11.1422484374362, 10.1623400428855, 10.9139189812841,
    Robin> 11.1313700266654, 10.4214929867460, 10.9543767973144, 10.2925796047365,
    Robin> 10.3399040002101, 10.5080265067013, 10.4963598344302, 10.5694912655817,
    Robin> 10.9088365086950, 9.67007136377566, 10.4303159857457, 10.6734035266469,
    Robin> 10.3555432530979, 10.9738495753501, 10.3888850313651, 11.2210598170116,
    Robin> 10.8020906590915, 10.7391185468963, 10.3303267171864, 10.7176410493307,
    Robin> 10.3527634000890, 10.6331145125840, 10.7946862157461, 10.6147608946858,
    Robin> 9.85567630738787, 11.0289144282434, 10.742857648964, 10.866630627911,
    Robin> 10.5278318354308, 10.3553983376990, 10.7900270843436, 10.3467961125517,
    Robin> 10.5126782499258, 10.8575135939962, 10.9151746119094, 11.2000951011802,
    Robin> 10.4133108985045, 10.5265186993107, 10.7148111540688, 10.3722159808052,
    Robin> 10.1911424590529, 10.8375326158672, 10.2892046453081, 11.0159788575821,
    Robin> 10.2104834661186, 10.0718751926059, 11.5503607473136, 10.9134877529340,
    Robin> 11.3063246702428, 10.0682022386836, 10.6766007351429, 10.6029531885996,
    Robin> 10.3568338147980, 10.5246512104442, 10.9964827564484, 10.4826791470128,
    Robin> 10.3340980255556, 10.4201862775486, 10.6526293411458, 10.1270181743699,
    Robin> 10.7479561453406, 10.3223366380115, 10.6640317023258, 10.8816465650639,
    Robin> 10.2469734194448, 11.0595077832844, 10.6211764829084, 10.8387020014927,
    Robin> 10.3842712860829, 10.3288969420998, 11.1095936345021, 10.7755741380517,
    Robin> 10.8891163113089, 10.9239878986268, 10.4674437486482, 10.4494516106226,
    Robin> 10.6816375084280, 10.1609470064992, 10.6055689487767, 10.3759153410817,
    Robin> 10.4743618410399, 10.9932886540585, 10.2563007403496, 10.0821264920858,
    Robin> 10.7293259154111, 10.8834112318584, 10.5285102045021, 10.7068278466484,
    Robin> 10.9517121917501, 10.6249671128484, 10.8188751147001, 10.5327448695580,
    Robin> 10.7315642237059, 10.4996799637132)


    >> R.version
    Robin> _
    Robin> platform       powerpc-apple-darwin8.7.0
    Robin> arch           powerpc
    Robin> os             darwin8.7.0
    Robin> system         powerpc, darwin8.7.0
    Robin> status         Under development (unstable)
    Robin> major          2
    Robin> minor          4.0
    Robin> year           2006
    Robin> month          07
    Robin> day            09
    Robin> svn rev        38523
    Robin> language       R
    Robin> version.string R version 2.4.0 Under development (unstable)  
    Robin> (2006-07-09 r38523)
    >> 

    Robin> --
    Robin> Robin Hankin
    Robin> Uncertainty Analyst
    Robin> National Oceanography Centre, Southampton
    Robin> European Way, Southampton SO14 3ZH, UK
    Robin> tel  023-8059-7743

    Robin> ______________________________________________
    Robin> R-devel at r-project.org mailing list
    Robin> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list