gcc_termux
gcc_termux copied to clipboard
R startup segmentation fault Error: segfault from C stack overflow
I am using Termux(version 0.75) in an Amazon fire tablet
#Here are the steps I took to install R after adding the its-pointless repository as instructed. I have uninstalled and installed twice, and still get the same "Error: segfault from C stack overflow"
apt update
apt install r-base
make
clang
gcc-7
libgfortran3
openssl
libcurl
libicu
libxml2
r-cran-rcpp
r-cran-rquantlib
r-cran-stringi #
r-cran-tidyverse
r-cran-zoo
Launch R
$ R
R version 3.6.0 (2019-04-26) -- "Planting of a Tree" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: armv7-unknown-linux-androideabi (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
Error: segfault from C stack overflow
When I kill part of the process
$ lsof 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 11147 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11147 /data/data/com.termux/files/usr/lib/R/bin/exec/R pipe:[50055] 11147 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11200 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11200 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11200 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11200 /data/data/com.termux/files/usr/lib/R/bin/exec/R pipe:[57372] 11200 /data/data/com.termux/files/usr/lib/R/bin/exec/R pipe:[57372] 11205 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11205 /data/data/com.termux/files/usr/lib/R/bin/exec/R pipe:[57372] 11205 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 $ kill 11205 $ lsof 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 3875 /data/data/com.termux/files/usr/bin/bash /dev/pts/0 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 6675 /data/data/com.termux/files/usr/bin/bash /dev/pts/1 11147 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1 11147 /data/data/com.termux/files/usr/lib/R/bin/exec/R pipe:[50055] 11147 /data/data/com.termux/files/usr/lib/R/bin/exec/R /dev/pts/1
Then I get the following
*** caught illegal operation *** address 0x4e5f5f2e, cause 'illegal opcode'
Traceback: 1: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning")) 2: suppressWarnings(system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE)) 3: Sys.which("uname") 4: .osVersion() 5: assign("osVersion", .osVersion(), envir = ns) 6: fun(libname, pkgname) 7: doTryCatch(return(expr), name, parentenv, handler)
Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace Selection: 1 R is aborting now ...
*** caught segfault *** address 0xf10cbfa8, cause 'memory not mapped'
It prompts me again and I abort and it terminates
Has anyone else encountered this kind of error, has an insight or has a solution? It is greatly appreciated.
"3.6.0" currently the version is at 3.6.1 in arm for both android-5 and android-7 dists. if you could update and test it so i can make sure the problem still exists that would be handy.
Thanks for looking into this but I still get the same error after I uninstalled and reinstalled your current version of R 3.6.1-2 I am using the Amazon Kindle fire HD10.1 Running Fire OS 5.6.4.0, which is (from my understanding) based on Android 5.1 series Linux localhost 3.18.19+ armv81 Android Although the CPU and kernel are 64bit, Termux and other apps are running as 32bit and the version of R installed is also 32bit.
R installs seemingly without error $ apt install r-base Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgnuiconv quantlib Use 'apt autoremove' to remove them. The following NEW packages will be installed: r-base 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 39.4 MB of archives. After this operation, 62.1 MB of additional disk space will be used. Get:1 https://its-pointless.github.io/files termux/extras arm r-base arm 3.6.1-2 [39.4 MB] Fetched 39.4 MB in 18s (2130 kB/s) Selecting previously unselected package r-base. (Reading database ... 30036 files and directories currently installed.) Preparing to unpack .../r-base_3.6.1-2_arm.deb ... Unpacking r-base (3.6.1-2) ... Setting up r-base (3.6.1-2) ...
But when launched....
$ R R version 3.6.1 (2019-07-05) -- "Action of the Toes" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: armv8l-unknown-linux-gnueabi (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
Error: segfault from C stack overflow
Again, thanks for your hard work in this effort.