Hi daniel,

This is what I get from R -d gdb:

####################################### start log
###############################################
> library(quantmod)
Loading required package: Defaults
Loading required package: xts
Loading required package: zoo
Loading required package: TTR
> library(fGarch)
Loading required package: timeDate
Loading required package: timeSeries

Attaching package: 'timeSeries'

The following object(s) are masked from 'package:zoo':

    time<-

Loading required package: fBasics
Loading required package: MASS

Attaching package: 'fBasics'

The following object(s) are masked from 'package:TTR':

    volatility

The following object(s) are masked from 'package:base':

    norm

>
> #Get data:
> from <- as.Date('01/01/2000', format = '%m/%d/%Y')
> to <- as.Date(Sys.Date() - 1, format = '%m/%d/%y')
> DAX <- getSymbols('^GDAXI', from = from, to = to, auto.assign=F)
> rets <- dailyReturn(Ad(DAX), type="log")
*** glibc detected *** /usr/lib/R/bin/exec/R: malloc(): memory corruption:
0x09789db0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb7bbc591]
/lib/tls/i686/cmov/libc.so.6(+0x6e395)[0xb7bbf395]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x5c)[0xb7bc0f9c]
/usr/lib/R/lib/libR.so(Rf_allocVector+0x480)[0xb7dd1fc0]
/usr/lib/R/lib/libR.so(+0x1996cd)[0xb7e596cd]
/usr/lib/R/lib/libR.so(Rf_eval+0x6f3)[0xb7d8aa53]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x21b)[0xb7d8a57b]
/usr/lib/R/lib/libR.so(Rf_findFun+0xbc)[0xb7d7179c]
/usr/lib/R/lib/libR.so(Rf_eval+0x39d)[0xb7d8a6fd]
/usr/lib/R/lib/libR.so(+0xcce80)[0xb7d8ce80]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x8d7)[0xb7d8ac37]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x8d7)[0xb7d8ac37]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x8d7)[0xb7d8ac37]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x8d7)[0xb7d8ac37]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x8d7)[0xb7d8ac37]
/usr/lib/R/lib/libR.so(+0xcbe52)[0xb7d8be52]
/usr/lib/R/lib/libR.so(+0x11c3fb)[0xb7ddc3fb]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
/usr/lib/R/lib/libR.so(+0x104af1)[0xb7dc4af1]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(+0xcdac4)[0xb7d8dac4]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(+0xcce80)[0xb7d8ce80]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
/usr/lib/R/lib/libR.so(+0xcae29)[0xb7d8ae29]
/usr/lib/R/lib/libR.so(Rf_eval+0x8d7)[0xb7d8ac37]
/usr/lib/R/lib/libR.so(+0xcbe52)[0xb7d8be52]
/usr/lib/R/lib/libR.so(Rf_eval+0x67b)[0xb7d8a9db]
/usr/lib/R/lib/libR.so(+0xcbe52)[0xb7d8be52]
/usr/lib/R/lib/libR.so(Rf_eval+0x67b)[0xb7d8a9db]
/usr/lib/R/lib/libR.so(+0xcdac4)[0xb7d8dac4]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(+0xcce80)[0xb7d8ce80]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
/usr/lib/R/lib/libR.so(+0xcccdd)[0xb7d8ccdd]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(+0xcce80)[0xb7d8ce80]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
/usr/lib/R/lib/libR.so(+0xcdac4)[0xb7d8dac4]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(+0xcce80)[0xb7d8ce80]
/usr/lib/R/lib/libR.so(Rf_eval+0x588)[0xb7d8a8e8]
/usr/lib/R/lib/libR.so(Rf_applyClosure+0x300)[0xb7d8e890]
/usr/lib/R/lib/libR.so(Rf_eval+0x42d)[0xb7d8a78d]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:02 754551     /usr/lib/R/bin/exec/R
08049000-0804a000 r--p 00000000 08:02 754551     /usr/lib/R/bin/exec/R
0804a000-0804b000 rw-p 00001000 08:02 754551     /usr/lib/R/bin/exec/R
0804b000-0987d000 rw-p 00000000 00:00 0          [heap]
b6a00000-b6a21000 rw-p 00000000 00:00 0
b6a21000-b6b00000 ---p 00000000 00:00 0
b6b1f000-b6b2f000 r-xp 00000000 08:02 1954367    /lib/tls/i686/cmov/
libresolv-2.11.1.so
b6b2f000-b6b30000 r--p 00010000 08:02 1954367    /lib/tls/i686/cmov/
libresolv-2.11.1.so
b6b30000-b6b31000 rw-p 00011000 08:02 1954367    /lib/tls/i686/cmov/
libresolv-2.11.1.so
b6b31000-b6b33000 rw-p 00000000 00:00 0
b6b33000-b6b37000 r-xp 00000000 08:02 1954358    /lib/tls/i686/cmov/
libnss_dns-2.11.1.so
b6b37000-b6b38000 r--p 00004000 08:02 1954358    /lib/tls/i686/cmov/
libnss_dns-2.11.1.so
b6b38000-b6b39000 rw-p 00005000 08:02 1954358    /lib/tls/i686/cmov/
libnss_dns-2.11.1.so
b6b39000-b721c000 r-xp 00000000 08:02 305127     /usr/lib/liblapack.so.3gf.0
b721c000-b721d000 r--p 006e2000 08:02 305127     /usr/lib/liblapack.so.3gf.0
b721d000-b7220000 rw-p 006e3000 08:02 305127     /usr/lib/liblapack.so.3gf.0
b7220000-b74a1000 rw-p 00000000 00:00 0
b74a1000-b74c6000 r-xp 00000000 08:02 754087
/usr/lib/R/library/grDevices/libs/grDevices.so
b74c6000-b74c7000 r--p 00024000 08:02 754087
/usr/lib/R/library/grDevices/libs/grDevices.so
b74c7000-b74c8000 rw-p 00025000 08:02 754087
/usr/lib/R/library/grDevices/libs/grDevices.so
b74cc000-b74ce000 r-xp 00000000 08:02 1930354
 /lib/libnss_mdns4_minimal.so.2
b74ce000-b74cf000 r--p 00001000 08:02 1930354
 /lib/libnss_mdns4_minimal.so.2
b74cf000-b74d0000 rw-p 00002000 08:02 1930354
 /lib/libnss_mdns4_minimal.so.2
b74e5000-b74f3000 r-xp 00000000 08:02 761212
/usr/lib/R/modules/internet.so
b74f3000-b74f4000 r--p 0000d000 08:02 761212
/usr/lib/R/modules/internet.so
b74f4000-b74f5000 rw-p 0000e000 08:02 761212
/usr/lib/R/modules/internet.so
b74f5000-b7505000 rw-p 00000000 00:00 0
b7505000-b7517000 r-xp 00000000 08:02 2583835
 /home/mark/R/i486-pc-linux-gnu-library/2.12/fBasics/libs/fBasics.so
b7517000-b7518000 r--p 00012000 08:02 2583835
 /home/mark/R/i486-pc-linux-gnu-library/2.12/fBasics/libs/fBasics.so
b7518000-b7519000 rw-p 00013000 08:02 2583835
 /home/mark/R/i486-pc-linux-gnu-library/2.12/fBasics/libs/fBasics.so
b7519000-b751d000 r-xp 00000000 08:02 793966
/usr/lib/R/library/MASS/libs/MASS.so
b751d000-b751e000 r--p 00003000 08:02 793966
/usr/lib/R/library/MASS/libs/MASS.so
b751e000-b751f000 rw-p 00004000 08:02 793966
/usr/lib/R/library/MASS/libs/MASS.so
b751f000-b7522000 r-xp 00000000 08:02 2569150
 /home/mark/R/i486-pc-linux-gnu-library/2.12/TTR/libs/TTR.so
b7522000-b7523000 r--p 00002000 08:02 2569150
 /home/mark/R/i486-pc-linux-gnu-library/2.12/TTR/libs/TTR.so
b7523000-b7524000 rw-p 00003000 08:02 2569150
 /home/mark/R/i486-pc-linux-gnu-library/2.12/TTR/libs/TTR.so
b7524000-b7537000 r-xp 00000000 08:02 2601955
 /home/mark/R/i486-pc-linux-gnu-library/2.12/xts/libs/xts.so
b7537000-b7538000 ---p 00013000 08:02 2601955
 /home/mark/R/i486-pc-linux-gnu-library/2.12/xts/libs/xts.so
b7538000-b7539000 r--p 00013000 08:02 2601955
 /home/mark/R/i486-pc-linux-gnu-library/2.12/xts/libs/xts.so
b7539000-b753a000 rw-p 00014000 08:02 2601955
 /home/mark/R/i486-pc-linux-gnu-library/2.12/xts/libs/xts.so
b753a000-b753d000 r-xp 00000000 08:02 2602041
 /home/mark/R/i486-pc-linux-gnu-library/2.12/zoo/libs/zoo.so
b753d000-b753e000 r--p 00002000 08:02 2602041
 /home/mark/R/i486-pc-linux-gnu-library/2.12/zoo/libs/zoo.so
b753e000-b753f000 rw-p 00003000 08:02 2602041
 /home/mark/R/i486-pc-linux-gnu-library/2.12/zoo/libs/zoo.so
b753f000-b755c000 r-xp 00000000 08:02 754479
/usr/lib/R/library/grid/libs/grid.so
b755c000-b755d000 ---p 0001d000 08:02 754479
/usr/lib/R/library/grid/libs/grid.so
Program received signal SIGABRT, Aborted.
0xb7fe2430 in __kernel_vsyscall ()
######################################## end log
#########################################

Makes sense to you?

Regards,

-Mark-

2010/11/2 Daniel Cegiełka <daniel.cegielka@gmail.com>

> It's probably xts problem.
> try: "R -d gdb" for more info...
>
> regards,
> daniel
>
>
> 2010/11/2 Mark Breman <breman.mark@gmail.com>
>
>> Hi,
>>
>> After installing the latest packages from R-forge for R 2.12.0, quantmod
>> crashes with a segmentation fault:
>>
>> ############################### start log
>> #######################################
>> > library(quantmod)
>> Loading required package: Defaults
>> Loading required package: xts
>> Loading required package: zoo
>> Loading required package: TTR
>> > library(fGarch)
>> Loading required package: timeDate
>> Loading required package: timeSeries
>>
>> Attaching package: 'timeSeries'
>>
>> The following object(s) are masked from 'package:zoo':
>>
>>    time<-
>>
>> Loading required package: fBasics
>> Loading required package: MASS
>>
>> Attaching package: 'fBasics'
>>
>> The following object(s) are masked from 'package:TTR':
>>
>>    volatility
>>
>> The following object(s) are masked from 'package:base':
>>
>>    norm
>>
>> >
>> > #Get data:
>> > from <- as.Date('01/01/2000', format = '%m/%d/%Y')
>> > to <- as.Date(Sys.Date() - 1, format = '%m/%d/%y')
>> > DAX <- getSymbols('^GDAXI', from = from, to = to, auto.assign=F)
>> > rets <- dailyReturn(Ad(DAX), type="log")
>>
>>  *** caught segfault ***
>> address 0x3f010008, cause 'memory not mapped'
>>
>> Traceback:
>>  1: to_period(x, period = on.opts[[period]], ...)
>>  2: inherits(x, "data.frame")
>>  3: is.data.frame(x)
>>  4: colnames(x)
>>  5: grep("Close", colnames(x), ignore.case = TRUE)
>>  6: has.Cl(x)
>>  7: Cl(to_period(x, period = on.opts[[period]], ...))
>>  8: inherits(x, "xts")
>>  9: is.xts(x)
>> 10: try.xts(x1, error = FALSE)
>> 11: Delt_(Cl(to_period(x, period = on.opts[[period]], ...)), type = type)
>> 12: periodReturn(x, "daily", subset, type, leading, ...)
>> 13: dailyReturn(Ad(DAX), type = "log")
>>
>> Possible actions:
>> 1: abort (with core dump, if enabled)
>> 2: normal R exit
>> 3: exit R without saving workspace
>> 4: exit R saving workspace
>> ########################################### end log
>> ###########################################
>>
>> I'm running R 2.12.0 on linux. Here's my environment:
>>
>> > sessionInfo()
>> R version 2.12.0 (2010-10-15)
>> Platform: i486-pc-linux-gnu (32-bit)
>>
>> locale:
>>  [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C
>>  LC_TIME=en_US.utf8
>>       LC_COLLATE=en_US.utf8     LC_MONETARY=C
>>  [6] LC_MESSAGES=en_US.utf8    LC_PAPER=en_US.utf8       LC_NAME=C
>>      LC_ADDRESS=C              LC_TELEPHONE=C
>> [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>
>> other attached packages:
>>  [1] fGarch_2110.80     fBasics_2110.79    MASS_7.3-7
>> timeSeries_2130.90 timeDate_2130.91   quantmod_0.3-14    TTR_0.20-2
>>  [8] xts_0.7-6.1        zoo_1.7-0          Defaults_1.1-1
>>
>> loaded via a namespace (and not attached):
>> [1] grid_2.12.0     lattice_0.19-13
>>
>> Anyone else having the same problems?
>>
>> Regards,
>>
>> -Mark-
>>
>>        [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-SIG-Finance@stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> -- Subscriber-posting only. If you want to post, subscribe first.
>> -- Also note that this is not the r-help list where general R questions
>> should go.
>>
>
>

	[[alternative HTML version deleted]]

