-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
I don't know why, but commonmark_html() and commonmark_xml() doesn't work well on the console of RStudio Server on CentOS 7.
More precisely, if I install commonmark package 1.6 and run commonmark::markdown_html("## foo"),
- on RStudio Server 1.1.463 (stable)'s console, it crashes with segmentation fault. (Error message in syslog:
kernel: rsession[93474]: segfault at 7f1792c96811 ip 00007f17a3331c97 sp 00007fff29b6f998 error 6 in libc-2.17.so[7f17a31df000+1b8000]) - on RStudio Server 1.2.1139 (preview)'s console, it returns a wrong result (
"<h2></h2>\n").
Note that, it returns the correct result ("<h2>foo</h2>\n") if I run the code
- on
RREPL on RStudio's terminal pane - on
RREPL on an SSH session - with commonmark 1.5
- on RStudio Server's console on Debian
How to reproduce
- Run CentOS Docker image
docker run -p 8787:8787 -it --rm centos:7 bash- Install and run RStudio Server
# Download RPM (`1.1.463` is the stable version)
curl -o rstudio.rpm https://download2.rstudio.org/rstudio-server-rhel-1.1.463-x86_64.rpm
yum install rstudio.rpm
# Add rstudio user
useradd rstudio
passwd rstudio
# Launch RStudio Server
/usr/lib/rstudio-server/bin/rserver - Browse to
http://localhost:8787and login - Install commonmark package and run this code
commonmark::markdown_html("## foo")Metadata
Metadata
Assignees
Labels
No labels