[R] read.dta error
Aleksandr Andreev
aleksandr.andreev at gmail.com
Tue May 27 01:45:43 CEST 2008
Greetings!
I attempted to read a STATA 10 file using the following syntax:
library(foreign)
data <- read.dta("~/Documents/agestandard/analysis.dta")
I got the following error:
*** stack smashing detected ***: /usr/lib/R/bin/exec/R terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7c13138]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7c130f0]
/usr/local/lib/R/site-library/foreign/libs/foreign.so[0xb759c164]
/usr/local/lib/R/site-library/foreign/libs/foreign.so(do_readStata+0x0)[0xb759c060]
[0x0]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:01 706917 /usr/lib/R/bin/exec/R
08049000-0804a000 rw-p 00000000 08:01 706917 /usr/lib/R/bin/exec/R
0804a000-08cb4000 rw-p 0804a000 00:00 0 [heap]
b5eb4000-b7587000 rw-p b5eb4000 00:00 0
b7587000-b759f000 r-xp 00000000 08:01 1164448
/usr/local/lib/R/site-library/foreign/libs/foreign.so
b759f000-b75a0000 rw-p 00018000 08:01 1164448
/usr/local/lib/R/site-library/foreign/libs/foreign.so
b75a0000-b7602000 r-xp 00000000 08:01 795457
/usr/lib/R/library/stats/libs/stats.so
b7602000-b7604000 rw-p 00062000 08:01 795457
/usr/lib/R/library/stats/libs/stats.so
b7604000-b7673000 rw-p b7604000 00:00 0
b7673000-b7692000 r-xp 00000000 08:01 795124
/usr/lib/R/library/grDevices/libs/grDevices.so
b7692000-b7693000 rw-p 0001e000 08:01 795124
/usr/lib/R/library/grDevices/libs/grDevices.so
b7693000-b7711000 rw-p b7693000 00:00 0
b7711000-b771a000 r-xp 00000000 08:01 501138
/lib/tls/i686/cmov/libnss_files-2.7.so
b771a000-b771c000 rw-p 00008000 08:01 501138
/lib/tls/i686/cmov/libnss_files-2.7.so
b771c000-b7724000 r-xp 00000000 08:01 501142
/lib/tls/i686/cmov/libnss_nis-2.7.so
b7724000-b7726000 rw-p 00007000 08:01 501142
/lib/tls/i686/cmov/libnss_nis-2.7.so
b7726000-b773a000 r-xp 00000000 08:01 501132
/lib/tls/i686/cmov/libnsl-2.7.so
b773a000-b773c000 rw-p 00013000 08:01 501132
/lib/tls/i686/cmov/libnsl-2.7.so
b773c000-b773e000 rw-p b773c000 00:00 0
b773e000-b7745000 r-xp 00000000 08:01 501134
/lib/tls/i686/cmov/libnss_compat-2.7.so
b7745000-b7747000 rw-p 00006000 08:01 501134
/lib/tls/i686/cmov/libnss_compat-2.7.so
b774b000-b774c000 r-xp 00000000 08:01 402286 /usr/lib/gconv/ISO8859-1.so
b774c000-b774e000 rw-p 00000000 08:01 402286 /usr/lib/gconv/ISO8859-1.so
b774e000-b7754000 r-xp 00000000 08:01 796262
/usr/lib/R/library/methods/libs/methods.so
b7754000-b7755000 rw-p 00005000 08:01 796262
/usr/lib/R/library/methods/libs/methods.so
b7755000-b7797000 rw-p b7755000 00:00 0
b7798000-b780c000 rw-p b7798000 00:00 0
b780c000-b78ed000 r--p 00000000 08:01 418681
/usr/lib/locale/en_US.utf8/LC_COLLATE
b78ed000-b792c000 r--p 00000000 08:01 418682
/usr/lib/locale/en_US.utf8/LC_CTYPE
b792c000-b792e000 rw-p b792c000 00:00 0
b792e000-b795b000 r-xp 00000000 08:01 483408 /lib/libncurses.so.5.6
b795b000-b795e000 rw-p 0002c000 08:01 483408 /lib/libncurses.so.5.6
b795e000-b7960000 r-xp 00000000 08:01 501127 /lib/tls/i686/cmov/libdl-2.7.so
b7960000-b7962000 rw-p 00001000 08:01 501127 /lib/tls/i686/cmov/libdl-2.7.so
b7962000-b7976000 r-xp 00000000 08:01 387205 /usr/lib/libz.so.1.2.3.3
b7976000-b7977000 rw-p 00013000 08:01 387205 /usr/lib/libz.so.1.2.3.3
b7977000-b7986000 r-xp 00000000 08:01 483366 /lib/libbz2.so.1.0.4
b7986000-b7987000 rw-p 0000f000 08:01 483366 /lib/libbz2.so.1.0.4
b7987000-b7988000 rw-p b7987000 00:00 0
b7988000-b79ae000 r-xp 00000000 08:01 387011 /usr/lib/libpcre.so.3.12.1
b79ae000-b79af000 rw-p 00026000 08:01 387011 /usr/lib/libpcre.so.3.12.1
b79af000-b79db000 r-xp 00000000 08:01 483448 /lib/libreadline.so.5.2
b79db000-b79df000 rw-p 0002c000 08:01 483448 /lib/libreadline.so.5.2
b79df000-b79e0000 rw-p b79df000 00:00 0
b79e0000-b79ea000 r-xp 00000000 08:01 483392 /lib/libgcc_s.so.1
b79ea000-b79eb000 rw-p 0000a000 08:01 483392 /lib/libgcc_s.so.1
b79eb000-b7a0e000 r-xp 00000000 08:01 501129 /lib/tls/i686/cmov/libm-2.7.so
b7a0e000-b7a10000 rw-p 00023000 08:01 501129 /lib/tls/i686/cmov/libm-2.7.so
b7a10000-b7aa6000 r-xp 00000000 08:01 387584 /usr/lib/libgfortran.so.2.0.0
b7aa6000-b7aa7000 rw-p 00096000 08:01 387584 /usr/lib/libgfortran.so.2.0.0
b7aa7000-b7b24000 r-xp 00000000 08:01 387586 /usr/lib/libblas.so.3gf.0
b7b24000-b7b25000 rw-p 0007d000 08:01 387586 /usr/lib/libblas.so.3gf.0
b7b25000-b7b26000 rw-p b7b25000 00:00 0
b7b26000-b7c6f000 r-xp 00000000 08:01 501121 /lib/tls/i686/cmov/libc-2.7.so
b7c6f000-b7c70000 r--p 00149000 08:01 501121 /lib/tls/i686/cmov/libc-2.7.so
b7c70000-b7c72000 rw-p 0014a000 08:01 501121 /lib/tls/i686/cmov/libc-2.7.so
b7c72000-b7c75000 rw-p b7c72000 00:00 0
b7c75000-b7c76000 r--p 00000000 08:01 796854
/usr/share/R/share/locale/en/LC_MESSAGES/R.mo
b7c76000-b7c77000 rw-p b7c76000 00:00 0
b7c77000-b7c78000 r--p 00000000 08:01 418684
/usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b7c78000-b7c79000 r--p 00000000 08:01 418688
/usr/lib/locale/en_US.utf8/LC_PAPER
b7c79000-b7c7a000 r--p 00000000 08:01 418685
/usr/lib/locale/en_US.utf8/LC_MONETARY
b7c7a000-b7c7b000 r--p 00000000 08:01 418690
/usr/lib/locale/en_US.utf8/LC_TIME
b7c7b000-b7c82000 r--s 00000000 08:01 402342
/usr/lib/gconv/gconv-modules.cache
b7c82000-b7c83000 r--p 00000000 08:01 425986
/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7c83000-b7eba000 r-xp 00000000 08:01 706919 /usr/lib/R/lib/libR.so
b7eba000-b7ec7000 rw-p 00237000 08:01 706919 /usr/lib/R/lib/libR.so
b7ec7000-b7f60000 rw-p b7ec7000 00:00 0
b7f60000-b7f61000 r-xp b7f60000 00:00 0 [vdso]
b7f61000-b7f7b000 r-xp 00000000 08:01 483347 /lib/ld-2.7.so
b7f7b000-b7f7d000 rw-p 00019000 08:01 483347 /lib/ld-2.7.so
bfc54000-bfc6c000 rw-p bffe8000 00:00 0 [stack]
Aborted
Does anyone have any ideas?
Aleks
More information about the R-help
mailing list